# C1.WPF.RichTextBox.C1ImageDialog

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_RichTextBox_C1ImageDialog" data-uid="C1.WPF.RichTextBox.C1ImageDialog" class="text-break">C1ImageDialog Class
</h1>
  <div class="markdown level0 summary"><p>Contents of the dialog used in <a class="xref" href="C1.WPF.RichTextBox.C1InsertImageTool.html">C1InsertImageTool</a>.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.threading.dispatcherobject">DispatcherObject</a></div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.dependencyobject">DependencyObject</a></div>
    <div class="level3"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.visual">Visual</a></div>
    <div class="level4"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement">UIElement</a></div>
    <div class="level5"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.frameworkelement">FrameworkElement</a></div>
    <div class="level6"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.control">Control</a></div>
    <div class="level7"><span class="xref">C1ImageDialog</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.animation.ianimatable">IAnimatable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.iframeworkinputelement">IFrameworkInputElement</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.iinputelement">IInputElement</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.isupportinitialize">ISupportInitialize</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.markup.iqueryambient">IQueryAmbient</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.RichTextBox.html">C1.WPF.RichTextBox</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.RichTextBox.Toolbar.4.6.2.dll</h6>
  <h5 id="C1_WPF_RichTextBox_C1ImageDialog_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TemplatePart(Name = &quot;UrlOKButton&quot;, Type = typeof(Button))]
[TemplatePart(Name = &quot;FilePicker&quot;, Type = typeof(C1FilePicker))]
[TemplatePart(Name = &quot;FileOKButton&quot;, Type = typeof(Button))]
[TemplatePart(Name = &quot;UrlText&quot;, Type = typeof(TextBox))]
public class C1ImageDialog : Control, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TemplatePart(Name:=&quot;UrlOKButton&quot;, Type:=GetType(Button))&gt;
&lt;TemplatePart(Name:=&quot;FilePicker&quot;, Type:=GetType(C1FilePicker))&gt;
&lt;TemplatePart(Name:=&quot;FileOKButton&quot;, Type:=GetType(Button))&gt;
&lt;TemplatePart(Name:=&quot;UrlText&quot;, Type:=GetType(TextBox))&gt;
Public Class C1ImageDialog
    Inherits Control
    Implements IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_RichTextBox_C1ImageDialog__ctor" data-uid="C1.WPF.RichTextBox.C1ImageDialog.#ctor">
          <a class="xref" href="C1.WPF.RichTextBox.C1ImageDialog.-ctor.html#C1_WPF_RichTextBox_C1ImageDialog__ctor">C1ImageDialog()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.WPF.RichTextBox.C1ImageDialog.html">C1ImageDialog</a>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_RichTextBox_C1ImageDialog_CanUserInsertFileProperty" data-uid="C1.WPF.RichTextBox.C1ImageDialog.CanUserInsertFileProperty">
          <a class="xref" href="C1.WPF.RichTextBox.C1ImageDialog.CanUserInsertFileProperty.html">CanUserInsertFileProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.RichTextBox.C1ImageDialog.CanUserInsertFile.html#C1_WPF_RichTextBox_C1ImageDialog_CanUserInsertFile">CanUserInsertFile</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_C1ImageDialog_CanUserInsertUrlProperty" data-uid="C1.WPF.RichTextBox.C1ImageDialog.CanUserInsertUrlProperty">
          <a class="xref" href="C1.WPF.RichTextBox.C1ImageDialog.CanUserInsertUrlProperty.html">CanUserInsertUrlProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.RichTextBox.C1ImageDialog.CanUserInsertUrl.html#C1_WPF_RichTextBox_C1ImageDialog_CanUserInsertUrl">CanUserInsertUrl</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_C1ImageDialog_FilenameProperty" data-uid="C1.WPF.RichTextBox.C1ImageDialog.FilenameProperty">
          <a class="xref" href="C1.WPF.RichTextBox.C1ImageDialog.FilenameProperty.html">FilenameProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.RichTextBox.C1ImageDialog.Filename.html#C1_WPF_RichTextBox_C1ImageDialog_Filename">Filename</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_C1ImageDialog_StreamProperty" data-uid="C1.WPF.RichTextBox.C1ImageDialog.StreamProperty">
          <a class="xref" href="C1.WPF.RichTextBox.C1ImageDialog.StreamProperty.html">StreamProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.RichTextBox.C1ImageDialog.Stream.html#C1_WPF_RichTextBox_C1ImageDialog_Stream">Stream</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_C1ImageDialog_UrlProperty" data-uid="C1.WPF.RichTextBox.C1ImageDialog.UrlProperty">
          <a class="xref" href="C1.WPF.RichTextBox.C1ImageDialog.UrlProperty.html">UrlProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.RichTextBox.C1ImageDialog.Url.html#C1_WPF_RichTextBox_C1ImageDialog_Url">Url</a> dependency property.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_RichTextBox_C1ImageDialog_CanUserInsertFile" data-uid="C1.WPF.RichTextBox.C1ImageDialog.CanUserInsertFile">
          <a class="xref" href="C1.WPF.RichTextBox.C1ImageDialog.CanUserInsertFile.html#C1_WPF_RichTextBox_C1ImageDialog_CanUserInsertFile">CanUserInsertFile</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the user is allowed to insert an image from data in a local file.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_C1ImageDialog_CanUserInsertUrl" data-uid="C1.WPF.RichTextBox.C1ImageDialog.CanUserInsertUrl">
          <a class="xref" href="C1.WPF.RichTextBox.C1ImageDialog.CanUserInsertUrl.html#C1_WPF_RichTextBox_C1ImageDialog_CanUserInsertUrl">CanUserInsertUrl</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the user is allowed to insert linked images via an internet address.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_C1ImageDialog_Filename" data-uid="C1.WPF.RichTextBox.C1ImageDialog.Filename">
          <a class="xref" href="C1.WPF.RichTextBox.C1ImageDialog.Filename.html#C1_WPF_RichTextBox_C1ImageDialog_Filename">Filename</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the name of the selected file.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_C1ImageDialog_Stream" data-uid="C1.WPF.RichTextBox.C1ImageDialog.Stream">
          <a class="xref" href="C1.WPF.RichTextBox.C1ImageDialog.Stream.html#C1_WPF_RichTextBox_C1ImageDialog_Stream">Stream</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets an array of bytes with image data.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_C1ImageDialog_Url" data-uid="C1.WPF.RichTextBox.C1ImageDialog.Url">
          <a class="xref" href="C1.WPF.RichTextBox.C1ImageDialog.Url.html#C1_WPF_RichTextBox_C1ImageDialog_Url">Url</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the content of the url field.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_RichTextBox_C1ImageDialog_OnApplyTemplate" data-uid="C1.WPF.RichTextBox.C1ImageDialog.OnApplyTemplate">
          <a class="xref" href="C1.WPF.RichTextBox.C1ImageDialog.OnApplyTemplate.html#C1_WPF_RichTextBox_C1ImageDialog_OnApplyTemplate">OnApplyTemplate()</a>
        </td>
        <td class="markdown level1 summary"><p>Builds the visual tree for the <a class="xref" href="C1.WPF.RichTextBox.C1ImageDialog.html">C1ImageDialog</a> control when a new template is applied.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_C1ImageDialog_OnPreviewKeyDown_System_Windows_Input_KeyEventArgs_" data-uid="C1.WPF.RichTextBox.C1ImageDialog.OnPreviewKeyDown(System.Windows.Input.KeyEventArgs)">
          <a class="xref" href="C1.WPF.RichTextBox.C1ImageDialog.OnPreviewKeyDown.html#C1_WPF_RichTextBox_C1ImageDialog_OnPreviewKeyDown_System_Windows_Input_KeyEventArgs_">OnPreviewKeyDown(KeyEventArgs)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_RichTextBox_C1ImageDialog_FileSelected" data-uid="C1.WPF.RichTextBox.C1ImageDialog.FileSelected">
          <a class="xref" href="C1.WPF.RichTextBox.C1ImageDialog.FileSelected.html">FileSelected</a>
        </td>
        <td class="markdown level1 summary"><p>Event fired when the file OK button is clicked.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_C1ImageDialog_UrlSelected" data-uid="C1.WPF.RichTextBox.C1ImageDialog.UrlSelected">
          <a class="xref" href="C1.WPF.RichTextBox.C1ImageDialog.UrlSelected.html">UrlSelected</a>
        </td>
        <td class="markdown level1 summary"><p>Event fired when the Url OK button is clicked.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
