PictureControl
Renders a picture structured document tag and exposes a thumb button that invokes its picture-insertion action.
Definition
Namespace:Telerik.WinControls.RichTextEditor.UI
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class PictureControl : ContentControlBase, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, ISupportDrop, IContentControl
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementUIElementFrameworkElementControlContentControlBasePictureControl...
Implements:
Inherited Members
Constructors
public PictureControl()
Fields
Identifies the InsertPictureCommand dependecy property.
public static readonly RadProperty InsertPictureCommandProperty
Properties
Gets or sets value that indicates the command to be executed when new picture is to be inserted.
public ICommand InsertPictureCommand { get; set; }
Methods
Creates the picture-action thumb part and delegates other part names to the base content control.
protected override VisualElement GetTemplateChild(string childName)
The template-part name to resolve.
Returns:The picture-action button for its part name, or the base control's result otherwise.
Overrides:
Always selects the top thumb so it can host the picture-action button.
protected override bool GetTopThumbButtonShouldBeVisible(ContentControlState state)
The content-control state; this override does not inspect it.
Returns:true.
Overrides:
Initializes the base fields and selects the top thumb for the picture action button.
protected override void InitializeFields()
Overrides:
Creates the picture-action thumb button, attaches it to the top thumb, and synchronizes its visual state.
public override void OnApplyTemplate()
Overrides:
Updates the picture-action button when selection or outline color changes in the content-control state.
protected override void OnStatePropertyChanged(object sender, PropertyChangedEventArgs e)
The picture-control state that changed.
ePropertyChangedEventArgsIdentifies the changed state property.
Overrides:
Synchronizes the picture-action button's selected state and outline color from the current picture state.
protected override void SyncDataContextChildState()
Overrides:
Applies the base hover opacity and hides the body fill while the picture control is focused.
protected override void UpdateMainBodyFillOpacity()
Overrides:
Updates the visual state and binds the picture-insertion command to the supplied picture state.
public override void UpdateState(ContentControlState state)
The state describing the picture content control.
Overrides: