All Questions
19
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 ...
0
votes
1
answer
128
views
Visibility/binding problem with a usercontrol base class
I have an app and a class library.
I'm using ninject to bind all viewmodels and Syncfusion as a third party extension.
The main app displays a RibbonGallery that contain Sine and Triangle waves.
...
0
votes
1
answer
686
views
Binding Property to Two Different Controls [duplicate]
I have a WPF form with a content control and a custom control. The content control swaps in views based on a radio button selection. Once the user takes an action on the view, I set the nocustomer on ...
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}}"/&...
0
votes
1
answer
546
views
Update WPF from .NET 4 to 4.5.2, DataGridTextColumn Visibility DataContext reference broken
I've upgraded a WPF project to .NET 4.5.2. In a xaml file, I have the following line.
<UserControl
x:Class="Casa.Project.Client.Views.Projects.ProjectSearch"
xmlns="http://schemas....
0
votes
2
answers
3k
views
Button visibility depending on two properties (OR not AND)
I have a button in WPF and I want to make it visible if the mouse is over the border the button is in. This is simple:
<Button Grid.Column="1" Click="DimFilter_Click" Style="{...
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="...
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 ...
1
vote
1
answer
2k
views
Binding Visibility to Yes/No ComboBox with Converters
I've got a form that gets given a datarow from a dataset to bind all its elements. One of them is a bool, but I want that bool to be represented by by a Yes/No combo box. So I did this and it works ...
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 ...
1
vote
4
answers
1k
views
WPF ListView control is populated but invisible
I have a ListView, populated with ItemsSource pointing to a list of login histories, so that I can choose from previous successful logins instead of having to type user, host, etc. over. This seemed ...
3
votes
2
answers
3k
views
wpf data binding grid row visibility
I have a window with a grid acting like a form. The window isn't my own and there is a new requirement to not show (ie, collapse) rows 4 and 5 based on a user selected context.
The two things I can ...
0
votes
2
answers
461
views
View visibility is not changing
I have a Shell holding 2 Views. They both use the same viewmodel, in fact the shell uses the same viewmodel as well. I have 2 buttons in the shell that are supposed to change the visibility of the the ...
1
vote
3
answers
3k
views
Having trouble binding the Visibility of a ContentPresenter in WPF
I have the following XAML:
<UserControl.Resources>
<DataTemplate x:Key="ExpanderTemplate">
<Grid>
<Rectangle Stroke="Black" StrokeThickness="1" Width="10" Height="10"...