Guest User

Untitled

a guest
Aug 21st, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. How to change the property of component in wpf?
  2. <Button Content="Button" Grid.Column="1" Height="23" HorizontalAlignment="Left" Margin="0,0,0,0" Name="Button1" VerticalAlignment="Top" Width="75" Grid.Row="1" />
  3.  
  4. MsgBox(Button1.Margin.Top)
  5. Button1.Margin.Top = 10
  6.  
  7. Button1.Margin = New Thickness(Button1.Margin.Left, 10, Button1.Margin.Right, Button1.Margin.Bottom)
Add Comment
Please, Sign In to add comment