All Questions
Tagged with visibility wpf
291
questions
0
votes
2
answers
199
views
WPF Animate Grid.VisibilityProperty in code
What animation class would allow me to change the Visibility (not opacity) of a Grid object with a Storyboard instance in code (not XAML)?
So that I can set the to, from, and duration properties ...
1
vote
2
answers
2k
views
Change Visibility of one Control when it is changed on another one
I got 3 Controls in my XAML.
If the Visibility from one of them changes to Visible, the others Visibility should change to Hidden. So that only one of them can be Visible at a time.
My Xaml
<...
30
votes
3
answers
28k
views
MultiDataTrigger with OR instead of AND
I am trying to set multiple DataTriggers on my Button. I did some research and found that MultiDataTrigger allows you to do this. I want the Visibility property of my Button to be set to false if the ...
4
votes
2
answers
11k
views
How to hide items of a combobox in WPF
Is there a way to hide items of a combobox in WPF?
In my usercontrol there is a ListBox with checkbox-items bound to an ObservableCollection and a datagrid with a combobox.
<ListBox x:Name="...
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
441
views
Preventing WPF to evaluate control during design time
I have custom control in a separate project. In my main project visibility properties of some controls are connected to this control. For example:
<Canvas x:Name="groupControls" Visibility="{...
0
votes
1
answer
2k
views
Change Grid Visibility property with ToggleButton in pure XAML
I have a Grid named comSection which i want to set the visibility with a ToggleButton :
unchecked = collapsed
checked = visible
The Grid and the ToggleButton are inside a DataTemplate and a ListBox
...
0
votes
2
answers
46
views
Grid/Datagrid not expanding into space
I have a grid with 4 rows 2 contain datagrids. I want to show/hide one datagrid based on the ShowPackages checkbox. The code all works correctly and is showing/hiding the datagrid. However, the ...
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/...
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="...
0
votes
0
answers
79
views
ListBox Visibility property doesn't work correctly
I have a problem with change dynamically Visivility property of Listbox in wpf. After clicking button, property change but I have to double-click to refresh it. So after one click, nothing change. How ...
0
votes
1
answer
3k
views
Binding visibility to bool value in WPF dataGrid
I am aware that as DataGrid columns aren't part of the Visual Tree, you can't bind the visibility property of the columns directly to a boolean property in your VM. You have to do it another way. ...
1
vote
2
answers
2k
views
Is there a way to hide a ListView in xaml?
I have following problem. My ListView has a gray background and when the ListView is empty, you can see a small gray line on the window. This looks ugly and so I want to hide the whole ListView when ...
4
votes
2
answers
5k
views
How to hide gridlines in an excel sheet through C# WPF
Following this
http://www.e-iceblue.com/Tutorials/Spire.XLS/Spire.XLS-Program-Guide/Worksheet/How-to-hide-or-show-gridlines-on-a-worksheet-in-C.html
to hide gridlines I should do just:
Workbook wb ...
1
vote
2
answers
304
views
How to change button style depends on width
I have simple user control with few controls inside, layout is following:
<Grid>
<DockPanel>
<Grid
DockPanel.Dock="Left"
Margin="25 0 0 2">
...