maui-bindableproperty-generator
maui-bindableproperty-generator copied to clipboard
Source generator that automatically transforms fields into BindableProperties that can be used in MAUI
Hi, Could you please add support for corce value callbacks? https://learn.microsoft.com/en-us/dotnet/maui/fundamentals/bindable-properties?view=net-maui-8.0#coerce-value-callbacks Thanks
I see `nameof` is required in different places, like with `DefaultBindingMode = nameof(BindingMode.TwoWay)`. Would it be possible to use the enum itself instead of the string name? I'd say that...
The current implementation of the generation of the `AutoBindableAttribute` makes it public. If this attribute is contained in a different assembly/package it causes conflicts because there are two AutoBindableAttribute classes...
Currently if your control has an autogenerated bindable property, you will get IDE warnings for an unused field: ```csharp [AutoBindable] private readonly ICommand? completedCommand; ``` I have noted the following...
In some cases, it might be useful to have some custom attributes over the generated properties. ``` [AutoBindable] [property: JsonRequired] [property: JsonPropertyName("name")] private readonly string? _username; ``` This would generate...
Would it be possible to make `propertyChanged` / `propertyChanging` default value `null`, and generate the code only when `OnXXXChanged` / `OnXXXChanging` method is implemented? It's purely an optimization, to avoid...
I am not sure what I am doing wrong here - I am trying to bind the text value of a label as part of my custom control. My control...
This : ``` [AutoBindable("Header", typeof(string))] // c#10 [AutoBindable("Header")] // with C#11 generic attributes feature public partial class CustomEntry : ContentView { } ``` Instead of this: ``` public partial class...
I find myself quite often having to use the `OnChanged` property of the `AutoBindable` attribute to call `OnPropertyChanged` on a property with a getter. Here is an example: ```cs [AutoBindable(OnChanged...
Overriding Property option will be nicer. ``` [AutoBindable(OnChanged = nameof(OnBackgroundColorChanged))] private Color backgroundColor; ``` to support, ``` [AutoBindable(OnChanged = nameof(OnBackgroundColorChanged))] private new Color backgroundColor; ``` It will helps me to...