-
Notifications
You must be signed in to change notification settings - Fork 52
UPF Elements
The Ultraviolet Presentation Foundation defines many common user interface elements. The built-in element types are summarized below.
Most of these elements are defined in the TwistedLogik.Ultraviolet.UI.Presentation.Controls namespace; those which are indicated to be "primitives" are instead found in TwistedLogik.Ultraviolet.UI.Presentation.Controls.Primitives.
A standard clickable button; the Click routed event is raised when the button is clicked.
A special kind of ToggleButton which displays a check mark when the button is toggled.
A drop-down list of selectable items. Note that, at present, the name is a bit of a misnomer, as UPF combo boxes do not currently support entering an arbitrary value. This is planned to be fixed in a future release.
A wrapper for items which are displayed inside of a ComboBox. If not explicitly created in UVML, each item inside of a ComboBox will automatically be wrapped inside one of these.
Respectively, horizontal and vertical sliders, consisting of a movable button inside of a track.
An element which displays an image. The image is specified by the element's Source dependency property, which has a styling name of source-image.
An element which displays a list of selectable items. By default, only one item can be selected at a time; this can be changed by setting the list box's SelectionMode dependency property to SelectionMode.Multiple.
A wrapper for items which are displayed inside of a ListBox. If not explicitly created in UVML, each item inside of a ListBox will automatically be wrapped inside one of these.
A variant of the TextBlock control which is optimized to display numeric values rather than text; using a NumericTextBlock will produce less garbage on the managed heap.
A numeric up/down control consists of a text box that displays a numeric value and two buttons which increment and decrement that value.
A bar which progressively fills as some process approaches completion.
Works similarly to a CheckBox, but radio buttons which have the same logical parent form a group. Only one radio button in a group can be toggled at any given time.
A colored rectangle.
A special kind of button which repeatedly raises its Click event as long as the user continues to hold it down.
A panel which can scroll its content, if that content exceeds the size of the panel.
A panel with multiple tabs, each of which has its own content that is only displayed when its tab is selected.
A page of content within a TabControl.
A text label. When displaying numeric values, use NumericTextBlock instead.
A text input box with support for text selection, copy/paste, etc.
An input box for securely entering passwords.
The abstract base class for all button elements.
Horizontal and vertical scroll bars, respectively.
A popup window which is rendered on top of all other elements in the view.
The abstract base class for all elements which define a range of values, such as scroll bars and progress bars.
The abstract base class for the HScrollBar and VScrollBar elements.
The abstract base class for elements which allow the user to select a value, such as ListBox.
The abstract base class for the HSlider and VSlider elements.
The abstract base class for the TextBlock and NumericTextBlock elements.
A special kind of button which toggles between checked and unchecked states when it is clicked by the user.
A track containing a movable button, like those used by sliders and scroll bars.
- Contributing
- Dependencies
- Basic Concepts
- First Look- Platform
- First Look- Graphics
- First Look- Audio
- First Look- Input
- First Look- Content
- First Look- UI
- sRGB Color
- Customizing SpriteBatch
- Creating Fonts
- Creating Effects
- Creating Glyph Shaders
- FreeType2 Fonts
- Rendering 3D Models