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,
Can anyone tell me if there is a way to colour individual day "cells" in the calendar? I need to colour the background of the day "cell" depeding on a specific status.
Regards,
Mark
Hello Mark,
It is possible to achieve your scenario.
First of all, you need to create an event, set the EventType to Event and StartDate to any specific date you want to, such as following:
<Intersoft:UXCalendar HorizontalAlignment="Left" Margin="10,10,0,0" Name="uXCalendar1" VerticalAlignment="Top" CalendarDayButtonStyle="{StaticResource UXCalendarDayButtonStyle1}"> <Intersoft:UXCalendar.Events> <Intersoft:UXCalendarEventItem StartDate="1/15/2011" /> <Intersoft:UXCalendarEventItem StartDate="1/20/2011" /> </Intersoft:UXCalendar.Events> </Intersoft:UXCalendar>
Open your project using Microsoft Expression Blend. Right-click on the WebCalendar control and select Edit Additional Templates >> Edit CalendarDayButtonStyle >> Edit a Copy, then click OK.
Add the following code in the EventStates:
<VisualStateGroup x:Name="EventStates"> <VisualState x:Name="HasEvent"> <Storyboard> <ColorAnimation Duration="0" To="Red" Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" Storyboard.TargetName="SelectedGlass"/> </Storyboard> </VisualState> <VisualState x:Name="NoEvent"/> </VisualStateGroup>
Attached is the sample file for your reference.
Hope this helps.
Thank you.
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