Skip to main content

All Questions

Tagged with
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 ...
stuck stuck's user avatar
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....
CamHart's user avatar
  • 4,165
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 ...
Crumar's user avatar
  • 132
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 ...
paparazzo's user avatar
  • 45k
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 ...
Ben Cheng's user avatar
  • 111
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, ...
jebar8's user avatar
  • 2,113
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" >...
JosephGarrone's user avatar
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,...
Steve's user avatar
  • 6,404
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 ...
WPFcitizen's user avatar
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)
Martin's user avatar
  • 1,571
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 = ...
VladimirBadiuk's user avatar
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, ...
Jader Dias's user avatar
  • 89.9k
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 ...
BigBug's user avatar
  • 6,290
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>...
Nasenbaer's user avatar
  • 4,870
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 ...
nitin's user avatar
  • 41

15 30 50 per page