iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
I was attempting to add a SelectionChanged event handler in XAML and determine which tab was being selected in my VM. When I add it to the UXTabControl structure, it thinks my EventTrigger is a tab and displays a tiny tab, and if you click on that tab it throws an exception. Can you please verify that you can actually add an eventtrigger to the UXTabControl and provide me with an example of how you did it?
Thanks,
Ross
Hi Ross,
Using the event handler in MVVM application is not recommended. You can easily capture the selected tab in your VM through the SelectedIndex property of the UXTabControl. For instance, "SelectedIndex={Binding MyVM.SelectedTabIndex}"
In your case, the EventTrigger is treated as a content and thus a tab is created to encapsulate the content, which is no longer needed when you used the correct MVVM design pattern. The "content encapsulation" complies with the ItemsControl concept in which it allows you to host any UIElement in the control.
Please let me know if my suggestion works for you, or if you have specific reasons to use EventTrigger.
Hope this helps,Jimmy
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname