silverlight: How to set attached properties Programmatically

后端 未结 3 1924
小鲜肉
小鲜肉 2021-02-05 05:58

Suppose I have a grid with some row definitions, and a child control in that grid. How would I go about setting the Grid.Row property of the child control programatically?

3条回答
  •  感情败类
    2021-02-05 06:18

    Actually to clear a value you should use this:

    textBlock.ClearValue(Grid.RowProperty);
    

提交回复
热议问题