Skip to main content

All Questions

0 votes
1 answer
712 views

WPF Set Visibility on DataTemplate UI Element from MVVM View Model

I have a control that is set up as a DataTemplate: <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/...
NOCARRIER's user avatar
  • 2,545
0 votes
1 answer
2k views

WPF Window under all other windows after making window visible from being collapsed

I am having some very frustrating issues with my WPF window. The design I was going for is: When the user minimizes the window it will minimize to a system tray icon (hide the window and icon on ...
Landin Martens's user avatar
0 votes
1 answer
159 views

How to set the Control Visibilty of the Second Control depending on the Binding Value of the first

I have a Custom Wpf Control i.e. combobox:WpfTwComboBox. I want to set the visibility using a property called DisableProviderSelector. The usual use of triggers is not helping. The scenario here is ...
jith10's user avatar
  • 553
2 votes
1 answer
440 views

Visibility change of Shapes in a WPF Canvas

Is there any event that can be raised when a shape in a Canvas(which has zoom and pan controls using Translatetransform/ScaleTransform) becomes visible/invisible when the canvas is panned or zoomed? ...
Sam's user avatar
  • 933
4 votes
1 answer
5k views

Visibility.Collapse does not work in WPF

Visibility.Collapse doesnt work in my case. below is the XAML. If I try to hide the lblCountry and cmbCountry a white space is shown between zip and practice fields. There is no option to hide an ...
nitin's user avatar
  • 41
9 votes
1 answer
3k views

Does Visibility = IsCollapsed skip the data-binding part?

If I set a StackPanel or what ever bound area I have as 'Collapsed', does the data load? Will it trigger its Loaded event?
Shimmy Weitzhandler's user avatar
72 votes
4 answers
60k views

In WPF, how can I determine whether a control is visible to the user?

I'm displaying a very big tree with a lot of items in it. Each of these items shows information to the user through its associated UserControl control, and this information has to be updated every 250 ...
Trap's user avatar
  • 12.3k
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