KaZzA
KaZzA

Reputation: 104

How to set the left margin in WPF application using VB.NET?

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

Answers (1)

Abdusalam Ben Haj
Abdusalam Ben Haj

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

Related Questions