All Questions
15
questions
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 ...
-1
votes
2
answers
74
views
How can I bind the visibility of a StackPane to a property?
I have a few StackPanes that I only want to display for a specific value of a ComboBox. I've gotten the property to change as I want it to, but for some reason, the StackPane visibility doesn't update ...
1
vote
2
answers
67
views
Visibility converter in MVVM not updating
I want to change the visibility of a Grid depending on whether the value of some TextBoxes is larger than other TextBoxes. I'm using MVVM and have the following code:
XAML
<UserControl.Resources&...
0
votes
1
answer
557
views
Execute Two RelayCommands On One Button Press - WPF
I have a button that allows the user to register an account. When the user presses the button I have a relay command execute a method that submits their details to the database. If successful, I then ...
0
votes
0
answers
181
views
Transfer from one User control to another using EnumVisibilityConverter - WPF
When the user presses on a button I want to display a new UserControl. I have created an EnumVisibilityConverter and want to set the enum to display a different user control called login when the ...
0
votes
0
answers
161
views
Visibility in namespace c# wpf
How should I add a file to project to make him visible in specified namespace?
For example:
I have folder ViewModels in project. When i trying to add some .cs file to that namespace i got error in ...
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="...
0
votes
1
answer
1k
views
How to binding DataTemplate element's visibility to ancestor element's ViewModel property? [duplicate]
I have a DataTemplate:
<DataTemplate x:Key="BMSelectedItemTemplate">
<StackPanel Orientation="Horizontal">
<TextBlock Text="*" Visibility=???/>
...
0
votes
2
answers
65
views
Animation not correct when bound to a visibility property(Oddity)
The issue that I'm having is that any time I change a visibility property to trigger a loading animation (i.g. isBusy = true) via a command in the MVVM model the animation doesn't play out correctly. ...
0
votes
2
answers
241
views
A simple way in WPF MVVM to reuse property method?
I am new to WPF MVVM. Here's what my viewmodel is doing:
A button is pressed and a ping command is launched to see if servers are availables:
-If true, the button is set to Hidden.
-If false, a ...
1
vote
0
answers
748
views
Avalondock MVVM - Visibility
again I have problably a simple problem:
I'm trying to build a very simple MVVM - Application:
XAML:
<StackPanel>
<StackPanel.Resources>
<ad:...
0
votes
1
answer
458
views
Setting Textblock/Button Visibility on WP8 App using MVVM
I'm new to MVVM and I'm working on a WP8 app and I'd like to be able to set the visibility of buttons and a textblock based on when one of those buttons were tapped. Here's my View to try and explain ...
3
votes
3
answers
348
views
WPF- Create a list of Visibilities
In this moment, I'm working with WPF and MVVM. I have in a UniformGrid with 30 buttons, each one with specific DynamicResource and specific Content (Text). I need to manage the visibility for each ...
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 ...
4
votes
4
answers
2k
views
Not able to make controls Visible and hidden in a window in WPF with viewmodel?
I implemented a textbox and it have to become visible when a checkbox is'nt checked and vica versa.
Here is my view:
<TextBox Visibility="{Binding VisiMaxTime}" Height="23" HorizontalAlignment="...