# C1.WPF.PropertyGrid.IPropertyGridEditor.Attach

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_PropertyGrid_IPropertyGridEditor_Attach_" data-uid="C1.WPF.PropertyGrid.IPropertyGridEditor.Attach*">Attach Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_PropertyGrid_IPropertyGridEditor_Attach_" data-uid="C1.WPF.PropertyGrid.IPropertyGridEditor.Attach*"></a>
<h4 id="C1_WPF_PropertyGrid_IPropertyGridEditor_Attach_System_Windows_FrameworkElement_C1_WPF_PropertyGrid_PropertyGroup_System_Action_System_Windows_FrameworkElement_System_Object__" data-uid="C1.WPF.PropertyGrid.IPropertyGridEditor.Attach(System.Windows.FrameworkElement,C1.WPF.PropertyGrid.PropertyGroup,System.Action{System.Windows.FrameworkElement,System.Object})">Attach(FrameworkElement, PropertyGroup, Action&lt;FrameworkElement, object&gt;)</h4>
<div class="markdown level1 summary"><p>Attaches the <code class="paramref">group</code> to the editor.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void Attach(FrameworkElement editor, PropertyGroup group, Action&lt;FrameworkElement, object&gt; valueChanged)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub Attach(editor As FrameworkElement, group As PropertyGroup, valueChanged As Action(Of FrameworkElement, Object))</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.frameworkelement">FrameworkElement</a></td>
      <td><span class="parametername">editor</span></td>
      <td><p>The editor being attached to.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.WPF.PropertyGrid.PropertyGroup.html">PropertyGroup</a></td>
      <td><span class="parametername">group</span></td>
      <td><p>The group shown in the editor.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.action-2">Action</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.frameworkelement">FrameworkElement</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>&gt;</td>
      <td><span class="parametername">valueChanged</span></td>
      <td><p>This callback is used to notify for changes in the editor.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
