[]
        
(Showing Draft Content)

C1.WPF.RichTextBox.C1ImageDialog

C1ImageDialog Class

Contents of the dialog used in C1InsertImageTool.

Namespace: C1.WPF.RichTextBox
Assembly: C1.WPF.RichTextBox.Toolbar.4.6.2.dll
Syntax
[TemplatePart(Name = "UrlOKButton", Type = typeof(Button))]
[TemplatePart(Name = "FilePicker", Type = typeof(C1FilePicker))]
[TemplatePart(Name = "FileOKButton", Type = typeof(Button))]
[TemplatePart(Name = "UrlText", Type = typeof(TextBox))]
public class C1ImageDialog : Control, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient

Constructors

Name Description
C1ImageDialog()

Initializes a new instance of a C1ImageDialog.

Fields

Name Description
CanUserInsertFileProperty

Identifies the CanUserInsertFile dependency property.

CanUserInsertUrlProperty

Identifies the CanUserInsertUrl dependency property.

FilenameProperty

Identifies the Filename dependency property.

StreamProperty

Identifies the Stream dependency property.

UrlProperty

Identifies the Url dependency property.

Properties

Name Description
CanUserInsertFile

Gets or sets a value indicating whether the user is allowed to insert an image from data in a local file.

CanUserInsertUrl

Gets or sets a value indicating whether the user is allowed to insert linked images via an internet address.

Filename

Gets or sets the name of the selected file.

Stream

Gets or sets an array of bytes with image data.

Url

Gets or sets the content of the url field.

Methods

Name Description
OnApplyTemplate()

Builds the visual tree for the C1ImageDialog control when a new template is applied.

OnPreviewKeyDown(KeyEventArgs)

Events

Name Description
FileSelected

Event fired when the file OK button is clicked.

UrlSelected

Event fired when the Url OK button is clicked.