ContentControlPicker
Adds a drop-down button and popup content to a button content control for structured document tags that require a picker.
Definition
Namespace:Telerik.WinControls.RichTextEditor.UI
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class ContentControlPicker : ButtonContentControl, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, ISupportDrop, IContentControl
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementUIElementFrameworkElementControlContentControlBaseButtonContentControlContentControlPicker...
Derived Classes:
Implements:
Inherited Members
Constructors
public ContentControlPicker()
Fields
Identifies the DropDownWidth dependency property.
public static readonly RadProperty DropDownWidthProperty
Properties
Gets or sets the visual hosted in the popup, replacing the previously hosted element when changed.
public RadElement DropDownContent { get; set; }
Gets the popup that hosts the picker content after template application.
public ContentControlPopup DropDownPopup { get; }
Gets the value that idicates the width of the drop down content.
public double DropDownWidth { get; }
Methods
Places the button container along the bottom edge of the content control, adjusted for the body border.
Creates the chevron button that opens or closes the picker popup.
protected override RadButtonElement CreateButtonElement()
A drop-down button element using the content-control glyph font.
Overrides:
Creates the popup associated with the drop-down button and configures its binding and alignment behavior.
protected virtual ContentControlPopup CreatePopupForm()
A popup with animations disabled and edge-snapped vertical alignment.
Shows the button only while focused and when the control's lock state permits interaction.
protected override bool GetButtonShouldBeVisible(ContentControlState state)
The picker state used to determine button visibility.
Returns:true when focused and the lock is unset, Unlocked, or SdtLocked.
Overrides:
Gets the default size used when displaying the picker popup.
protected virtual Size GetPopupSize()
A size of 200 by 200 pixels; derived controls can override this value.
Wires the drop-down button and creates the popup used to host picker content.
public override void OnApplyTemplate()
Overrides:
Clears the drop-down button's open state when the popup closes while the pointer is no longer over the button.
protected virtual void OnPopupClosed(object sender, RadPopupClosedEventArgs e)
The picker popup.
eRadPopupClosedEventArgsThe popup-closing event data.
Provides a cancellable hook immediately before the picker popup opens; the base implementation does not cancel it.
protected virtual void OnPopupOpening(object sender, CancelEventArgs e)
The picker popup.
eCancelEventArgsSet Cancel to prevent the popup from opening.
Updates the button height or visibility when the corresponding picker-state property changes.
protected override void OnStatePropertyChanged(object sender, PropertyChangedEventArgs e)
The picker state that changed.
ePropertyChangedEventArgsIdentifies the changed state property.
Overrides:
Applies the picker state's button height after the visual template has been applied.
protected override void SyncDataContextChildState()
Overrides: