Skip to main content

All Questions

Tagged with
1 vote
0 answers
95 views

Content of TabItem stays visibile when set to Collapsed/Hidden

I have a TabControl that displays default information for objects that can be selected by the user in a list. Unfortunately not all of the TabItems apply to all types of objects. That's why I decided ...
Ralf's user avatar
  • 303
2 votes
2 answers
391 views

Setting property in control from child in wpf

For the sake of simplicity say i have this control called DetailArea <UserControl x:Class="DetailArea"> <Grid> <CustomDataControl x:Name="MyDataControl" /> </Grid&...
CathalMF's user avatar
  • 9,965
1 vote
1 answer
1k views

WPF - setting visibility on code behind for a WebBrowser not working

I have two elements, a WebBrowser and a Slider, and I'm trying to hide one and show the other depending on which type of document a user opens, a PDF or a video file (mp4). But, currently, when I open ...
Dan Kahn's user avatar
3 votes
2 answers
1k views

Changing Visibility with x:Bind not updating with MVVM

Since the Anniversary Update (Build 14383 / 14393) you should be able to toggle the visibility of XAML elements without using a converter, like this: <TextBlock Text="I'm not visible!" Visibility="...
Thomas's user avatar
  • 4,255
1 vote
1 answer
2k views

ListView item visibility based on boolean

I am trying to filter ListView Items based on input text, and because the selection is removed, I am trying to set visibilty to invisible based on a boolean(I hope this wont remove the selection of ...
someone1's user avatar
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 <...
Error404's user avatar
  • 723
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 ...
CBreeze's user avatar
  • 2,945
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="...
Andreas Sawatzki's user avatar
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 ...
Babuh's user avatar
  • 15
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. ...
user3161050's user avatar
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 ...
Florin M's user avatar
  • 445
0 votes
2 answers
1k views

Visibility of one user control to another user control

private void Button_Click(object sender, RoutedEventArgs e) { int selectedValue = (int)comboSelection.SelectedValue; if (selectedValue == 8) { ...
user avatar
0 votes
1 answer
437 views

WPF toggle visibility between 6 stack panels and hide all others when one is opened

I have six stack panel elements that are toggled all by a seperate toggle button which is what I need. However, when the user opens up one of the stack panels I would like to close all of the other ...
Mr.Smithyyy's user avatar
  • 1,799
1 vote
2 answers
9k views

How to use BooleanToVisibilityConverter with visible as default value?

This code work well, but the button visibility is collapsed in the design. how can i set this to visible? <!--Resources--> <BooleanToVisibilityConverter x:Key="BoolToVis" /> <Button ...
Deyvson Santos's user avatar
2 votes
1 answer
2k views

Show hidden WPF elements in Visual Studio designer

As opposed to this, does anybody has figured out a way to show all hidden elements while working in Visual Studio designer(or Blend)? It's anti-productive to constantly change the default visibility ...
user avatar

15 30 50 per page