# C1.WPF.SelectOnFocusCondition

## Content

<div class="doc-site-dotnet-api-container">




  <h1 id="C1_WPF_SelectOnFocusCondition" data-uid="C1.WPF.SelectOnFocusCondition" class="text-break">SelectOnFocusCondition Enum
</h1>
  <div class="markdown level0 summary"><p>Defines the possible conditions that cause selection of an entire control text when control receives focus.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.html">C1.WPF</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.4.6.2.dll</h6>
  <h5 id="C1_WPF_SelectOnFocusCondition_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public enum SelectOnFocusCondition</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Enum SelectOnFocusCondition</code></pre>
  </div>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    <thead>
    </thead></thead><tbody>
      <tr>
        <td id="C1_WPF_SelectOnFocusCondition_Always">Always</td>
        <td><p>Always select a text.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_SelectOnFocusCondition_Never">Never</td>
        <td><p>Never select a text.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_SelectOnFocusCondition_OnDefaultSelection">OnDefaultSelection</td>
        <td><p>Select text only if the both SelectionStart and SelectionLength properties are set to zero.</p>
</td>
      </tr>
    </tbody>
  </table>
</div>
