Click here to Subscribe Now: czcams.com/channels/k2GyexoK16XiKkrXLD_O2Q.html Join now to unlock custom emojis by me and get loyalty badges next to your name in comments and live chat: czcams.com/channels/k2GyexoK16XiKkrXLD_O2Q.htmljoin Become my patron to get early access to my videos and instantly unlock all the source codes. Patreon: www.patreon.com/join/jdscodelab/checkout?rid=5733953 ☕Buy me a Coffee: www.buymeacoffee.com/jdscodelab
You can simplify conversion to MainWindow with pattern matching like: if ( Application.Current.MainWindow is MainWindow main) { main.CallThatYouNeed(); }
and for navigation better add method to codebehind in MainWindow that will handle it. It simplify access to navigation and handle exception when accessing xaml elements about which other's classes don't know
Click here to Subscribe Now:
czcams.com/channels/k2GyexoK16XiKkrXLD_O2Q.html
Join now to unlock custom emojis by me and get loyalty badges next to your name in comments and live chat:
czcams.com/channels/k2GyexoK16XiKkrXLD_O2Q.htmljoin
Become my patron to get early access to my videos and instantly unlock all the source codes.
Patreon: www.patreon.com/join/jdscodelab/checkout?rid=5733953
☕Buy me a Coffee:
www.buymeacoffee.com/jdscodelab
Please can you make a video on EA's Origin UI Design?
Noted Leonardo.👍
You can simplify conversion to MainWindow with pattern matching like:
if ( Application.Current.MainWindow is MainWindow main)
{
main.CallThatYouNeed();
}
and for navigation better add method to codebehind in MainWindow that will handle it.
It simplify access to navigation and handle exception when accessing xaml elements about which other's classes don't know