ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก

FreshMvvm Basic Navigation Concepts in Xamarin.Forms

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ส.ค. 2024
  • After the introduction to FreshMvvm for Xamarin.Forms (link below), now it's time to learn about how to do ViewModel to ViewModel navigation. In this video we will learn why it's important to navigate to ViewModels instead of pages and more importantly: how to actually do just that!
    💝 Join this channel to get access to perks:
    th-cam.com/channels/ral.html...
    🛑 Don't forget to subscribe to my channel for more amazing content: th-cam.com/users/GeraldVerslui...
    🐦 Follow me on Twitter: / jfversluis
    🤝 Join the Discord server: / discord
    🔗 Links
    Sample code repo: github.com/jfversluis/XFFresh...
    FreshMvvm Intro Video: • Xamarin.Forms MVVM Mad...
    FreshMvvm Repo: github.com/rid00z/FreshMvvm
    ⏱ Timestamps
    00:00 - Intro
    00:12 - Inspect End Result
    01:08 - Sample App Outline
    01:23 - Install FreshMvvm NuGet
    02:22 - Setup Project Structure
    04:00 - Different Navigation Containers
    07:10 - ViewModel to ViewModel Navigation
    12:40 - Run Sample App
    13:14 - A Bit of Styling
    15:56 - Navigate with Modal Pages
    20:21 - Outro
    🎥 Video edited with Camtasia (ref): techsmith.z6rjha.net/AJoeD
    🙋‍♂️ Also find my...
    Twitter: / jfversluis
    Blog: blog.verslu.is
    Twitch: / jfversluis
    All the rest: jfversluis.dev
    #XamarinForms #FreshMvvm #MVVM #MVVMFramework #Navigation #PageModel #ViewModel #Page #View

ความคิดเห็น • 48

  • @hanh.trinh.yeu.thuong
    @hanh.trinh.yeu.thuong 3 ปีที่แล้ว

    Gerald, you are a very humor teacher! Thank you very much for good things you did for other people like me. Yes! I am already subscribed and turn on all notifications from your channel! :P

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว +1

      Yaaay thanks you so much for your support!

  • @AldairOH
    @AldairOH 3 ปีที่แล้ว

    Thanks for all the content !

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว

      ☺️ thank you for watching!

  • @jfversluis
    @jfversluis  3 ปีที่แล้ว +3

    More navigation containers like FlyoutPage and TabbedPage can be found in the documentation: github.com/rid00z/FreshMvvm#navigation

  • @saroshwadia
    @saroshwadia 3 ปีที่แล้ว

    Great video :-) Please create one using FreshMvvm showing how to pass and receive data between View/Page Models would be the icing on the cake. Thx

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว +1

      Guess what I have planned! That one is coming soon 😄

  • @josedonizeteoliveirajunior1744
    @josedonizeteoliveirajunior1744 3 ปีที่แล้ว

    I m enjoyong learning about the subject

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว +1

      Great! More to come :)

  • @anandshindey
    @anandshindey 3 ปีที่แล้ว

    Great content. Enjoying it. Thanks.. One question is freshmvvm better than what comes out of box with xamarin?

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว +1

      It's not necessarily better, its built on top of it so it's an addition to make your life easier and make you write less code :)

  • @checox1909
    @checox1909 3 ปีที่แล้ว +1

    have you used Prism? if yes, could you do a video with the difference between Prism and FreshMVVM

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว +1

      I can't say I have! I know Dan Siegel (a maintainer) is thinking about being more active on TH-cam as well, or check out Brian Lagunas' channel, I think he has content about it as well :)

  • @mohammedalsabahii2
    @mohammedalsabahii2 3 ปีที่แล้ว

    i have a question fresh MVVM it has navigation effects like slide from top to bottom ?

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว

      I don't think it's possible to influence the animation, at least not without implementing some custom code for it

  • @liaryde
    @liaryde 2 ปีที่แล้ว

    Brilliant video, how does FreshMvvm fit in with the Xamarin Shell paradigm? Should you just use FreshMvvm and ignore Shell?

    • @jfversluis
      @jfversluis  2 ปีที่แล้ว

      Thanks Alistair! Shell was kind of designed to not need an MVVM framework. I think Prism just has support or they were working on it, but not sure what it does exactly. I would either say: choose Shell or choose FreshMvvm (or any other MVVM framework) but not both :)

  • @abduljameel1201
    @abduljameel1201 3 ปีที่แล้ว

    The Recent Xamarin Forms Project template create a shell based layout. Does FreshMVVM works fine with xamarin forms shell? including navigation and pagemodel (databinding etc)?

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว

      I don't think it supports Shell at this moment, but not entirely sure

  • @musicer89
    @musicer89 2 ปีที่แล้ว

    Great Video ;) I struggling with navigation in FreshMvvm. When I go from MainPage to 2nd page and from 2nd page to 3rd, I'd like to go back to 2nd page and when job is done then go back to MainPage. The problem is when I go back from 3rd to 2nd and from 2nd to MainPage. Then some strange magic happens. When I'm going back from 2nd to MainPage then 3rd page arrives. To go back I'm using "await CoreMethods.PopPageModel(null)" in my Commands. Do you know what I've missing?

  • @austinmrakpor4863
    @austinmrakpor4863 2 ปีที่แล้ว

    Thanks for the videos, am using visual studio 2022, I followed your step here but navigation doesn't work no exception, am not sure how to fix it.

    • @jfversluis
      @jfversluis  2 ปีที่แล้ว +1

      Unfortunately, I'm not a mind reader so without any info I don't know either ;)

    • @austinmrakpor4863
      @austinmrakpor4863 2 ปีที่แล้ว

      @@jfversluis I've fixed it thanks.

    • @jfversluis
      @jfversluis  2 ปีที่แล้ว

      Glad you figured it out!

  • @MichaelOstermann
    @MichaelOstermann 3 ปีที่แล้ว +1

    Have been using freshmvvm for over 2 years but unfortunately there is no longer support as the owner does not update anything anymore😭

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว +1

      Do I have good news for you! There is a new version released last week and there will be support for .NET MAUI :)

  • @YoUserExp
    @YoUserExp 3 ปีที่แล้ว

    Could you go over unit testing implementations with Fresh MVVM?

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว

      Sure can, but those shouldn’t be specific to any framework :) the only thing MVVM does is make sure your logic isn’t in the view and thus making it testable. Else you would have to make UI tests to test the logic behind your events for instance. Does that make sense?

    • @YoUserExp
      @YoUserExp 3 ปีที่แล้ว

      @@jfversluis makes sense. Oh you had an earlier video on the basics of dependency injection. While you are doing this series it might be nice to look at Autofac.

    • @ismailzumrawi
      @ismailzumrawi 2 ปีที่แล้ว

      what about namespace "Xamarin. Forms" we can't using in uint test

  • @joukepostma4706
    @joukepostma4706 3 ปีที่แล้ว

    Goedemorgen Gerald.
    Very much interested in your post. It looks like AppShell is not supported by FreshMvvm. What I am currently most interested in is getting some icons in my flyout menu. Solutions posted from others are old and obsolete. An example from you would be great!

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว

      He hallo Jouke!
      Thanks! I think Prism might be the only one supporting Shell at the moment. Also because Shell is kind of designed to not need a separate MVVM framework :)
      Do you mean the example in the Docs doesn't work anymore? docs.microsoft.com/xamarin/xamarin-forms/app-fundamentals/shell/flyout

    • @joukepostma4706
      @joukepostma4706 3 ปีที่แล้ว

      @@jfversluis Correct unless I am doing something wrong. Not really a problem but I want my icons back :-)
      The example I was referring to where icons are supported in the menu using FreshMvvm:
      lpains.net/articles/2018/xamarin-forms-master-detail-lazy-loaded/
      Thanks if you can give me a hint or 2.

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว

      @@joukepostma4706 Not sure if I understand. You are implementing this together with FreshMvvm and Shell then? Because if I just do a File > New Shell app with a FlyOut menu the icons are showing fine :)

    • @joukepostma4706
      @joukepostma4706 3 ปีที่แล้ว

      @@jfversluis Yes, Shell together with Freshmvvm. Strange it is working on your side.

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว

      @@joukepostma4706 I didn't try it with FreshMvvm in there. If you can provide me with a reproduction sample on GitHub I might be able to take a look :)

  • @AliShahin
    @AliShahin 3 ปีที่แล้ว

    my friend i want you talk about prism also i want to make a video with you if you don't mind about xamarin

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว +1

      Absolutely! Send me an email at gerald.versluis@microsoft.com and we'll figure something out! Thanks!

    • @AliShahin
      @AliShahin 3 ปีที่แล้ว

      @@jfversluis i sent you email my friend

  • @faborgangnam5511
    @faborgangnam5511 2 ปีที่แล้ว

    Is it possible to use this with FreshMvvm?

    • @jfversluis
      @jfversluis  2 ปีที่แล้ว +1

      This video is about FreshMvvm 😄

  • @robertojrcantos1711
    @robertojrcantos1711 3 ปีที่แล้ว

    Gerald is it ok for you to make a Vlog regarding pinbox? Thank you for your kindness.

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว

      I don't know what pinbox is :)

    • @robertojrcantos1711
      @robertojrcantos1711 3 ปีที่แล้ว

      @@jfversluis mobile.twitter.com/jsuarezruiz/status/1362829125220765698
      I saw this long time ago in XCT GitHub.

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว

      Ah right. I don’t think that was ever added

    • @robertojrcantos1711
      @robertojrcantos1711 3 ปีที่แล้ว

      @@jfversluis ok, May you include it as my wish list for XCT because it is so cool to be used for OTP. Thank you