2010-07-08 87 views

回答

0

只要做到這一點 -

Style style = new Style(typeof(RowDefinition)); 
    style.Setters.Add(new Setter(RowDefinition.HeightProperty, 10)); 

    yourGrid.RowDefinitions[0].Style = style; 

更新:

您可以使用​​方法來找到你的風格。

檢查此瞭解更多詳情 -

Resources and Code

+0

我已經在「myTheame.xaml」,所以在運行時如何從「myTheame.xaml」閱讀風格和它適用於電網的定義的風格行。 – 2010-07-08 10:55:50

+0

已更新回答此問題。 – akjoshi 2010-07-08 12:03:30

相關問題