AccessText.Background 屬性

定義

取得或設定填滿內容區域的 Brush

public:
 property System::Windows::Media::Brush ^ Background { System::Windows::Media::Brush ^ get(); void set(System::Windows::Media::Brush ^ value); };
public System.Windows.Media.Brush Background { get; set; }
member this.Background : System.Windows.Media.Brush with get, set
Public Property Background As Brush

屬性值

Brush

填滿內容區域的 Brush。 預設為 null

範例

下列範例示範如何設定屬性,以變更控制項中的 AccessText 文字外觀。

<TextBox Name="textBox2" Width="50" Height="30"/>
<Label Target="{Binding ElementName=textBox2}">
  <AccessText Background="Red" Foreground="DarkSlateBlue"    
              FontFamily="Arial Narrow" FontSize="16" FontStyle="Italic" 
              FontWeight="Bold">
    E_dit
  </AccessText>
</Label>

備註

相依性屬性資訊

識別碼欄位 BackgroundProperty
設定為 的中繼資料屬性 true AffectsRender

適用於

另請參閱