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
2 votes
0 answers
1k views

ContentControl Visibility over DataTemplate and DataContext property

Is there a posibility to change the visibility of the ContentControl over the DataTemplate of the content? I have the following situation: A custom control (button with four states - background image ...
WebDucer's user avatar
  • 1,134
0 votes
1 answer
347 views

Visibility binding not working on different PC's

I have a problem with a visibility binding in a DataTemplate of a DataGrid. My binding for visibility is Visibility="{Binding ElementName=Hauptfenster, Path=Test.IsAdmin, Converter={StaticResource ...
Sheik's user avatar
  • 21
1 vote
1 answer
166 views

Is Selected Visibility of Element in DataTemplate

This DataTemplate is use in a ListBox Would like fieldTemplateDetail to only be visible when the ListBoxItem IsSelected Visibility="{Binding Path=IsSelected, Converter=bvc}" Above is NOT ...
paparazzo's user avatar
  • 45k
0 votes
1 answer
2k views

How to set visibility of a member of a datatemplate when the template is applied?

I have a ListBox that specifies ItemContainerStyle. The ItemContainerStyle uses Triggers to set the ContentTemplate. I would like to set the Visibility of a ContentControl (named "ExpanderContent") ...
Dave Lowther's user avatar