All Questions
Tagged with visibility xaml
81
questions
0
votes
1
answer
1k
views
trigger on texbox got focus
I have virtual keyboard which should be hidden and i want to show it only when textbox get focus. I'm using mvvm so i dont want to write any code on code behind, so i want to make some trigger if it's ...
0
votes
3
answers
780
views
How to keep elements hidden until listbox selection in parent is made?
I have a view in XAML where I have a listbox, and a selection in that listbox populates an area to the side with properties from the selected instance of the ChildViewModel. I have a few buttons in ...
2
votes
1
answer
4k
views
bool to System.Windows.Visibility (binding issues when dynamically creating DataGridColumnHeaders)
I am caught up in a scenario where I have to dynamically create datagrid columns and must create the columns in C# code. I have a checkbox in a separate area of code for each generated column. The ...
1
vote
1
answer
404
views
stackpanel visibility editing in silverlight
I am working on silverlight web application (RIA) hosted on to a silverlight web application.
Background: I have a stackpanel in one of the xaml pages. I tried to simplify my problem. It is down as ...
17
votes
2
answers
7k
views
MVVM - hiding a control when bound property is not present
I was wondering if it is possible to hide a control on a view if the property to which the control is bound does not exist in the view model. For example, if I have the following:
<CheckBox ...
9
votes
3
answers
9k
views
How to hide combobox toggle button if there is only one item?
I have a WPF application. In one window there is a combobox..and I want to hide the toggle button and disable the combo box if there is only one item.
How would I achieve this ?
I have tried the ...
1
vote
1
answer
157
views
Is it possible to bind control visibility to the content? (XAML)
I created a result view for a class, calculating some math-stuff. According to the values, set by the user, there are some of the results returning 0 or "". So some of the Controls bound to this empty ...
-2
votes
1
answer
189
views
UIElement's Visibility control from different UIElement
I have two UIElements X (X.xaml, Name="_X") and Y (Y.xaml, Name="_Y").
How can I control Visibility of Y.xaml from X.xaml.cs?
It's easy to control Visibility of Y.xaml from Y.xaml.cs, as I can use ...
0
votes
1
answer
951
views
XAML Menuitem Visibility Bound to another control or trigger isn't working
Visibility="{Binding Path=Visibility, ElementName=btnUndo}"/>
I am trying to bind a menuitems visibility to another controls visibility (btnUndo).
That controls visibility is bound to a trigger
...
-1
votes
1
answer
915
views
setting vertical scroll bar of scrollviewer to be visible
i am trying to set the verticalscrollbar visibility to be visible during a button click event. Why can't i do something like this?
before click event, XAML:
<ScrollViewer ...
7
votes
6
answers
7k
views
WPF toggle panel visibility
I have two panels, only one should be visible at the same time. I change between them by clicking a button, one on each panel.
Is there a nice way to do this in xaml without codebehind or viewmodel?
2
votes
1
answer
11k
views
Display pictures as hide or visible
Goal:
When user start typing text or characters in the textbox txtSearch the picture picEnlarger will be hidden and be replaced by picture picXmark.
In default, the picEnlarger will always display ...
4
votes
2
answers
6k
views
Lazy loading of non-visible elements
I have a case where I have either a gridview/listbox/any type of items control and the number of items bound to the control is massive (easily around 5000+ mark).
Each of these items needs to have ...
1
vote
1
answer
4k
views
XAML Toggle visibility among multiple options
On one of the screens in my WPF application, I have an enumerated list of helpful tips to show the user. Each of these tip messages contains complex markup, so I'd like to keep the message definitions ...
6
votes
1
answer
2k
views
Adjust the Visibility property of a View not working
I've a strange problem with binding a boolean property to a View's Visibility property.
I have a 'main' View that contains a bunch of other Views as well as various other UIElements including Buttons,...