Edit

Share via


Case Class

Definition

Case is the value container for the SwitchPresenter.

[Microsoft.UI.Xaml.Markup.ContentProperty(Name="Content")]
public class Case : Microsoft.UI.Xaml.DependencyObject
[<Microsoft.UI.Xaml.Markup.ContentProperty(Name="Content")>]
type Case = class
    inherit DependencyObject
Public Class Case
Inherits DependencyObject
Inheritance
Microsoft.UI.Xaml.DependencyObject
Case
Attributes
Microsoft.UI.Xaml.Markup.ContentPropertyAttribute

Constructors

Case()

Initializes a new instance of the Case class.

Fields

ContentProperty

Identifies the Content property.

IsDefaultProperty

Identifies the IsDefault property.

ValueProperty

Identifies the Value property.

Properties

Content

Gets or sets the Content to display when this case is active.

IsDefault

Gets or sets a value indicating whether this is the default case to display when no values match the specified value in the SwitchPresenter. There should only be a single default case provided. Do not set the Value property when setting IsDefault to true. Default is false.

Value

Gets or sets the Value that this case represents. If it matches the Value this case's Content will be displayed in the presenter.

Applies to