code_junkie

silverlight: How to set attached properties Programmatically

Nov 13th, 2011
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. textBlock.SetValue(Grid.RowProperty, 3);
  2.  
  3. textBlock.SetValue(Grid.RowProperty, null);
  4.  
  5. Grid.SetRow(MyControl, myRowNumber);
  6.  
  7. textBlock.ClearValue(Grid.RowProperty);
Add Comment
Please, Sign In to add comment