Starting from VS2012 you can just use the Blend namespace IsHidden attribute:
- add if not already present xmlns:d=”http://schemas.microsoft.com/expression/blend/2008″
- put d:IsHidden=”true” on element you want to hide at design time only
More Related Contents:
- Open File Dialog MVVM
- WPF Get Element(s) under mouse
- WPF What is the correct way of using SVG files as icons in WPF
- WPF: Slider with an event that triggers after a user drags
- In WPF, why doesn’t TemplateBinding work where Binding does?
- Set a property of a nested element in an WPF style
- Should a user control have its own view model?
- WPF: AutoComplete TextBox, …again
- Defining MenuItem Shortcuts
- ItemsControl with multiple DataTemplates for a viewmodel
- Select TreeView Node on right click before displaying ContextMenu
- How to get DataTemplate.DataTrigger to check for greater than or less than?
- WPF textblock binding with List
- How to find that ScrollViewer is scrolled to the end in WPF?
- How to free the memory after the BitmapImage is no longer needed?
- How to bind a TextBlock to a resource containing formatted text?
- WPF C# button style
- Binding [VisualStateManager] view state to a MVVM viewmodel?
- WPF: How to customize SelectionBoxItem in ComboBox
- Any free WPF themes? [closed]
- Binding StringFormat
- MVVM and the TextBox’s SelectedText property
- WindowsFormsHost is always the most top from WPF element
- WPF: How to display an image at its original size?
- WPF binding with StringFormat doesn’t work on ToolTips
- How to make the border trim the child elements?
- WPF Visibility of a UI element based on combo selection
- How do I dynamically bind and statically add MenuItems?
- WPF set border background in trigger
- WPF IsEditable=true ComboBox filled with objects displays the ToString() as the selected item