All Questions
36
questions
0
votes
1
answer
32
views
Trying to hide a checkbox until a menu option is selected, but checkbox won't hide
I have a checkbox that should only appear when a menu option is selected. When the menu option is not selected, the checkbox should be hidden. I have a visibility variable setup in the code:
private ...
1
vote
1
answer
1k
views
WPF: Trying to change visibility based on selection in combobox
I would like to display a different stackpanel based on the selection made in a combobox.
Idea is to collapse any stackpanels that aren't needed.
The combobox looks something like this:
<...
1
vote
1
answer
147
views
DataGridColumn binding only if object property is true
I'm currently facing a problem while trying to do some conditional binding in WPF. I've read up on the problem and it seems like "visibility" isn't really an option for DataGridColumns as it's not in ...
0
votes
1
answer
451
views
WPF - Can one Bind a Label's property (Visibility) to the Label's Target?
So I have a number of XAML pages with various Controls, most of them with a TextBlock indicating the intended content. Like:
<TextBlock x:Name="txbCustomerName"
Text="Customer Name"/&...
0
votes
1
answer
778
views
WPF Visibility Binding Column in a DataGrid
I have a DataGrid where I am trying to control the visibility of each column. Everything works fine when I bind the source of the column to the actual ViewModel, but I've read that the column should ...
0
votes
0
answers
134
views
wpf datepicker visibility binding dont work
I want to code in xaml all elements but by code-behind showing and hiding some parties depend on step.
here i modified code to been understendable so i putted both propriety to collapsed
question is ...
0
votes
1
answer
2k
views
Trying to set a StackPanel Visibility with Binding if 1 or more other StackPanels are now visible [duplicate]
I have a Grid with StackPanel objects.
The panel on the right has 4 vertical ToggleButton objects.
The 4 respective StackPanel objects are using Binding for the Visbility. Example:
<StackPanel x:...
0
votes
2
answers
327
views
Binding property to visibility of other element
I want when visibility of "StckPnl1" is set to Collapsed, my property "IsBusyIndicatorShowing" of "BusyDeco1" is being set to true.
What's the simplest solution?
<ctrls:BusyDecorator x:Name="...
1
vote
2
answers
6k
views
WPF Binding not updating Visibility
I'm having trouble with the binding to a visibility of a grid. I've had projects where I've done this before and have tried to replicate the same coding used previously, and I've searched around and ...
0
votes
2
answers
2k
views
wpf toggling visibility collapse only works once
What i want to do is collapse the bottom section of the WPF ui based on the checkbox toggle. This mostly works as expected so far. Below as you step through the images you'll see the collapse stops ...
3
votes
3
answers
4k
views
How can I bind visibility of a datagrid column on a custom wpf control?
I've spent the morning looking at related posts, NONE of them I've found address the exact issue I'm experiencing, although I've learned a bit more along the way.
(Using MVVM with user controls in ...
0
votes
1
answer
590
views
WPF ListView item's Visible/Collaped not changing according to its Visibility
Thanks for your time reading my thread.
I am using VS2012, WFP, and .net4.5 on Windows 7 64bit
I have a ListView control with xaml in following:
<ListView Name="lvViewerControl"
...
0
votes
1
answer
2k
views
WPF - collapse item in ListView
Thanks for your time reading my thread.
I am using VS2012, WFP, and .net4.5 on Windows 7 64bit
I have a ListView control with xaml in following:
<ListView Name="lvViewerControl"
...
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 ...
0
votes
2
answers
360
views
Set element visibility by model value
I want to set the visibility of TextBox-elements based on their bindings.
Example:
TextBoxes with price values for two products
<TextBox Grid.Column="1" Grid.Row="3" Text="{Binding PriceProduct0, ...