Palette
This topic contains the following section.
Buttons
It contains the following controls:
- Button : The Button control reacts to user input from a mouse,
keyboard, stylus, or other input device and raises a Click event. You
can change how the button raises the ButtonBase.Click event by changing
the ClickMode property. The Button is a ContentControl.
- Checkbox : The CheckBox control enables the user to select
(check) or clear (uncheck) an option. The CheckBox can have three
states: checked, unchecked, and indeterminate. Use a CheckBox to give
the user an option, such as true/false or yes/no, or to select from a
list of options. The CheckBox is a ContentControl.
- HyperlinkButton : The HyperlinkButton represents a button
control that displays a hyperlink. When clicked, the HyperlinkButton
enables users to visit a Web page in the same Web application or a Web
page that is external to the current application. The destination URI
is specified with the NavigateUri property. You can specify a window or
a frame in the destination Web page using the TargetName property.
- RadioButton : The RadioButton control enables a user to select
a single option from a group of options. You group RadioButton controls
by putting them inside a parent or by setting the GroupName property on
each RadioButton to a particular group. When grouped, each RadioButton
control is mutually exclusive. The RadioButton is a ContentControl.
- RepeatButton : The RepeatButton control represents a button
that raises its click event repeatedly from when the button is pressed
until it is released. A RepeatButton control contains properties that
specify the delay before clicks repeat and the interval between clicks.
- ToggleButton : The ToggleButton control is the base class of
controls that can switch states, such as CheckBox, RadioButton.
ComboBox
It contains the following controls:
- ComboBox : The ComboBox represents a selection control that
combines a non-editable text box and a popup that contains a list box
that enables users to select an item from a list.
- ComboBoxItem : The ComboBox represents the item of the
ComboBoxItem.
Inputs
It contains the following controls:
- TextBox : The TextBox control can be used to obtain input from
the user or to display text. The text box control is generally used for
editable text, although it can also be set to read-only. Text boxes can
display multiple lines and wrap text to the size of the control.
- DatePickerTextBox : The TextBox for DatePicker.
- PasswordBox : The PasswordBox control is used to input
sensitive or private information in a single line and non-wrapping text
area. You cannot view the actual text and can only view the characters
that represent the content.
Media
It contains the following controls:
- MediaElement : The MediaElement control hosts audio or video
content. A MediaElement control provides a rectangular region that can
display video on its surface, or plays audio if no video is present.
- MediaScaleImage : The MultiScaleImage control enables users to
open a multi-resolution image that can be scaled and repositioned for
detailed viewing. The MultiScaleImage is for use with the Deep Zoom
technology.
- Image : The Image control displays an image in PNG or JPEG
format. The Image control displays indexed images with 1, 4 or 8 bit
color-depth or true color images with 24 or 32 bit color-depth.
Grayscale images are not supported. For more information about
supported image formats, see BitmapImage.
Others
The rest controls in the palette is like below:
The rest controls in the palette is like below:
- Popup : The Popup control overlays content on top of existing
content. A Popup control is useful for temporarily displaying
information that accomplishes a particular task. A popup control will
always appear on top of existing content, unless another popup is
opened on top of it.
- ProgressBar : The ProgressBar control indicates the progress
of an operation. You can use this control to show generic progress or
progress that changes according to a value.
- ScrollContentPresenter : The presenter of ScrollContente.
- Slider : The Slider control lets the user select from a range
of values by moving a Thumb control along a track.
- ScrollBar : The ScrollBar control provides a scroll bar that
has a sliding Thumb whose position corresponds to a value. The
ScrollBar control can be oriented horizontally or vertically.
- TextBlock : The TextBlock control displays small amounts of
text content. You can set the content of a TextBlock by using the Text
property. Alternatively, you can set the Inlines property to a
collection of Inline objects, such as Run or LineBreak objects.
- ToolTip : The ToolTip control provides the user with
information about an element in the UI using a popup window.
- Datepicker : The DatePicker control enables a user to select a
date by either typing it into a TextBox or by using a drop-down
Calendar.
- Thumb : The Thumb control represents a control that can be
dragged by user.
- UserControl : The User control supply a simple way to create
control.
- Calendar : The Calendar control provides a graphical UI for
the user to select a date. It displays dates one month at a time, and
provides the ability to scroll from month to month or switch to a
yearly view.
- ContentControl : The ContentControl represents a control with
a single piece of content of any type. Many controls derive from
ContentControl and can contain objects, such as a Button or a Panel.
You can customize the appearance of a ContentControl by applying custom
templates.
- ContentPresenter : The presenter of ContentControl.
These container controls in the palette is like below:
- Canvas : The Canvas control provides a surface to display
child elements at specific coordinates in the canvas. A canvas can
contain one or more UIElement objects.
- Grid : The Grid control provides a surface composed of rows
and columns to display child elements. You define the rows and columns
for a Grid, than assign objects to a specific row or column in the
grid. You can optionally display gridlines.
- ListBox : The ListBox control contains a collection of items.
You can populate the control by binding it to a data source or
displaying unbound items. The list box is an items control, which means
that you can populate it with items that contain text or other
controls.
- TabControl : The TabControl provides a tabbed interface for
displaying elements. Child elements are hosted in a TabItem.
- DataGrid : The DataGrid control provides a flexible way to
display a collection of data in rows and columns. The built-in column
types include a text box column, a check box column, and a template
column for hosting custom content. The built-in row type includes a
drop-down details section that you can use to display additional
content under the cell values.
- Border : The Border control provides a border, background, or
both to another control. A border can contain only one child element.
- ScrollViewer : The ScrollViewer control encapsulates a piece
of content, providing up to two ScrollBar controls to scroll a viewport
over the content.
- StackPanel : The StackPanel control provides a surface to
display child elements in a line; either horizontally or vertically.
These shape controls in the palette is like below:
It contains the following controls:
- Ellipse : Draw an ellipse.
- Line : Draw an straight line between tow points.
- Polygon : Draw a polygon.
- Polyline : Draw a series of connected straight lines.
- Path : Draw a series of connected straight lines and curves.
- Rectangle : Draw a rectangle shape.