IconSource.Foreground 屬性

定義

取得或設定筆刷,繪製控件的前景色彩。

public:
 property Brush ^ Foreground { Brush ^ get(); void set(Brush ^ value); };
Brush Foreground();

void Foreground(Brush value);
public Brush Foreground { get; set; }
var brush = iconSource.foreground;
iconSource.foreground = brush;
Public Property Foreground As Brush
<iconSource Foreground="{StaticResource resourceName}"/>

屬性值

繪製控制項前景的筆刷。 默認值為 null, (null 筆刷) ,評估為 透明 以進行轉譯。 不過,此值通常是在運行時間由系結至使用中主題和其他設定的默認系統資源所設定。

適用於