# C1.WPF.C1MaskedTextBox.UpdateValue

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_C1MaskedTextBox_UpdateValue_" data-uid="C1.WPF.C1MaskedTextBox.UpdateValue*">UpdateValue Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_C1MaskedTextBox_UpdateValue_" data-uid="C1.WPF.C1MaskedTextBox.UpdateValue*"></a>
<h4 id="C1_WPF_C1MaskedTextBox_UpdateValue" data-uid="C1.WPF.C1MaskedTextBox.UpdateValue">UpdateValue()</h4>
<div class="markdown level1 summary"><p>For Silverlight version of the control, forces <a class="xref" href="C1.WPF.C1MaskedTextBox.html">C1MaskedTextBox</a> to update its
<a class="xref" href="C1.WPF.C1MaskedTextBox.Value.html#C1_WPF_C1MaskedTextBox_Value">Value</a> and Text properties when the control is not loaded.
Does nothing in WPF.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void UpdateValue()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub UpdateValue()</code></pre>
</div>
<h5 id="C1_WPF_C1MaskedTextBox_UpdateValue_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>In Silverlight, when <a class="xref" href="C1.WPF.C1MaskedTextBox.html">C1MaskedTextBox</a> is not loaded yet or not included in a visual
tree at all, it doesn't get notifications about the Text property changes and can't update its
<a class="xref" href="C1.WPF.C1MaskedTextBox.Value.html#C1_WPF_C1MaskedTextBox_Value">Value</a> and Text properties at the proper time therefore, this behavior is inherited
from the base TextBox control. If you need to get correct values of these properties while the control
is not loaded, call the <a class="xref" href="C1.WPF.C1MaskedTextBox.UpdateValue.html#C1_WPF_C1MaskedTextBox_UpdateValue">UpdateValue()</a> method after you changed the properties that affect
a text formatting, such as <a class="xref" href="C1.WPF.C1MaskedTextBox.Mask.html#C1_WPF_C1MaskedTextBox_Mask">Mask</a>, <a class="xref" href="C1.WPF.C1MaskedTextBox.TextMaskFormat.html#C1_WPF_C1MaskedTextBox_TextMaskFormat">TextMaskFormat</a> and so on.</p>
<p>
This method does nothing when Silverlight version of the control is loaded, as well as in the WPF
version of the control at any moment independently of its load state.
</p>
</div>
</div>
