Skip to main content

All Questions

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
1 vote
1 answer
600 views

WPF ContextMenu: MenuItem Icon visibility binding error

This is the style for my ContextMenu: <Style x:Key="DIOStyle" TargetType="ContentControl"> <Setter Property="Tag" Value="{Binding Content,RelativeSource={RelativeSource Mode=Self}}"/&...
rmbq's user avatar
  • 425
1 vote
2 answers
14k views

WPF: Binding to MainWindow Property

I am having an issue with binding to a parent MainWindow property, MainContentVisibility. I have the following code: MainWindow.xaml <Window x:Class="CallTracker.WPF.MainWindow" xmlns="...
BrianKE's user avatar
  • 4,155
4 votes
1 answer
4k views

Binding visibility property

I have gone through several questions regarding this but couldn't get proper answer. I dont know where am wrong with the following code. I am binding visibility property of TextBlock but its not ...
Balasubramani M's user avatar
1 vote
2 answers
4k views

How to bind data to a control's Visibility property

I understand that the Visibility property of a control cannot be bound to data in the same way that other properties can. It needs some kind of converter(?). In trying to implement the solution from ...
Eric after dark's user avatar
0 votes
1 answer
755 views

Visibility of two controls via data binding and value converter

I have two controls contained within a data template. Control #1 is a TextBlock known as "TXTBLOCK". Control #2 is a TextBox known as "TXTBOX": TXTBLOCK has Visibility set to TextBox Visibility ...
tronious's user avatar
  • 1,555