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
-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 ...
Zackary Lee's user avatar
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&...
K.Luth's user avatar
  • 135
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 ...
javacoder123's user avatar
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 ...
javacoder123's user avatar
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 ...
Danki's user avatar
  • 95
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

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=???/> ...
spspli's user avatar
  • 3,248
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. ...
Devin Young's user avatar
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 ...
user avatar
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:...
MisterPresident's user avatar
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 ...
FUBAR's user avatar
  • 89
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 ...
CampDev's user avatar
  • 1,659
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
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="...
Ruben's user avatar
  • 1,093