Share via


SystemBackdrop.GetDefaultSystemBackdropConfiguration メソッド

定義

に渡すことができる既定 SystemBackdropConfiguration のオブジェクトを ISystemBackdropControllerWithTargets.SetSystemBackdropConfiguration取得します。

public:
 virtual SystemBackdropConfiguration ^ GetDefaultSystemBackdropConfiguration(ICompositionSupportsSystemBackdrop ^ target, XamlRoot ^ xamlRoot) = GetDefaultSystemBackdropConfiguration;
SystemBackdropConfiguration GetDefaultSystemBackdropConfiguration(ICompositionSupportsSystemBackdrop const& target, XamlRoot const& xamlRoot);
public SystemBackdropConfiguration GetDefaultSystemBackdropConfiguration(ICompositionSupportsSystemBackdrop target, XamlRoot xamlRoot);
function getDefaultSystemBackdropConfiguration(target, xamlRoot)
Public Function GetDefaultSystemBackdropConfiguration (target As ICompositionSupportsSystemBackdrop, xamlRoot As XamlRoot) As SystemBackdropConfiguration

パラメーター

target
ICompositionSupportsSystemBackdrop

背景のターゲット。

xamlRoot
XamlRoot

背景ターゲットの XAML ルート。

戻り値

既定 SystemBackdropConfiguration のオブジェクト。

注釈

返される既定の SystemBackdropConfiguration オブジェクトは、 SystemBackdrop の使用コンテキスト (connectedTarget) ごとに自動的に設定および維持され、 ISystemBackdropControllerWithTargets.SetSystemBackdropConfiguration に渡すことができます。 受け取る のプロパティの値は、時間の経過と同時に SystemBackdropConfiguration 変化する可能性があります。

  • テーマ: ターゲット要素 (からxamlRoot.Content取得) ElementTheme の に基づいて設定されます。

    LuminosityOpacityTintColorまたは TintOpacity がマテリアルの実装によって変更された場合FallbackColor、関連付けられている SystemBackdropConfiguration.Theme に対する変更は、コントローラーのテーマを自動的に切り替えなくなります (既定のダーク構成とライト構成が適切ではなくなったためです)。 この場合、 SystemBackdrop.OnDefaultSystemBackdropConfigurationChanged の新しいテーマと一致するように、マテリアルの外観プロパティを手動で更新する必要があります。

  • IsInputActive: trueSystemBackdrop ターゲットがアクティブ ウィンドウ内にある場合は 。 falseそれ以外の場合は 。

  • IsHighContrast: trueSystemBackdrop ターゲットがハイ コントラスト モードの場合は 。それ以外の場合 falseは 。

適用対象

こちらもご覧ください