Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WPF change left margin of textbox

I want to change the just the left margin of a WPF textbox via XAML:

This code obviously does not work :

<TextBox Margin.Left ="0"/>

What would be the correct code, does anyone here know ?

Regards, MadSeb

like image 674
MadSeb Avatar asked Sep 16 '10 16:09

MadSeb


1 Answers

I can't see your code - but it would normally go like this:

<TextBox Margin="5 0 0 0"/>

First number is left, then top, then right and finally bottom margin.

Hope this helps!

like image 118
Goblin Avatar answered Oct 30 '22 05:10

Goblin