& ltstyle x:Key = " custom text block " target Type = " { x:Type text block } " & gt;
& ltsetter Property = " Margin " Value = " 2 "/& gt;
& ltsetter Property = " font size " Value = " 15 "/& gt;
& lt/Style & gt;
使用時,請指定密鑰,未指定的內容將無效:
& lttext block Style = " { static resource custom text block } "/& gt;
希望對妳有幫助。如果妳有任何問題,請詢問或嗨。