Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Crazy ZIndex in WPF
WhatsApp
Akhil Garg
10y
45.4
k
0
0
25
Blog
Zindex.zip
ZIndex represents the order on the z-plane in which an element appears. So consider whenever you are having two or more controls on top of each other and you want to handle, which need to be shown based on some requirement then surely this article will help you out in resolving that problem. Higher value of Zindex will make that control on top of all other controls.
Consider a scenario where we are having a ComboBox and on changing the selection in combobox you need to load different Grid with different style.
Here we are having 3 different Grid and one combobox Which will tell which grid we need to put on top of screen.
Xaml Code:
C# ViewModel Code:
Crazy ZIndex in WPF
Up Next
Difference Between WPF and Silverlight and Advantages of WPF
Ebook Download
View all
WPF Simplified: Build Windows Apps Using C# and XAML
Read by 1.5k people
Download Now!
Learn
View all
Membership not found