TextBox with single line WPF
<p>I'm using WPF.<br>
I try to create single line TextBox not multi line.
<br>
What i'm trying is<br></p>

<pre><code>&lt;StackPanel Orientation="Horizontal"&gt;
     &lt;TextBox Margin="5" VerticalAlignment="Center" Text="Single line" /&gt;
&lt;/StackPanel&gt;
</code></pre>

<p><br>
But when i tried to enter a text, the TextBox is multiline and not single line<br>
How can i fix it?<br>Thanks.</p>