Reputation: 104
How can I set the left margin in a WPF application to 213 pixels?
I have tried:
MyRecatgle.Margin.left = 213
Upvotes: 0
Views: 2536
Reputation: 5433
Use
MyRecatgle.Margin = New Thickness(213, 0, 0, 0)
Where the constructor parameters for Thickness are:
Thickness(left, top, right, bottom)
Upvotes: 3