VisualAttribute(String, Type) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.