title: MAUI .Net Bindings stopped Working after the last Preview Update. Where is my Mistake?
body: <p>To be honest I am kinda lost.
  I am currently developping a medium sized app with .Net MAUI, I was almost done but after the update to Visual Studio 17.3.0 Preview 2.0 my Bindings stopped working.
  I am using MVVM with the Microsoft.Toolkit.MVVM, CommunityToolkit.MAUI and DI.</p>
  <p>As I said the Bindings worked before how they are here.
  All Guides I could find did basically the same thing as me.
  I have no Idea why it wouldn't work how I have it set up.</p>
  <p>The function in the Command gets executed and the value changes when I Debug it and the PropertyChanged Event gets called... but the Binding is not working the Label stays Hidden. It also is Hidden all the time when I initialize &quot;IsWorking&quot; as &quot;True&quot;.</p>
  <p>If anyone has Ideas or notices a Mistake please help me out.</p>
  <p>My basic Setup looks like this:</p>
  <p>&quot;MauiProgram.cs&quot; Where i set up the DI.</p>
  <pre><code>    public static MauiApp CreateMauiApp()
      {
          var builder = MauiApp.CreateBuilder();
          builder.UseMauiApp&lt;App&gt;().UseMauiCommunityToolkit();
          builder
              .UseMauiApp&lt;App&gt;()
              .ConfigureFonts(fonts =&gt;
              {
                  fonts.AddFont(&quot;OpenSans-Regular.ttf&quot;, &quot;OpenSansRegular&quot;);
                  fonts.AddFont(&quot;OpenSans-Semibold.ttf&quot;, &quot;OpenSansSemibold&quot;);
              });
  
          // DI
          builder.Services.AddSingleton&lt;MainPageViewModel&gt;();
          builder.Services.AddSingleton&lt;MainPage&gt;();
  
          return builder.Build();
      }
  </code></pre>
  <p>&quot;MainPage.xaml.cs Code Behind&quot; The BindingContext gets Set.</p>
  <pre><code>public partial class MainPage : ContentPage
  {
      // Gets ViewModel with DI
      public MainPage(MainPageViewModel vm)
      {
          InitializeComponent();
          // Set ViewModel as BindingContext
          BindingContext = vm;
      }
  }
  </code></pre>
  <p>&quot;MainPage.xaml&quot; The Basic new Project Page with a Command and a Binding</p>
  <pre><code>&lt;ContentPage xmlns=&quot;http://schemas.microsoft.com/dotnet/2021/maui&quot;
               xmlns:x=&quot;http://schemas.microsoft.com/winfx/2009/xaml&quot;
               xmlns:toolkit=&quot;http://schemas.microsoft.com/dotnet/2022/maui/toolkit&quot;
               x:Class=&quot;MauiApp2.MainPage&quot;&gt;
               
      &lt;ScrollView&gt;
          &lt;VerticalStackLayout 
              Spacing=&quot;25&quot; 
              Padding=&quot;30,0&quot; 
              VerticalOptions=&quot;Center&quot;&gt;
  
              &lt;Image
                  Source=&quot;dotnet_bot.png&quot;
                  SemanticProperties.Description=&quot;Cute dot net bot waving hi to you!&quot;
                  HeightRequest=&quot;200&quot;
                  HorizontalOptions=&quot;Center&quot; /&gt;
                  
              &lt;Label 
                  Text=&quot;Hello, World!&quot;
                  SemanticProperties.HeadingLevel=&quot;Level1&quot;
                  FontSize=&quot;32&quot;
                  HorizontalOptions=&quot;Center&quot;
                  IsVisible=&quot;{Binding IsWorking}&quot;/&gt;
              
              &lt;Label 
                  Text=&quot;Welcome to .NET Multi-platform App UI&quot;
                  SemanticProperties.HeadingLevel=&quot;Level2&quot;
                  SemanticProperties.Description=&quot;Welcome to dot net Multi platform App U I&quot;
                  FontSize=&quot;18&quot;
                  HorizontalOptions=&quot;Center&quot; /&gt;
  
              &lt;Button 
                  x:Name=&quot;CounterBtn&quot;
                  Text=&quot;Click me&quot;
                  SemanticProperties.Hint=&quot;Counts the number of times you click&quot;
                  Command=&quot;{Binding ClickedCommand}&quot;
                  HorizontalOptions=&quot;Center&quot; /&gt;
  
          &lt;/VerticalStackLayout&gt;
      &lt;/ScrollView&gt;
   
  &lt;/ContentPage&gt;
  </code></pre>
  <p>&quot;MainPageViewModel.cs&quot; Viewmodel with Property thas bound and the Command</p>
  <pre><code>using Microsoft.Toolkit.Mvvm.Input;
  using Microsoft.Toolkit.Mvvm.ComponentModel;
  
  namespace MauiApp2
  {
      public class MainPageViewModel : ObservableObject
      {
          public IRelayCommand ClickedCommand { get; set; }
  
  
          private bool _isWorking;
  
          public bool IsWorking
          {
              get { return _isWorking; }
              set { SetProperty(ref _isWorking, value); }
          }
  
          public MainPageViewModel()
          {
              ClickedCommand = new RelayCommand(Clicked);
              IsWorking = false;
          }
  
          private void Clicked() 
          {
              if (IsWorking)
                  IsWorking = false;
              else
                  IsWorking = true;
          }
  
      }
  }
  </code></pre>