2
是否有方法可以定義可添加到項目的屬性組合?元素屬性繼承和重用XAML更佳實踐
所以不是:
<TextBlock Text="Hi" Foreground="Gray" Margin="0,8,0,0" FontFamily="Segoe UI"/>
<TextBlock Text="there" Foreground="Gray" Margin="0,8,0,0" FontFamily="Segoe UI"/>
我會做類似
<PropertyCombo name="textBlockCombo1"
Foreground="Gray" Margin="0,8,0,0" FontFamily="Segoe UI"
.
.
.
<TextBlock Text="Hi" ImportProperty="textBlockCombo1"/>
<TextBlock Text="there" ImportProperty="textBlockCombo1"/>
正是我所需要的,謝謝一堆! – isebarn
任何時候,都有一個愉快的週末! –