Windows controls tutorial




















Column properties. SplitView represents a container with two views; one view for the main content and another view that is typically used for navigation commands. RelativePanel defines an area within which you can position and align child objects in relation to each other or the parent panel.

ViewBox defines a content decorator that can stretch and scale a single child to fill the available space. GridView is a control that presents a collection of items in rows and columns and can be scrolled horizontally.

Gets or sets the context menu element that should appear whenever the context menu is requested through user interface UI from within this element. An application may also display additional windows to do the user to gather or display important information.

Represents a control that displays lightweight UI that is either information, or requires user interaction. Represents a Windows menu control that enables you to hierarchically organize the elements associated with commands and event handlers. A control that lets a user edit rich text documents with content like formatted text, hyperlinks, and images. A control that lets the user select from a range of values by moving a Thumb control along a track.

Given below is an example, which contains different types of controls in a SplitView. In XAML file, different controls are created with some properties and events. Pavan Lalwani. Trevoir Williams. Fettah Ben. Total Seminars. Brandon Dennis. Fabrice Chrzanowski. Previous Page. Next Page. FolderBrowserDialog Component Displays an interface with which users can browse and select a directory or create a new one.

FontDialog Component Exposes the fonts that are currently installed on the system. GroupBox Control Provides an identifiable grouping for other controls. HScrollBar and VScrollBar Controls Provide navigation through a list of items or a large amount of information by scrolling either horizontally or vertically within an application or control.

ImageList Component Displays images on other controls. Label Control Displays text that cannot be edited by the user. ListBox Control Allows the user to select one or more items from a predefined list.

MainMenu Component Displays a menu at run time. Although MenuStrip replaces and adds functionality to the MainMenu control of previous versions, MainMenu is retained for both backward compatibility and future use if you choose. MaskedTextBox Control Constrains the format of user input in a form. MenuStrip Control Provides a menu system for a form. MonthCalendar Control Presents an intuitive graphical interface for users to view and set date information.

NotifyIcon Component Displays icons for processes that run in the background and would not otherwise have user interfaces.

NumericUpDown Control Displays numerals that a user can browse through and select from. OpenFileDialog Component Allows users to open files by using a pre-configured dialog box. PageSetupDialog Component Sets page details for printing through a pre-configured dialog box. Panel Control Provide an identifiable grouping for other controls, and allows for scrolling.

PrintDialog Component Selects a printer, chooses the pages to print, and determines other print-related settings. PrintDocument Component Sets the properties that describe what to print, and prints the document in Windows-based applications. PrintPreviewControl Control Allows you to create your own PrintPreview component or dialog box instead of using the pre-configured version. PrintPreviewDialog Control Displays a document as it will appear when it is printed.

ProgressBar Control Graphically indicates the progress of an action towards completion. RadioButton Control Presents a set of two or more mutually exclusive options to the user. RichTextBox Control Allows users to enter, display, and manipulate text with formatting. SaveFileDialog Component Selects files to save and where to save them. SoundPlayer Class Enables you to easily include sounds in your applications. SplitContainer Control Allows the user to resize a docked control. Splitter Control Allows the user to resize a docked control.

When a date is chosen, the month calendar control automatically disappears. The Image editor has an extensive set of tools for creating and editing images, as wellas features to help you create toolbar bitmaps. A Slider Control also known as a trackbar is a window containing a slider and optional tick marks.

When the user moves the slider, using either the mouse or the direction keys, the control sends notification messages to indicate the change.

It is represented by CSliderCtrl class. A scrollbar is a graphical control element with which continuous text, pictures or anything else can be scrolled in two directions along a control by clicking an arrow. It is represented by CScrollBar class. A Tree View Control is a window that displays a hierarchical list of items, such as the headings in a document, the entries in an index, or the files and directories on a disk. Each item consists of a label and an optional bitmapped image, and each item can have a list of subitems associated with it.

By clicking an item, the user can expand and collapse the associated list of subitems. It is represented by CTreeCtrl class. Encapsulates the functionality of a List View Control, which displays a collection of items each consisting of an icon from an image list and a label. It is represented by CListCtrl class. A list control consists of using one of four views to display a list of items. Previous Page. Next Page.

Previous Page Print Page. Save Close. Static Control A static control is an object that displays information to the user without his or her direct intervention.

Button A button is an object that the user clicks to initiate an action. Bitmap Button A bitmap button displays a picture or a picture and text on its face. Command Button A command button is an enhanced version of the regular button. Static Text A static control displays a text string, box, rectangle, icon, cursor, bitmap, or enhanced metafile. List Box A list box displays a list of items, such as filenames, that the user can view and select.

Combo Boxes A combo box consists of a list box combined with either a static control or edit control. Radio Buttons A radio button is a control that appears as a dot surrounded by a round box. Checkboxes A checkbox is a Windows control that allows the user to set or change the value of an item as true or false. Image Lists An Image List is a collection of same-sized images, each of which can be referred to by its zero-based index.

Edit Box An Edit Box is a rectangular child window in which the user can enter text. Group Box A group box is a static control used to set a visible or programmatic group of controls. Spin Button A Spin Button Control also known as an up-down control is a pair of arrow buttons that the user can click to increment or decrement a value, such as a scroll position or a number displayed in a companion control.



0コメント

  • 1000 / 1000