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
いつでも、素晴らしい週末を持っています! –