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 have a problem that when I use DataTimeCommands in UXCalendar control, but it cause error,I wonder if I lose some conference? How to solve this problem now. Thank you very much! the following is my attachment code:
<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="ClientUIAdvInputCntrl.Views.UXCalendar_DataTimeCommands" Title="UXCalendar_DataTimeCommands Page" xmlns:local="clr-namespace:Intersoft.Client.UI.Aqua.UXInput;assembly=Intersoft.Client.UI.Aqua.UXInput" d:DesignWidth="640" d:DesignHeight="480"> <Grid x:Name="LayoutRoot" Background="White"> <StackPanel Orientation="Vertical" HorizontalAlignment="Center"> <Intersoft:UXCalendar DisplayDate="1/1/2010" x:Name="UXCalendar1" HorizontalAlignment="Center" CalendarTodayVisibility="Collapsed" /> <StackPanel Orientation="Vertical"> <TextBlock Text="Special Date:" /> <Intersoft:UXButton Command="local:DateTimeCommands.GotoToday" CommandTarget="{Binding ElementName=UXCalendar1}" Content="Goto Today" Height="23" Width="150" Margin="5,5"/> <Intersoft:UXButton Command="local:DateTimeCommands.GotoDate" CommandParameter="12/25/2010" CommandTarget="{Binding ElementName=UXCalendar1}" Content="Goto Christmas" Height="23" Width="150" Margin="5,5"/> </StackPanel> </StackPanel> </Grid> </Intersoft:UXPage>
Thank you for the UXCalendar code.
I tested the code in a Silverlight project and encountered no problems at all. Please find the attached video which shows how the test conducted on my local end.
For your information, I’m using English (United States) as the Region and Language Format in my local end. Exception might happen on development PC which uses different local settings, for example: Chinese (Simplified, PRC). This is due to the different date and time formats.
By default, Chinese (Simplified, PRC) local settings has yyyy/M/d as the Short date format. In order to avoid exception which happen when try to run the sample we should modify the date time format in the xaml code into a proper format. For example: try to use 2010/12/25 as the Christmas date instead of 12/25/2010.
Hope this helps.
Hi Yudi,
I just have another problems in UXCalendar,in the doucuments, it said we can add events to UXCalendar by using Events property or EventsSource property. I know how to use EventSource property to add event, but using Event property to add event puzzled me , would you give me a sample that using Event property add event? Thank you very much!
Thanks for your video, I got it ! Thank you very much!
Glad to hear the good news.
Should you need further assistance or run into any problems regarding our controls, feel free to post it into our community site. We would be happy to assist you again.
Please find my response on “How to use UXCalendar to bind data with Events Property?” thread. I have provided a simple sample of code which shows how to add event using Events property of UXCalendar.
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