All Questions
7
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 ...
-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 ...
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}}"/&...
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="...
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 ...
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 ...
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 ...