diff --git a/src/Maui.BindableProperty.Generator.Demo/CustomControls/HeaderControl.xaml b/src/Maui.BindableProperty.Generator.Demo/CustomControls/HeaderControl.xaml
index 5b4705c..01c3291 100644
--- a/src/Maui.BindableProperty.Generator.Demo/CustomControls/HeaderControl.xaml
+++ b/src/Maui.BindableProperty.Generator.Demo/CustomControls/HeaderControl.xaml
@@ -5,19 +5,11 @@
x:Name="this">
- #f6f6f6
-
-
-
diff --git a/src/Maui.BindableProperty.Generator.Demo/CustomControls/HeaderControl.xaml.cs b/src/Maui.BindableProperty.Generator.Demo/CustomControls/HeaderControl.xaml.cs
index cd3ee27..a0032be 100644
--- a/src/Maui.BindableProperty.Generator.Demo/CustomControls/HeaderControl.xaml.cs
+++ b/src/Maui.BindableProperty.Generator.Demo/CustomControls/HeaderControl.xaml.cs
@@ -4,20 +4,24 @@ namespace Maui.BindableProperty.Generator.Demo.CustomControls
{
public partial class HeaderControl : ContentView
{
+ #pragma warning disable CS0169
+
[AutoBindable(OnChanged = nameof(UpdateDisplayName))]
- private string _firstName;
+ private readonly string _firstName;
[AutoBindable(PropertyName = "LastName", OnChanged = nameof(UpdateDisplayName))]
- private string _l;
+ private readonly string _l;
[AutoBindable(DefaultValue = "DateTime.Now", OnChanged = nameof(OnDateTimeChanged))]
- private DateTime _birthDate;
+ private readonly DateTime _birthDate;
[AutoBindable(DefaultValue = "USA")]
- private string _country;
+ private readonly string _country;
[AutoBindable]
- private string _displayName;
+ private readonly string _displayName;
+
+ #pragma warning restore CS0169
public HeaderControl()
{
diff --git a/src/Maui.BindableProperty.Generator.Demo/MainPage.xaml b/src/Maui.BindableProperty.Generator.Demo/MainPage.xaml
index 73f4d2e..8b9dfce 100644
--- a/src/Maui.BindableProperty.Generator.Demo/MainPage.xaml
+++ b/src/Maui.BindableProperty.Generator.Demo/MainPage.xaml
@@ -5,14 +5,6 @@
xmlns:controls="clr-namespace:Maui.BindableProperty.Generator.Demo.CustomControls"
x:Name="this">
-
- #f6f6f6
-
-
-
-
diff --git a/src/Maui.BindableProperty.Generator.Demo/Resources/Styles.xaml b/src/Maui.BindableProperty.Generator.Demo/Resources/Styles.xaml
index 0eb4369..1db9e77 100644
--- a/src/Maui.BindableProperty.Generator.Demo/Resources/Styles.xaml
+++ b/src/Maui.BindableProperty.Generator.Demo/Resources/Styles.xaml
@@ -100,6 +100,7 @@