All Questions
17
questions
0
votes
1
answer
3k
views
How to set the visibility of calendar of datepicker to hidden wpf
I am under a situation where i need to develop DatePicker where the calendar must disappear on mouse leave event, only textbox with the selected date from calendar must be visible and calendar part ...
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....
3
votes
1
answer
1k
views
WPF Grid Elements not resizing when another one is set to collapsed
I am using a Grid to balance 3 parts. The first two shall take up each 50% of the remaining space, the last two shall stay the same height at the bottom, as it is a bar with buttons.
I use a ...
1
vote
1
answer
166
views
Is Selected Visibility of Element in DataTemplate
This DataTemplate is use in a ListBox
Would like fieldTemplateDetail to only be visible when the ListBoxItem IsSelected
Visibility="{Binding Path=IsSelected, Converter=bvc}"
Above is NOT ...
4
votes
4
answers
10k
views
C# Window Visibility, collapsed and hidden
I have a quick question regarding visibility of windows in an application. According to...
http://msdn.microsoft.com/en-us/library/system.windows.visibility.aspx (its short)
When a window is ...
8
votes
1
answer
4k
views
TargetNullValue for Visibility that's bound to a boolean
I have a Grid whose Visibility property is bound to a boolean property of a certain model using a Converter:
<Grid Visibility="{Binding ElementName=MyTreeView, Path=SelectedItem.MyBoolProperty, ...
0
votes
1
answer
2k
views
Visibility = Collapsed not working in DockPanel
I'm trying to get the below TextBlocks to become Collapsed, however it isn't working:
<DockPanel Grid.Column="1" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" LastChildFill="False" >...
0
votes
1
answer
91
views
Is there a control in .NET WPF analogous to Java's javax.swing.Box Strut?
I have a view in my .NET4 WPF application that consists of a TextBlock, a button, and another TextBlock arranged vertically. They are on three different rows of a Grid. When the user clicks the button,...
2
votes
2
answers
2k
views
Wpf controls visibility?
I am creating a Wpf browser application which has multiple controls over the different pages. Every page follows up the same pattern which is as follows:
At every page load event there are two combo ...
0
votes
3
answers
99
views
ListView Visible if multiple rows
How do I bind the ListViews visibility to a calculation? I want the Listviews to be visible ONLY if there are more than one record in the DataContexts Collection (IEnumerable)
0
votes
2
answers
162
views
How can I make a UIElement show after collapse in upper direction?
On my form, I have a TextBlock element that initially is collapsed. (TextBlock.Visibility = Visibility.Collapsed). When some error occurred, it should be shown. When I use TextBlock.Visibility = ...
2
votes
2
answers
3k
views
How to view collapsed elements while designing a WPF control?
I set my DataGrid to collapse when there are no items
<DataGrid Name="dataGrid"
Visibility="{Binding HasItems,
ElementName=dataGrid,
...
16
votes
5
answers
60k
views
How to hide textboxes, labels and buttons C# WPF
I would like to hide several textboxes, a label and a button as soon as a button is clicked... however, for some reason, my code doesn't seem to cause this effect. Nothing appears to happen. I'm using ...
0
votes
1
answer
500
views
Set visibility with a trigger
I just want to start an storyboard which makes an rectangle visible for 2 seconds when user pressed with left mouse button. But I could not solve how to get the visibility value.
<Grid.Triggers>...
4
votes
1
answer
5k
views
Visibility.Collapse does not work in WPF
Visibility.Collapse doesnt work in my case. below is the XAML. If I try to hide the lblCountry and cmbCountry a white space is shown between zip and practice fields. There is no option to hide an ...