Skip to main content

All Questions

Tagged with
0 votes
1 answer
318 views

Make element visible when Validation.HasError is true

I have the following xaml markup: <GroupBox Margin="10" Padding="20" Header="Case 5 - Custom Error Object"> <GroupBox.DataContext> ...
vso's user avatar
  • 21
-1 votes
2 answers
261 views

Hide a control with trigger on another

I have a <TextBlock x:Key="_tb1"/> and another <TextBlock x:Key="_tb2"/>. How to set visibility of _tb1 when for exemple IsMouseOver of _tb2 is true ?
Manta's user avatar
  • 517
1 vote
1 answer
364 views

WPF - Virtualization does not work for items with collapsed visibility

I have performance problem with my listview. There is a WPF ListView with groupping and virtualisation. <ListView Name="ListOfEvents" SelectionMode="Extended" ...
Phant0m-X's user avatar
2 votes
3 answers
741 views

WPF change visibility based on Items in Observable-Collection

I have the Following Collection: ObservableCollection<CheckedFileObject> Files A CheckedFileObject contains a FileObject and a bool isChecked. Now when a user selects a File the isChecked Value ...
KSler's user avatar
  • 161
3 votes
2 answers
832 views

WPF Change Visibility during design-time

My CustomControls UI element Visibility is bound through a BoolToVisibilityConverter, see code below : <cc:CustomFFU LabelText="FFUZoneF_2-1" HorizontalAlignment="Center" ...
AfronSall's user avatar
-2 votes
1 answer
127 views

Expander-like WPF control that only hides empty children

In my WPF view, I need something similar to an Expander or a TreeView, but instead of completely hiding the content, I only want to hide empty parts, i.e. TextBoxes with null or empty text, or empty ...
user2727133's user avatar
0 votes
1 answer
190 views

How to disable validation of a combox element when visibility is collapsed?

I want to disable the validation of a ComboBox or a TextBox when their visibility is collapsed. Can I realize this within the XAML code? <ComboBox Name="XYZCb" ItemsSource=&...
patrickgc's user avatar
0 votes
1 answer
180 views

WPF UI element not growing when other element gets collapsed

I expected elements to take the new available space (e.g. the width) when other elements get collapsed. In my example the first button is not getting wider when I collapse the checkbox. What am I ...
IngoB's user avatar
  • 2,851
0 votes
2 answers
1k views

WPF visibility collapse keep space

i have 3 columns, while using a specific converter i succeed to change visibility of the middle and right column to visibility collapse or visible. My problem is that when those columns should be ...
Fabien CANEHAN's user avatar
0 votes
0 answers
840 views

WPF C# Set visibility binding in code behind for framework element

i have a problem binding the visibility property in code behind and really hope, you can help me. I create a data grid column with a button. The tag property of the button is already binded to the ...
nicetomitja'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
0 votes
1 answer
286 views

WPF Multiple dialogs, Visibility property issue

I have a login form which starts a dialog of a lecturerWindow When swapping windows it looks like that: //LoginWindow to LecturerClient this.Visibility = Visibility.Collapsed; LecturerWindow ...
Daniel Belaish's user avatar
0 votes
1 answer
148 views

WPF: DataGrid not expanding to occupy both columns of Grid when second column content is collapsed

I have a Grid which has two columns, first column has a DataGrid and second column has another grid. I expect DataGrid to expand to take full space when Visibility of second grid is set to 'collapsed'....
A. Trivedi's user avatar
0 votes
2 answers
345 views

Grid is not changing after child elements are switched to collapsed or hidden

I have a grid with 4 buttons. All 4 buttons are visible when starting my application. After a user action, buttons 1 to 3 are switch to collapsed/hidden. My goal is that the 3 buttons are no longer ...
Niklas's user avatar
  • 27
0 votes
1 answer
32 views

Trying to hide a checkbox until a menu option is selected, but checkbox won't hide

I have a checkbox that should only appear when a menu option is selected. When the menu option is not selected, the checkbox should be hidden. I have a visibility variable setup in the code: private ...
acromantulus's user avatar

15 30 50 per page
1
2 3 4 5
20