Skip to main content

All Questions

Tagged with
327 votes
4 answers
164k views

Difference between Visibility.Collapsed and Visibility.Hidden

What are differences between Visibility.Collapsed and Visibility.Hidden in WPF?
Sauron's user avatar
  • 16.8k
5 votes
1 answer
9k views

Testing the scrollbar visibility of a ListBox in code-behind

How to check whether the vertical scrollbar of the listbox is visible in code-behind? I have a listbox with x:Name="listOfItems" and its underlying ScrollViewer's VerticalScrollbarVisibility is set ...
Kornelije Petak's user avatar
0 votes
6 answers
3k views

WPF GridSplitter visiblity

I have a problem regarding GridSplitter visiblity. In this, whatever I am hosting a Winform DataGridView. The GridSplitter, when dragged is properly visible on other controls. But not on this grid. ...
user avatar
171 votes
18 answers
125k views

How do I invert BooleanToVisibilityConverter?

I'm using a BooleanToVisibilityConverter in WPF to bind the Visibility property of a control to a Boolean. This works fine, but I'd like one of the controls to hide if the boolean is true, and show if ...
user avatar
11 votes
2 answers
7k views

WPF: How to make empty TextBlock not to occupy space?

Let's say that I have a simple layout such as this: <StackPanel> <TextBlock Text="{Binding Path=Title}" /> <TextBlock Text="{Binding Path=ShortDescription}" /> <TextBlock ...
Alan Mendelevich's user avatar
192 votes
12 answers
197k views

DataTrigger where value is NOT null?

I know that I can make a setter that checks to see if a value is NULL and do something. Example: <TextBlock> <TextBlock.Style> <Style> <Style.Triggers> <...
Timothy Khouri's user avatar

15 30 50 per page
1
16 17 18 19
20