VisualAttribute(String, Type) Constructor

Definition

Initializes a new instance of the VisualAttribute class with the specified key and visual type.

public:
 VisualAttribute(System::String ^ key, Type ^ visual);
public VisualAttribute(string key, Type visual);
new Microsoft.Maui.Controls.VisualAttribute : string * Type -> Microsoft.Maui.Controls.VisualAttribute
Public Sub New (key As String, visual As Type)

Parameters

key
String

The key name used to reference the visual in XAML.

visual
Type

The IVisual type to associate with the key.

Applies to