IconSource.Foreground プロパティ

定義

コントロールの前景色を描画するブラシを取得または設定します。

このドキュメントは、UWP 用 WinUI 2 に適用されます (Windows アプリ SDKWinUI については、Windows アプリ SDK名前空間を参照してください)。

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

void Foreground(Brush value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
Brush Foreground();

void Foreground(Brush value);
public Brush Foreground { get; set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
public Brush Foreground { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] set; }
Public Property Foreground As Brush
<iconSource Foreground="{StaticResource resourceName}"/>

プロパティ値

コントロールの前景を描画するブラシ。 既定値は null (null ブラシ) で、レンダリングでは Transparent と評価されます。 ただし、この値は通常、アクティブなテーマやその他の設定に関連付けられている実行時の既定のシステム リソースによって設定されます。

属性
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallbackAttribute

適用対象