Class OnFormFactorExtensionBase<TReturn, TOn>
- Namespace
- Avalonia.Markup.Xaml.MarkupExtensions
- Assembly
- Avalonia.Markup.Xaml.dll
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 abstract class OnFormFactorExtensionBase<TReturn, TOn> : IAddChild<TOn> where TOn : On<TReturn>
Type Parameters
TReturn
TOn
- Inheritance
-
OnFormFactorExtensionBase<TReturn, TOn>
- Implements
-
IAddChild<TOn>
- Derived
- Inherited Members
Constructors
OnFormFactorExtensionBase()
protected OnFormFactorExtensionBase()
Properties
Default
Gets or sets the value applied by default. If not set, default(TReturn) is assigned to the value.
[MarkupExtensionDefaultOption]
public TReturn? Default { get; set; }
Property Value
- TReturn
Desktop
Gets or sets the value applied on desktop systems.
[MarkupExtensionOption(FormFactorType.Desktop)]
public TReturn? Desktop { get; set; }
Property Value
- TReturn
Mobile
Gets or sets the value applied on mobile systems.
[MarkupExtensionOption(FormFactorType.Mobile)]
public TReturn? Mobile { get; set; }
Property Value
- TReturn
TV
Gets or sets the value applied on TV systems.
[MarkupExtensionOption(FormFactorType.TV)]
public TReturn? TV { get; set; }
Property Value
- TReturn
Methods
ProvideValue()
public object ProvideValue()