Skip to main content

All Questions

Tagged with
0 votes
1 answer
322 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
2 votes
3 answers
750 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
0 votes
1 answer
194 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
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
843 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
2 answers
348 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
1 vote
1 answer
1k views

WPF: Trying to change visibility based on selection in combobox

I would like to display a different stackpanel based on the selection made in a combobox. Idea is to collapse any stackpanels that aren't needed. The combobox looks something like this: <...
InfoSpunge's user avatar
0 votes
1 answer
193 views

DataGrid RowDetails Visibility on RowDoubleClick

In my Datagrid xaml I set the rowdetailsvisibilitymode to collapsed. Then I created an event on RowDoubleClick to collapse and expand the details of a row when the row is double clicked: private ...
Angela 's user avatar
1 vote
1 answer
191 views

How do you hide a single listboxitem in a listbox using wpf codebehind?

I am creating a list box that holds notes. When a note is selected and double-clicked it opens an editing form. Here there is an option to archive the note. When the note is archived it should not be ...
Julia's user avatar
  • 55
0 votes
1 answer
748 views

WPF Border Child visibility have no effect

I need to hide a TextBlock that is child of a Border and is added to a Grid. The following code dynamically add the Border and the TextBlock to the Grid. Then if the Grid contain more than 5 children ...
user2272143's user avatar
0 votes
1 answer
49 views

Actual position of collapsed TreeViewItem on Canvas

Is there a way to evaluate the actual position of a TreeViewItem on a Canvas if its Parent TreeViewItem is collapsed (meaning <ParentTreeViewItem>.IsExpanded = false;)? When debugging neither ...
Alex's user avatar
  • 21
1 vote
1 answer
147 views

DataGridColumn binding only if object property is true

I'm currently facing a problem while trying to do some conditional binding in WPF. I've read up on the problem and it seems like "visibility" isn't really an option for DataGridColumns as it's not in ...
Stephan Fuhlendorff's user avatar
2 votes
1 answer
434 views

C# WPF TextBlock Visibility doesn't change after StoryBoard

I have a WPF application with a button, that when clicked executes a function that turns the visible property of a TextBlock to Visible: savetxt.Visibility = Visibility.Visible; ...
Roeekush's user avatar

15 30 50 per page
1
2 3 4 5
8