PickerBase Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Implements a re-usable base component useful for showing Picker-like controls.
public ref class PickerBase : System::Windows::Controls::HeaderedContentControl
public class PickerBase : System.Windows.Controls.HeaderedContentControl
type PickerBase = class
inherit HeaderedContentControl
Public Class PickerBase
Inherits HeaderedContentControl
- Inheritance
-
PickerBase
Remarks
If a custom template is provided for this control, then the template MUST provide the following template parts:
PART_DropDown - A required template part which must be of type DismissiblePopup. The dropdown which hosts the picker. PART_DropDownButton - A required template part which must be of type ToggleButton. The ToggleButton which controls whether the dropdown is open.
Constructors
PickerBase() |
Creates a new instance of the PickerBase class. |
Fields
CloseDropDownCommand |
Informs the PickerBase that it should close the dropdown. |
DropDownButtonTemplateProperty |
Identifies the DropDownButtonTemplate dependency property. |
DropDownStyleProperty |
Identifies the DropDownStyle dependency property. |
IsOpenProperty |
Identifies the IsOpen dependency property. |
Properties
DropDownButtonTemplate |
Gets or sets a value that controls the visual tree of the DropDown button. |
DropDownStyle |
Gets or sets the style of the drop-down. |
IsOpen |
Gets or sets a value indicating whether the Popup is visible. |
Methods
OnApplyTemplate() |
Called when ApplyTemplate is called. |
OnCloseDropDownExecuted(ExecutedRoutedEventArgs) |
Called when CloseDropDown executes. |
OnDropDownButtonTemplateChanged(PropertyChangedEventArgs<ControlTemplate>) |
Called when DropDownButtonTemplate property changes. |
OnDropDownStyleChanged(PropertyChangedEventArgs<Style>) |
Called when DropDownStyle property changes. |
OnIsOpenChanged(PropertyChangedEventArgs<Boolean>) |
Called when IsOpen property changes. |
Events
DropDownButtonTemplateChanged |
Occurs when DropDownButtonTemplate property changes. |
DropDownStyleChanged |
Occurs when DropDownStyle property changes. |
IsOpenChanged |
Occurs when IsOpen property changes. |