I forgot to mention that the performance part of this video was heavily inspired by this blog post by XamGirl! xamgirl.com/stop-doing-isvisibletrue-false-to-show-hide-views-in-runtime-in-xamarin-forms
@abhaynath583311 ай бұрын
Your WPF tutorials are like treasure ! Can you please make a tutorial about right way to do localization in WPF ? Thanks for the amazing content.
@teriyakov8 ай бұрын
This is great. I managed to implement it with the mvvm pattern (using the community toolkit) by binding the condition to a boolean property on the viewmodel which I set on page load. Works perfectly. Thanks again!
@FranciscoZhou-c7b5 ай бұрын
Hi, I am really appreciate you delivery this content to solve what's the dependant property is since this problem prevents me away from any xaml app.
@wowojune91846 ай бұрын
The most best explanation of "Bindable Property".
@7m0xd11 ай бұрын
This is amazing, I never knew about this issue and Im actually facing it, I have two CollectionViews and Im showing only one of them but in terms of performance Im sure this will be an issue. but with your solution its gonna avoid that. Thank you bro and I hope to see more MAUI Content.
@SingletonSean11 ай бұрын
That's awesome, hope this solution goes well!!
@paschalasobirionwu118311 ай бұрын
hey random question could this be extrapolated to a three way validation i.e., if condition == 1 => display view1 else if condition == 2 => display view2 else => display view3 btw great video I can see this becoming a game changer in the MAUI community
@krccmsitp288411 ай бұрын
Really nice solution and explanation.
@DornerWorksMobile4 ай бұрын
Could this be done with an enum value like a switch?
@AliakseiPlashchanski Жыл бұрын
Does the same approach work in WPF?
@SingletonSean Жыл бұрын
Yep, good question! I think you would just need to use a UserControl instead.
@ignatiusjreilly128711 ай бұрын
I believe that using Visibility="Collapsed" in WPF is enough. The object is removed from the visual tree and has minimum impact.
@TheTigerus11 ай бұрын
4:38 If class is not ambiguous between if condition?
@SingletonSean11 ай бұрын
Nope! Because the casing is different (if vs If)
@TheTigerus11 ай бұрын
@@SingletonSean recently I spent 30 min fixing a bug in my code. Bug was "ID" instead of "Id". Even if it's not ambigous for code itself, naming class "If" is dangerous. But it's only example so ¯\_(ツ)_/¯
@GautamJainTheActor3 ай бұрын
Thanks. This works great. Performance has improved. I called by class RenderThis instead of If. If you think someone out there has introduced a better way of doing this since you posted this video, please do let us know.
@mariocamspam7211 ай бұрын
You're conflating terminology somewhat: the label isn't being rendered. The problem comes from it still being in the logical tree and thus loaded like other controls (as stated with the listview example)
@SingletonSean11 ай бұрын
True! I think that is a better way to describe it
@ndev927 ай бұрын
Good video but should it be this hard to do something like this?
@megaman201611 ай бұрын
Very nice
@NickSteffen10 ай бұрын
You know you are working in a ui framework when you need mountains of boiler plate to accomplish basic functionality… still nice solution.