.NET MAUI & Storage, Part 2 - Store settings

Поделиться
HTML-код
  • Опубликовано: 27 окт 2024

Комментарии • 10

  • @KenzoArts
    @KenzoArts Год назад +4

    I don't see where you call your LoadSettings method ?

    • @ErikBartlow
      @ErikBartlow 2 месяца назад

      Several missing connections. If you follow this step-by-step you'll notice that the class on the xaml page is not the same as the class he shows. I really appreciate people taking the time to put tutorials like this out, but if they don't completely work then they just confuse.

  • @integrityintellectualprope5185
    @integrityintellectualprope5185 Год назад +1

    Look at time 1:28 in the video. The 'S' in "SendNotifications" is underlined. Also, the 'S' in "Save". The error reported on my machine is No data context found for Binding. Which seems right. Because when I click the 'Save' button, the Save Method does not get called. I don't know why yours works and mine doesn't I checked everything 10 times, I have everything precisely as your tutorial. Also, I believe there is a required step from Part 1, Secured Storage. When you make entries to the MauiProgram.cs file. I believe the builder must be set for Part 2. But I skipped secure storage Part 1, and missed that part. Part 2 would be better if you describe that necessary step.

    • @M3lodicDeathmetal
      @M3lodicDeathmetal Год назад

      Did you set the ViewModel? You need to set BindingContext of the View to your ViewModel. I think if you also add the DataType, intellisense can resolve the binding errors at compiletime. Otherwise, they will be there, because here binding only happens at runtime

  • @BanuRega-z8i
    @BanuRega-z8i 11 месяцев назад

    Hi I noticed that maui secure storage returns null when accessed multiple times or locked the phone or in app background. Do you ever faced it?

  • @dusrdev
    @dusrdev 2 года назад

    I have tried using the same wrapper, well I named it differently I think but the logic is the same, it caused my app to crash immediately on launch on android, and even when debugging, it doesn't show the root, it just breaks out and says "emulator return code xx..), reverting to use Preferences.Default directly fixed this issue...
    Any idea why?

  • @ВалентинГандрибіда2пі-23б

    Is that project available on GitHub?

    • @DanielHindrikes
      @DanielHindrikes  Год назад +2

      This one is not. For newer videos I am trying to push code to GitHub

  • @cyrildouglas9262
    @cyrildouglas9262 2 года назад

    Great tutorial as always, Thanks.