Skip to main content

OnFormFactorExtension Class

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".

Definition​

Namespace: Avalonia.Markup.Xaml.MarkupExtensions
Assembly: Avalonia.Markup.Xaml (in Avalonia.Markup.Xaml.dll)

public sealed class OnFormFactorExtension : OnFormFactorExtensionBase<Object, On>
View Source
InheritanceObject → OnFormFactorExtensionBase(Object, On) → OnFormFactorExtension

Constructors​

OnFormFactorExtension()Initializes a new instance of the OnFormFactorExtension class
OnFormFactorExtension(Object)Initializes a new instance of the OnFormFactorExtension class

Properties​

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

Methods​

Equals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
GetHashCode()Serves as the default hash function.
(Inherited from Object)
GetType()Gets the Type of the current instance.
(Inherited from Object)
ProvideValue()
(Inherited from OnFormFactorExtensionBase(TReturn, TOn))
ShouldProvideOption(IServiceProvider, FormFactorType) 
ToString()Returns a string that represents the current object.
(Inherited from Object)

See Also​

Reference​

Avalonia.Markup.Xaml.MarkupExtensions Namespace