Language
Edit

Case Class

Definition

Case is the value container for the SwitchPresenter.

[Microsoft.UI.Xaml.Data.Bindable]
[Microsoft.UI.Xaml.Markup.ContentProperty(Name="Content")]
public class Case : Microsoft.UI.Xaml.DependencyObject, Microsoft.UI.Xaml.IDependencyObjectStoreProvider, Uno.UI.DataBinding.IWeakReferenceProvider
[<Microsoft.UI.Xaml.Data.Bindable>]
[<Microsoft.UI.Xaml.Markup.ContentProperty(Name="Content")>]
type Case = class
    interface DependencyObject
    interface IDependencyObjectStoreProvider
    interface IWeakReferenceProvider
Public Class Case
Implements DependencyObject, IDependencyObjectStoreProvider, IWeakReferenceProvider
Inheritance
Case
Attributes
Microsoft.UI.Xaml.Data.BindableAttribute Microsoft.UI.Xaml.Markup.ContentPropertyAttribute
Implements
Microsoft.UI.Xaml.DependencyObject Microsoft.UI.Xaml.IDependencyObjectStoreProvider Uno.UI.DataBinding.IWeakReferenceProvider

Constructors

Name Description
Case()

Initializes a new instance of the Case class.

Fields

Name Description
ContentProperty

Identifies the Content property.

IsDefaultProperty

Identifies the IsDefault property.

ValueProperty

Identifies the Value property.

Properties

Name Description
Content

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

DataContext
DataContextProperty
Dispatcher
DispatcherQueue
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.

IsStoreInitialized
TemplatedParent
TemplatedParentProperty
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.

Methods

Name Description
ClearBindings()

Obsolete method kept for binary compatibility

ClearValue(DependencyProperty)
GetAnimationBaseValue(DependencyProperty)
GetBindingExpression(DependencyProperty)
GetValue(DependencyProperty)
OnDataContextChanged(DependencyPropertyChangedEventArgs)
OnTemplatedParentChanged(DependencyPropertyChangedEventArgs)
ReadLocalValue(DependencyProperty)
RegisterPropertyChangedCallback(DependencyProperty, DependencyPropertyChangedCallback)
RestoreBindings()

Obsolete method kept for binary compatibility

ResumeBindings()
SetBinding(DependencyProperty, BindingBase)
SetBinding(Object, String, BindingBase)
SetBinding(String, BindingBase)
SetBindingValue(Object, String)
SetValue(DependencyProperty, Object)
SuspendBindings()
ToString()
UnregisterPropertyChangedCallback(DependencyProperty, Int64)

Events

Name Description
DataContextChanged

Explicit Interface Implementations

Name Description
IDependencyObjectStoreProvider.Store
IWeakReferenceProvider.WeakReference

Applies to