MicaController Klasse
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Verwaltet Die Rendering- und Systemrichtlinie für das Ica-Material.
public ref class MicaController sealed : ISystemBackdropController, IClosable
public ref class MicaController sealed : ISystemBackdropControllerWithTargets, IClosable
public ref class MicaController sealed : ISystemBackdropControllerWithTargets, IClosableNotifier, IClosable
/// [Windows.Foundation.Metadata.Activatable(65536, "Microsoft.Foundation.WindowsAppSDKContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.WindowsAppSDKContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class MicaController final : ISystemBackdropController, IClosable
/// [Windows.Foundation.Metadata.Activatable(65536, "Microsoft.Foundation.WindowsAppSDKContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.WindowsAppSDKContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class MicaController final : ISystemBackdropControllerWithTargets, IClosable
/// [Windows.Foundation.Metadata.Activatable(65536, "Microsoft.Foundation.WindowsAppSDKContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.WindowsAppSDKContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class MicaController final : ISystemBackdropControllerWithTargets, IClosableNotifier, IClosable
[Windows.Foundation.Metadata.Activatable(65536, "Microsoft.Foundation.WindowsAppSDKContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.WindowsAppSDKContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class MicaController : ISystemBackdropController, System.IDisposable
[Windows.Foundation.Metadata.Activatable(65536, "Microsoft.Foundation.WindowsAppSDKContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.WindowsAppSDKContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class MicaController : ISystemBackdropControllerWithTargets, System.IDisposable
[Windows.Foundation.Metadata.Activatable(65536, "Microsoft.Foundation.WindowsAppSDKContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.WindowsAppSDKContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class MicaController : ISystemBackdropControllerWithTargets, IClosableNotifier, System.IDisposable
function MicaController()
Public NotInheritable Class MicaController
Implements IDisposable, ISystemBackdropController
Public NotInheritable Class MicaController
Implements IDisposable, ISystemBackdropControllerWithTargets
Public NotInheritable Class MicaController
Implements IClosableNotifier, IDisposable, ISystemBackdropControllerWithTargets
- Vererbung
- Attribute
- Implementiert
Hinweise
Diese Klasse kapselt sowohl das Rendern des Systemkulissematerials als auch die Handhabung von Systemrichtlinien für das Glimmermaterial .
Konstruktoren
| Name | Beschreibung |
|---|---|
| MicaController() |
Initialisiert eine neue Instanz der |
Eigenschaften
| Name | Beschreibung |
|---|---|
| FallbackColor |
Ruft die zu verwendende Volltonfarbe ab, wenn Systembedingungen das Rendern des Glimmermaterials verhindern, oder legt diese fest. |
| IsClosed |
Ruft einen Wert ab, der angibt, ob das Objekt geschlossen (disposed) ist. |
| Kind |
Dient zum Abrufen oder Festlegen eines Werts, der angibt, welche Variation von Mica-Material verwendet wird. |
| LuminosityOpacity |
Ruft den Grad der Deckkraft der Helligkeit der Farbe ab oder legt sie fest. |
| State |
Ruft den aktuellen Zustand des System-Hintergrundcontrollers ab. |
| TintColor |
Ruft den Farbton für das Glimmermaterial ab oder legt den Farbton fest. |
| TintOpacity |
Dient zum Abrufen oder Festlegen des Grads der Deckkraft des Farbtons. |
Methoden
| Name | Beschreibung |
|---|---|
| AddSystemBackdropTarget(ICompositionSupportsSystemBackdrop) |
Fügt das angegebene Systemhintergrundziel hinzu. |
| Close() |
Führt anwendungsdefinierte Aufgaben aus, die mit dem Freigeben, Freigeben oder Zurücksetzen nicht verwalteter Ressourcen verknüpft sind. |
| Dispose() |
Führt anwendungsdefinierte Aufgaben aus, die mit dem Freigeben, Freigeben oder Zurücksetzen nicht verwalteter Ressourcen verknüpft sind. |
| IsSupported() |
Bestimmt, ob das Glimmermaterial auf dem aktuellen Betriebssystem unterstützt wird. |
| RemoveAllSystemBackdropTargets() |
Entfernt alle Systemhintergrundziele. |
| RemoveSystemBackdropTarget(ICompositionSupportsSystemBackdrop) |
Entfernt das angegebene Systemhintergrundziel. |
| ResetProperties() |
Setzt alle benutzerdefinierten Eigenschaften auf ihre Systemstandardwerte zurück und wird auf die automatische Behandlung von hellem/dunklem Design zurückgesetzt. |
| SetSystemBackdropConfiguration(SystemBackdropConfiguration) |
Legt die appspezifischen Richtlinien fest, die auf den Systemkulissecontroller angewendet werden sollen. |
| SetTarget(CoreWindow, CompositionTarget) |
Verbindet diesen System-Hintergrundcontroller mit dem angegebenen |
| SetTarget(WindowId, CompositionTarget) |
Verbindet diesen System-Hintergrundcontroller mit einer |
Ereignisse
| Name | Beschreibung |
|---|---|
| Closed |
Tritt auf, wenn das Objekt geschlossen (disposed) nach dem FrameworkClosed-Ereignis geschlossen wurde, um die App darüber zu benachrichtigen, dass das Objekt geschlossen ist. |
| FrameworkClosed |
Tritt auf, wenn das Objekt geschlossen (disposed) vor dem Closed-Ereignis geschlossen wurde, um das Framework (z. B. XAML) zu benachrichtigen, dass das Objekt geschlossen ist. |
| StateChanged |
Tritt auf, wenn sich der Zustand des Systemhintergrunds geändert hat. |