# GrapeCity.Wpf.SpreadSheet.CellType.Editors.DropDownWindow.StaysOpen

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_DropDownWindow_StaysOpen_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DropDownWindow.StaysOpen*">StaysOpen Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_DropDownWindow_StaysOpen_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DropDownWindow.StaysOpen*"></a>
<h4 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_DropDownWindow_StaysOpen" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DropDownWindow.StaysOpen">StaysOpen</h4>
<div class="markdown level1 summary"><p>Gets or sets a value that indicates whether the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DropDownWindow.html">DropDownWindow</a> closes when the control is no longer in focus. This is a dependency property.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[Bindable(true)]
public bool StaysOpen { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;Bindable(True)&gt;
Public Property StaysOpen As Boolean</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p><a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a> if the Popup control closes when the control is no longer in focus; otherwise, <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>. The default is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a>.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_DropDownWindow_StaysOpen_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>When the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DropDownWindow.StaysOpen.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_DropDownWindow_StaysOpen">StaysOpen</a> property is set to <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a>, <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DropDownWindow.html">DropDownWindow</a> stays open until it is explicitly closed by setting the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DropDownWindow.IsOpen.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_DropDownWindow_IsOpen">IsOpen</a> property to <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>. When <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DropDownWindow.StaysOpen.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_DropDownWindow_StaysOpen">StaysOpen</a> is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>, the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DropDownWindow.html">DropDownWindow</a> control intercepts all mouse and keyboard events to determine when one of these events occurs outside the  <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DropDownWindow.html">DropDownWindow</a> control.</p>
</div>
</div>
