Skip to main content

All Questions

Tagged with
0 votes
2 answers
46 views

Grid/Datagrid not expanding into space

I have a grid with 4 rows 2 contain datagrids. I want to show/hide one datagrid based on the ShowPackages checkbox. The code all works correctly and is showing/hiding the datagrid. However, the ...
Daryl Leak's user avatar
0 votes
1 answer
91 views

Is there a control in .NET WPF analogous to Java's javax.swing.Box Strut?

I have a view in my .NET4 WPF application that consists of a TextBlock, a button, and another TextBlock arranged vertically. They are on three different rows of a Grid. When the user clicks the button,...
Steve's user avatar
  • 6,404
6 votes
2 answers
6k views

How can I hide a control so that it no longer takes up space in WPF?

I have a DataTemplate that I am using for a cell in a gridview. I would like to switch between the progress bar and the text/link block. Is there a way to hide an element so that it is removed from ...
dan's user avatar
  • 5,744
0 votes
1 answer
358 views

Context-sensitive layout - change visibility of set of WPF tools based on a combobox

I have a UI issue with layered editing where a different set of tools needs to be visible depending on the ComboBox selecting the layer and am stewing over the idiom to use. The tools should not be in ...
Andy Dent's user avatar
  • 17.8k
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