A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
I fixed the problem. for people who want a shortcut for reating bindable properties or custom controls, here you go
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>BindableProperty</Title>
<Shortcut>bp</Shortcut>
<Description>This will create a BindableProperty for a custom control in .NET MAUI</Description>
<Author>Eduardo Gomez</Author>
</Header>
<Snippet>
<Code Language="CSharp">
<![CDATA[
public static readonly BindableProperty $PropertyName$Property = BindableProperty.Create(
nameof($PropertyName$), typeof($TypeOfProperty$), typeof($CustomControlName$));
public $TypeOfProperty$ $PropertyName$
{
get => ($TypeOfProperty$)GetValue($PropertyName$Property);
set => SetValue($PropertyName$Property, value);
}
]]>
</Code>
<Declarations>
<Literal>
<ID>PropertyName</ID>
<Default>MyProperty</Default>
<ToolTip>The name of the property</ToolTip>
</Literal>
<Literal>
<ID>TypeOfProperty</ID>
<Default>string</Default>
<ToolTip>The type of the property</ToolTip>
</Literal>
<Literal>
<ID>CustomControlName</ID>
<Default>CustomControl</Default>
<ToolTip>The name of the custom control</ToolTip>
</Literal>
<Literal>
<ID>DefaultValue</ID>
<Default>"Default value"</Default>
<ToolTip>The predefined value of the property</ToolTip>
</Literal>
</Declarations>
</Snippet>
</CodeSnippet>
</CodeSnippets>