We help IT Professionals succeed at work.

How to change magin busyindicator programatically?

Plexo
Plexo asked
on
I need to change the Margin of busyIndicator1 by program.
Like busyIndicator1.Margin = "0,300,0,0"; But it not accept value.

XAML
<toolkit:BusyIndicator Name="busyIndicator1" BusyContent="Aguarde..." IsBusy="False" Margin="0,300,0,0" />

Thanks
Comment
Watch Question

SILVER EXPERT
Most Valuable Expert 2012
Top Expert 2008
Commented:
If you are working with Silverlight, and XAML, then Margin is a Thickness class, which would be something like this:

busyIndicator.Margin = new Thickness(0, 300, 0, 0);

Open in new window

Explore More ContentExplore courses, solutions, and other research materials related to this topic.