OnFormFactorExtension<TReturn> 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)
- C#
- VB
- F#
public sealed class OnFormFactorExtension<TReturn> : OnFormFactorExtensionBase<TReturn, On<TReturn>>
Public NotInheritable Class OnFormFactorExtension(Of TReturn)
Inherits OnFormFactorExtensionBase(Of TReturn, On(Of TReturn))
[<SealedAttribute>]
type OnFormFactorExtension<'TReturn> =
class
inherit OnFormFactorExtensionBase<'TReturn, On<'TReturn>>
end
Inheritance | Object → OnFormFactorExtensionBase(TReturn, On(TReturn)) → OnFormFactorExtension(TReturn) |
Type Parameters
Constructors
OnFormFactorExtension(TReturn)() | Initializes a new instance of the OnFormFactorExtension(TReturn) class |
OnFormFactorExtension(TReturn)(TReturn) | Initializes a new instance of the OnFormFactorExtension(TReturn) class |
Properties
Default | Gets or sets the value applied by default. If not set, default(TReturn) is assigned to the value. (Inherited from OnFormFactorExtensionBase(TReturn, TOn)) |
Desktop | Gets or sets the value applied on desktop systems. (Inherited from OnFormFactorExtensionBase(TReturn, TOn)) |
Mobile | Gets or sets the value applied on mobile systems. (Inherited from OnFormFactorExtensionBase(TReturn, TOn)) |
TV | Gets 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) |