Skip to main content

All Questions

Tagged with
0 votes
0 answers
181 views

XAML MVVM: How to make items visilibity grey out based on a bool condition from view model

I'm new for XAML and MVVM. I need to add a control to freeze/greyed out to disable user to click/select buttons/combobox once the device is connected successfully. For below, i need to freeze the ...
FH Liew's user avatar
3 votes
2 answers
1k views

Changing Visibility with x:Bind not updating with MVVM

Since the Anniversary Update (Build 14383 / 14393) you should be able to toggle the visibility of XAML elements without using a converter, like this: <TextBlock Text="I'm not visible!" Visibility="...
Thomas's user avatar
  • 4,255
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 ...
Vladimir Kruglov's user avatar
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 ...
sebo's user avatar
  • 1,644
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 ...
Joe K's user avatar
  • 409
5 votes
3 answers
9k views

In WPF, how do I set a button's click event to change a grid's visibility?

I'm trying to set a button's event to change a grid's visibility using just XAML. I'm pretty sure I should be using an EventTrigger, but I couldn't get that to work so my most recent attempt is to ...
Scifiballer24's user avatar