Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In in WPF controls, which ones are similar to `<div>` HTML tag?

I need to wrap a group of WPF controls to that I can toggle their visibility at the same time. How can I do that?

like image 787
Nam G VU Avatar asked Oct 20 '10 12:10

Nam G VU


People also ask

What is WPF control?

Windows Presentation Foundation (WPF) allows developers to easily build and create visually enriched UI based applications. The classical UI elements or controls in other UI frameworks are also enhanced in WPF applications. All of the standard WPF controls can be found in the Toolbox which is a part of the System.

Which type of Panel is used when we have to customize the builtin controls in WPF?

The Panel Class Panel is the base class for all elements that provide layout support in Windows Presentation Foundation (WPF). Derived Panel elements are used to position and arrange elements in Extensible Application Markup Language (XAML) and code.

How do we refer to WPF controls in code?

Controls in WPF are accessed by their Name properties. We specify the Name property in the XAML, and then can access the control by that name directly in C# code. Property notes. Name allows controls to interact.


1 Answers

StackPanel, DockPanel, WrapPanel are mainly used for design, to align the controls in a specific way. Therefor i would use the Grid.

All of these can be used, but using a Panel just for hide and seek would make it lose its meaning.

like image 156
GxG Avatar answered Oct 05 '22 15:10

GxG