How to get all Properties of inside of usercontrol`s TextBox
<p>I created a <code>UserControl</code> in c# wpf. I want to get all properties of TextBox (txtCode) Property Box</p>

<p><a href="https://i.stack.imgur.com/aiZcj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aiZcj.png" alt=""></a></p>

<pre><code>&lt;UserControl x:Class="WpfApplication2.UserControl1"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" Height="315.358" Width="758"&gt;
    &lt;Grid &gt;
        &lt;TextBox x:Name="txtCode" HorizontalAlignment="Left" Height="97" Margin="134,62,0,0" TextWrapping="Wrap" Text="00001" VerticalAlignment="Top" Width="588" FontSize="30"/&gt;
        &lt;Label Content="Code" HorizontalAlignment="Left" Margin="27,72,0,0" VerticalAlignment="Top" Width="138" Height="97" FontSize="30"/&gt;
        &lt;Button Content="Submit" HorizontalAlignment="Left" Margin="290,186,0,0" VerticalAlignment="Top" Width="247" Height="48" FontSize="30"/&gt;
    &lt;/Grid&gt;
&lt;/UserControl&gt;
</code></pre>

<p>In Windows form something Like below Image</p>

<p><img src="https://i.stack.imgur.com/sJy3K.jpg" alt="enter image description here"></p>

<p>c# Code </p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code> public TextBox txtCodeProperties
        {
            get { return txtCode; }
            set { txtCode = value; }
        }</code></pre>
</div>
</div>
</p>