Skip to main content

OnFormFactorExtensionBase<TReturn, TOn> Class

Definition

Assembly:Avalonia.Markup.Xaml
Package:Avalonia

Provides form factor-specific value for T for the current target device. This extension defines "form-factor" as a "device type" rather than "screen type".

public class OnFormFactorExtensionBase<TReturn, TOn>

Inheritance: object -> OnFormFactorExtensionBase<TReturn, TOn>

Implements: IAddChild<<T>>

Methods

NameDescription
ProvideValueNo summary available.

ProvideValue Method

public object ProvideValue()

Returns

object

Properties

NameDescription
DefaultGets or sets the value applied by default. If not set, default(TReturn) is assigned to the value.
DesktopGets or sets the value applied on desktop systems.
MobileGets or sets the value applied on mobile systems.
TVGets or sets the value applied on TV systems.

Default Property

Gets or sets the value applied by default. If not set, default(TReturn) is assigned to the value.

public TReturn Default { get; set; }

Desktop Property

Gets or sets the value applied on desktop systems.

public TReturn Desktop { get; set; }

Mobile Property

Gets or sets the value applied on mobile systems.

public TReturn Mobile { get; set; }

TV Property

Gets or sets the value applied on TV systems.

public TReturn TV { get; set; }