Effective Alerts with Snackbar & Toast with .NET MAUI

  Рет қаралды 12,688

Gerald Versluis

Gerald Versluis

Күн бұрын

Пікірлер: 73
@jfversluis
@jfversluis 2 жыл бұрын
Hold up! The .NET MAUI Community Toolkit has a lot more amazing things that will you much more productive in building your .NET MAUI apps. I have this curated playlist with Community Toolkit videos, right here, check it out! kzbin.info/www/bejne/pHSxmWx9YrZpbpo
@josedonizeteoliveirajunior1744
@josedonizeteoliveirajunior1744 2 жыл бұрын
really really easy! thanks for teaching!
@jfversluis
@jfversluis 2 жыл бұрын
Glad it was helpful!
@yaKaiZen
@yaKaiZen 2 жыл бұрын
Another great video! Thanks!
@jfversluis
@jfversluis 2 жыл бұрын
Thank you!
@DavidStania
@DavidStania 2 жыл бұрын
Nice!! That helped me a lot and my new app is with that toasts much more fancy than using default alerts.
@jfversluis
@jfversluis 2 жыл бұрын
Awesome, thanks for letting me know David!
@totototo4093
@totototo4093 2 жыл бұрын
Very helpful. Simple and clear explanations !
@jfversluis
@jfversluis 2 жыл бұрын
Glad you liked it
@resler7ooo118
@resler7ooo118 2 жыл бұрын
Thanks for all you tutorial...
@jfversluis
@jfversluis 2 жыл бұрын
Absolutely my pleasure, thank you for watching!
@DeepWorksStudios
@DeepWorksStudios 2 жыл бұрын
Great informativ Content Thanks Gerald
@jfversluis
@jfversluis 2 жыл бұрын
Thank you!
@deaasaleh3613
@deaasaleh3613 2 жыл бұрын
Thank you for this great effort 👍👍👍
@jfversluis
@jfversluis 2 жыл бұрын
Thank you!
@SliemLichtenberg
@SliemLichtenberg 2 жыл бұрын
Great content as always !
@jfversluis
@jfversluis 2 жыл бұрын
Thank you!
@ezecel9
@ezecel9 2 жыл бұрын
Thanks for the video
@jfversluis
@jfversluis 2 жыл бұрын
Thank you for watching!
@cat0363-es3xs
@cat0363-es3xs Жыл бұрын
Thanks for the great explanation. In iOS 13.3.1, the snackbar background color is not colored.
@jfversluis
@jfversluis Жыл бұрын
Thanks! Please open an issue for that on the repo
@cat0363-es3xs
@cat0363-es3xs Жыл бұрын
Hi, @@jfversluis Thank you for your reply. I'll try to report an issue.
@aoruspurple5872
@aoruspurple5872 2 жыл бұрын
Nice video! Would you please make tutorial to replace the indicatorView's Dots for CarouselView's Images. Like a Thumbnails
@dyrdymalka2890
@dyrdymalka2890 4 ай бұрын
Is there any way, to show snackbar on the top of the screen from viewModel in MVVM pattern?
@yousifarshak
@yousifarshak 2 жыл бұрын
Clear explanation Well done 👍
@jfversluis
@jfversluis 2 жыл бұрын
Thanks friend!
@eddyemlj8482
@eddyemlj8482 2 ай бұрын
That is too goooooooooooooooood!
@valentinoromelio5414
@valentinoromelio5414 8 ай бұрын
I am just checking this. How to prevent it starts a new xaml form on windows when I click on the snackbar or the toast?
@jfversluis
@jfversluis 8 ай бұрын
I think you just hopped on the Community Toolkit Discord, ask there or open an issue on the repo if you think we should change that!
@moatasemkremed5395
@moatasemkremed5395 Жыл бұрын
Gerald, How can i target the control in view from ViewMode for anchor? Snackbar.Make("Some instructions", null, "X", TimeSpan, Options , Anchor_Control_Name_From_View?);
@cissemy
@cissemy 2 жыл бұрын
Hi Can I add my icon to snackbar ?
@jfversluis
@jfversluis 2 жыл бұрын
Unfortunately not
@ПетрДюкин-ю5в
@ПетрДюкин-ю5в Жыл бұрын
Thanks for the video! Can you please tell me how I can set my own font in SnackBar?
@jfversluis
@jfversluis Жыл бұрын
You can set it through the VisualOptions
@Mielesplayz
@Mielesplayz 2 жыл бұрын
is it possible to make the "snackbar" bigger? for me it appears behind the back button from android and I have no Idea how to fix that since there is no "fontSize" or "Size" setting
@alialshreef2874
@alialshreef2874 8 ай бұрын
Thanks Alot 🤗🤗
@stargazerNC
@stargazerNC 2 жыл бұрын
Great stuff, thanks! I wonder how would you go about on using this in an MVVM scenario?...
@jfversluis
@jfversluis 2 жыл бұрын
It’s a static class that you can use so you can simply call is from your ViewModels just as well
@stargazerNC
@stargazerNC 2 жыл бұрын
@@jfversluis thanks. Was thinking along those lines. 😊
@Zamphie
@Zamphie 2 жыл бұрын
You can do that, but you probably shouldn't as it's UI. UI code doesn't belong in a ViewModel, and it will make your ViewModel much harder to test.
@jamalfazeli9127
@jamalfazeli9127 2 жыл бұрын
How can we use TouchEffects, Animations and Long press in .Net MAUI?
@vknigam1988
@vknigam1988 6 ай бұрын
using Anchor is crashing in ios, any help on this
@jfversluis
@jfversluis 6 ай бұрын
Make sure it’s reported on the repository!
@VicEstampida
@VicEstampida 2 жыл бұрын
Super!
@jfversluis
@jfversluis 2 жыл бұрын
Thank you very much!
@RichardMilesMorris
@RichardMilesMorris Жыл бұрын
Just did this targetting Windows (I'm using Win 10) and noticed that when you click the "YES!" button, along with popping up the message window, it also creates a new instance of the app: if you do it again it will keep generating a new instance of the app. Thought that was pretty odd...
@adrianllamido759
@adrianllamido759 Жыл бұрын
Hi Gerald, every time I press either snackbar / toast in windows, it creates a new instance of the app.. even if I specify no actions at all. How do I prevent this?
@jfversluis
@jfversluis Жыл бұрын
Check if there is an issue for it on the Toolkit repo, if not, please open one so we can have a look. It might be that this is Windows behavior we can't really control though, but might be worth having a look.
@DanielAncines
@DanielAncines 2 жыл бұрын
Thans for the tutorial, do you know how to change de title of the toast on Windows?
@jfversluis
@jfversluis 2 жыл бұрын
I don’t think you can? Not through this at least. Is it possible in a Windows app normally?
@DanielAncines
@DanielAncines 2 жыл бұрын
@@jfversluis I think it is, but since the toat’s title is the project name, this isn’t a best choice because the name isn’t user friendly.
@jfversluis
@jfversluis 2 жыл бұрын
@@DanielAncines It's probably the app name which by default is the project name, but you can change that
@DanielAncines
@DanielAncines 2 жыл бұрын
@@jfversluis unfortunately we can’t, I’ve been trying and doesn’t work, whatever you change on project, the title still the same.
@jfversluis
@jfversluis 2 жыл бұрын
@@DanielAncines Change this value: github.com/jfversluis/MauiToolkitSnackbarToastSample/blob/main/MauiToolkitSnackbarToastSample/MauiToolkitSnackbarToastSample.csproj#L15 Uninstall the app from your Windows, rebuild the project and the name is changed.
@ezecel9
@ezecel9 2 жыл бұрын
Do you know if there is some difference between using webview with blazor and xaml? I mean performance, UX, delays, etc. Which do you recomend? Thanks
@jfversluis
@jfversluis 2 жыл бұрын
Performance should be very similar, delays... Shouldn't be happening unless you write blocking code, UX is dependant on what you implement, you can create great (or very bad) UX with both. Both can do the same thing but in a very different way. I can't really recommend because it's a bit of a personal choice. Do you like HTML/CSS more? Or do you have requirements to work with that? Go with Blazor! Are you more familiar with XAML and/or want that native look-and-feel? Go with XAML!
@ezecel9
@ezecel9 2 жыл бұрын
@@jfversluis Thanks for the answer. In this app I'll have to show a kind of overview of a calendar with information within each day. Do you know any library that help me reach that? Can a library only run in blazor but not in xaml? or vice versa?
@ghevisartor6242
@ghevisartor6242 Жыл бұрын
@@ezecel9 do you need to have lots of gestures? xaml have built in components, html you can use syncfusion but if you dont want third party libraries you need to do them yourself. Some libraries work with xaml but not blazor and viceversa. When I used the BarcodeScanner it worked only with xaml so I made another page and then switch back to the Blazor WebView. You can mix them, it's not like you only have to use razor components or only xaml pages.
@Mielesplayz
@Mielesplayz 2 жыл бұрын
Thanks! I can now replace the notification that shows up with a nice little popup at the bottom of your screen.
@jfversluis
@jfversluis 2 жыл бұрын
Awesome! Good luck!
@Mielesplayz
@Mielesplayz 2 жыл бұрын
@@jfversluis Thank you!
@hasansafi3341
@hasansafi3341 2 жыл бұрын
thank you. would you please make tutorial for playing embedded mp3 files (without internet) in xamarin forms and .net maui. thank you agian.
@jfversluis
@jfversluis 2 жыл бұрын
You probably want to have a look at this one: kzbin.info/www/bejne/pXq8n3irj56im9k
@hasansafi3341
@hasansafi3341 2 жыл бұрын
@@jfversluis thank you very much.
@aathifmahir
@aathifmahir 2 жыл бұрын
Awesome 👍, Please use Dark Mode on Visual Studio on Demo's in the future video's, almost blinded by light mode lol 😂
@jfversluis
@jfversluis 2 жыл бұрын
Thanks for the feedback. Won’t happen though :)
@christerad1669
@christerad1669 2 жыл бұрын
@@jfversluis Why :(
@jfversluis
@jfversluis 2 жыл бұрын
Then I’ll get comments asking for light mode 🤷‍♂️ I prefer light mode myself, it provides better contrast for those who need it
🚀  TDD, Where Did It All Go Wrong (Ian Cooper)
1:03:55
DevTernity Conference
Рет қаралды 571 М.
Mastering .NET MAUI SwipeView for Enhanced App Experience
18:36
James Montemagno
Рет қаралды 16 М.
When Rosé has a fake Fun Bot music box 😁
00:23
BigSchool
Рет қаралды 6 МЛН
Highly Customizable Popups for .NET MAUI with Mopups
18:20
Gerald Versluis
Рет қаралды 33 М.
Localization in .NET MAUI - Adding Multi-Language to Your Apps
24:17
Gerald Versluis
Рет қаралды 19 М.
The Logging Everyone Should Be Using in .NET
15:34
Nick Chapsas
Рет қаралды 88 М.
.NET MAUI for Desktop: Window Size & Position, Tooltips, Context Menus
12:02
Take Pictures in Your App with CameraView for .NET MAUI
19:05
Gerald Versluis
Рет қаралды 8 М.
.NET MAUI Barcode & QR Code Scanning Like a PRO!
12:03
James Montemagno
Рет қаралды 24 М.
Client-Side Logging in .NET MAUI with MetroLog.Maui
16:11
Gerald Versluis
Рет қаралды 13 М.
Check and Request Permissions in .NET MAUI
19:48
James Montemagno
Рет қаралды 25 М.
No Code App Development is a Trap
9:31
Coding with Dee
Рет қаралды 329 М.