Table of Contents

Class Design

Namespace
Avalonia.Controls
Assembly
Avalonia.Controls.dll
public static class Design
Inheritance
Design
Inherited Members

Fields

DataContextProperty

public static readonly AttachedProperty<object> DataContextProperty

Field Value

AttachedProperty<object>

DesignStyleProperty

public static readonly AttachedProperty<IStyle> DesignStyleProperty

Field Value

AttachedProperty<IStyle>

HeightProperty

public static readonly AttachedProperty<double> HeightProperty

Field Value

AttachedProperty<double>

PreviewWithProperty

public static readonly AttachedProperty<Control?> PreviewWithProperty

Field Value

AttachedProperty<Control>

WidthProperty

public static readonly AttachedProperty<double> WidthProperty

Field Value

AttachedProperty<double>

Properties

IsDesignMode

public static bool IsDesignMode { get; }

Property Value

bool

Methods

ApplyDesignModeProperties(Control, Control)

public static void ApplyDesignModeProperties(Control target, Control source)

Parameters

target Control
source Control

GetDataContext(Control)

public static object GetDataContext(Control control)

Parameters

control Control

Returns

object

GetDesignStyle(Control)

public static IStyle GetDesignStyle(Control control)

Parameters

control Control

Returns

IStyle

GetHeight(Control)

public static double GetHeight(Control control)

Parameters

control Control

Returns

double

GetPreviewWith(AvaloniaObject)

public static Control? GetPreviewWith(AvaloniaObject target)

Parameters

target AvaloniaObject

Returns

Control

GetPreviewWith(ResourceDictionary)

public static Control? GetPreviewWith(ResourceDictionary target)

Parameters

target ResourceDictionary

Returns

Control

GetWidth(Control)

public static double GetWidth(Control control)

Parameters

control Control

Returns

double

SetDataContext(Control, object)

public static void SetDataContext(Control control, object value)

Parameters

control Control
value object

SetDesignStyle(Control, IStyle)

public static void SetDesignStyle(Control control, IStyle value)

Parameters

control Control
value IStyle

SetHeight(Control, double)

public static void SetHeight(Control control, double value)

Parameters

control Control
value double

SetPreviewWith(AvaloniaObject, Control?)

public static void SetPreviewWith(AvaloniaObject target, Control? control)

Parameters

target AvaloniaObject
control Control

SetPreviewWith(ResourceDictionary, Control?)

public static void SetPreviewWith(ResourceDictionary target, Control? control)

Parameters

target ResourceDictionary
control Control

SetWidth(Control, double)

public static void SetWidth(Control control, double value)

Parameters

control Control
value double