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
Hello,
Have you tried our ClientUI 5 from WebUI Studio 2011R1? Please let me know if the issue also persists in our ClientUI5 or not. Right now, I need a little time to build a similar scenario for this issue. Please bear with me. I will back to you when I have a result for you.
Regards,Handy
We've purcheased ClientUI from WebUI Studio 2010 r2 just before WebUI Studio 2011 r1 was lunched, so we can't use version 5 (in the member account version 5 is available only in Trial mode).
I consider this a bug and just lost a day for debugging this. As a work around, I've replaced the UXPopup with the standard Silverlight Popup control and it works just fine. The disavantage of this is the extra work needed for implementing the needed features supported by UXPopup (like positioning).
Can you guide us how to replicate your issue? I tried to create a project that used StackGrid Template. But I could not figure out how do you implement your UXPopUp in this scenario. Would you mind to send a simple sample that replicates your issue?
Sorry for the delay, but I had to finish the task and did not have time to reply.
I've managed to create a simple example to reporduce the bug:
<Intersoft:UXPage xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" xmlns:Intersoft="http://intersoft.clientui.com/schemas" x:Class="ClientUIApplication1.MainPage" Title="MainPage Page" d:DesignWidth="640" d:DesignHeight="480"> <Grid x:Name="LayoutRoot"> <Grid.ColumnDefinitions> <ColumnDefinition Width="*"></ColumnDefinition> <ColumnDefinition Width="50"></ColumnDefinition> <ColumnDefinition Width="*"></ColumnDefinition> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="*"></RowDefinition> <RowDefinition Height="50"></RowDefinition> <RowDefinition Height="*"></RowDefinition> </Grid.RowDefinitions> <Intersoft:UXStackButton Content="Open Settings" DisplayMode="Content" StackMode="GridStyle" Grid.Row="1" Grid.Column="1"> <Intersoft:UXStackButton.StackGridTemplate> <DataTemplate> <StackPanel Width="250"> <Intersoft:GlassButton Content="Open Popup" Margin="4" Click="GlassButton_Click"/> <Intersoft:UXPopup x:Name="PickerPopup" DisableOverlay="True" DisplayAnimation="Zoom" PreferredPosition="BottomLeft" VerticalAlignment="Top" IsOpen="{Binding IsPopupOpen, Mode=TwoWay}" > <StackPanel Margin="20"> <Button Content="Close" Click="Button_Click"></Button> </StackPanel> </Intersoft:UXPopup> </StackPanel> </DataTemplate> </Intersoft:UXStackButton.StackGridTemplate> </Intersoft:UXStackButton> </Grid> </Intersoft:UXPage>
and the code behind:
using System.ComponentModel; using System.Windows; using Intersoft.Client.UI.Navigation; namespace ClientUIApplication1 { public partial class MainPage: UXPage, INotifyPropertyChanged { /// <summary> /// RaisePropertyChanged /// </summary> /// <param name="sPropertyName"></param> protected void RaisePropertyChanged( string sPropertyName ) { if ( PropertyChanged != null ) { PropertyChanged( this, new PropertyChangedEventArgs( sPropertyName ) ); }//if }//RaisePropertyChanged public event PropertyChangedEventHandler PropertyChanged; private bool m_isPopupOpen; public bool IsPopupOpen { set { m_isPopupOpen = value; RaisePropertyChanged( "IsPopupOpen" ); } get { return m_isPopupOpen; } } public MainPage() { InitializeComponent(); LayoutRoot.DataContext = this; } private void GlassButton_Click( object sender, RoutedEventArgs e ) { IsPopupOpen = true; } private void Button_Click( object sender, RoutedEventArgs e ) { IsPopupOpen = false; } } }
Also, a strange bug appears: if the browser window is not resized, the app crashes with null reference exception when you click the stack button.
I am able to replicate the exception in here. I will forward this issue to our developer teams and will let you know the update.
Please keep in mind that fixing the exception is not what i looking for (it does not appear in our project). The closing of the UXStackButton popup when the UXPopup is closed is the bug I need it to fix.
Please try to use this code snippet and let me know if you still have trouble in UXPopUp or not.
static MainPage() { EventManager.RegisterClassHandler(typeof(UXPopup), UXPopup.ClosedEvent, new ISRoutedEventHandler(OnClosed)); } private static void OnClosed(object sender, ISRoutedEventArgs args) { args.Handled = true; }
It partialy worked. I had to add this
private void OnClosed( object sender, ISRoutedEventArgs args ) { if ( (sender as UXPopup).Name == "PickerPopup" ) { args.Handled = true; } }
because the stack button would remain pressed when you click outside of the two popups and you have to click it twice to open his popup again.
I found another problem: when the UXPopup control must be repositioned because of the screen limits, the arrow of the callout of the UXStackButton is moved from the button to a side. I've attached pictures to show this bug.
I wanted to add that we finally upgraded to ClientUI 5, but the problems remained (the exeption if the browser is not resized too).
Currently, I need more time to discuss with our developer teams. I will let you know asap when I got response,
I am not able to reproduce the issue in here. Can you also confirm that this also happened in ClientUI5?As far I checked, the previous issue also has been fixed in 2011R1SP1 installer.
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