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
Hi, I'm trying to implement a split button under wpf. If I click on the drop down button and then click anywhere outside the control the default action is still implemented. This does not happen under Silverlight for the same code. I have attached a simple project to demonstrate. Just click on the drop down button and then click somewhere else on the window, not the on the split button. The default action will be trigged. You will notice a commented line of code that can be used to partially correct this issue. However I don't believe it will work if you set the command property rather then handle the click event. Thanks, Jonathan
<Window x:Class="WpfApplication27.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:Intersoft="clr-namespace:Intersoft.Client.UI.Aqua;assembly=Intersoft.Client.UI.Aqua" Title="MainWindow"> <Grid> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition Height="*" /> </Grid.RowDefinitions> <Intersoft:UXSplitButton Name="SampleControl1" Content="Save" Click="SampleControl1_OnClick" Width="100"> <Intersoft:UXMenuItem Header="Save and Create New" Click="UXMenuItem_OnClick" /> <Intersoft:UXMenuItem Header="Save and Create New With Same Store" Click="UXMenuItem_OnClick" /> <Intersoft:UXMenuItem Header="Save and Create New With Same Target" Click="UXMenuItem_OnClick" /> </Intersoft:UXSplitButton> </Grid> </Window>
using System.Windows;
using Intersoft.Client.UI.Aqua; namespace WpfApplication27 { public partial class MainWindow { public MainWindow() { InitializeComponent(); } private void SampleControl1_OnClick(object sender, RoutedEventArgs e) { MessageBox.Show("SampleControl1_Click"); //if (!((UXSplitButton)sender).IsDropDownOpen) MessageBox.Show("SampleControl1_Click"); } private void UXMenuItem_OnClick(object sender, Intersoft.Client.Framework.ISRoutedEventArgs e) { MessageBox.Show("UXMenuItem_Click"); } } }
P.S. I tried to use the developer network to report this problem, but received a server error each time I logged on.
Thank you very much for the valuable feedback.
I will have this problem forwarded to ClientUI development team. Should I have any news regarding this thread, I will let you know.
Edited on December 26, 2011 9:47 PMReason: add/update work item information
This is considered as bug. A work item, work item #1103, has been submitted to ClientUI development team. I will keep you updated with any news I heard from the team regarding work item #1103.
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