﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - ClientUI - Colour day cell background in calendar</title><link>http://www.intersoftsolutions.com/Community/ClientUI/Colour-day-cell-background-in-calendar/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Colour day cell background in calendar</title><link>http://www.intersoftsolutions.com/Community/ClientUI/Colour-day-cell-background-in-calendar/</link><pubDate>Mon, 24 Jan 2011 04:22:25 GMT</pubDate><dc:creator>MarTin</dc:creator><description>&lt;p&gt;Hello Mark,&lt;/p&gt;
&lt;p&gt;It is possible to achieve your scenario.&lt;/p&gt;
&lt;p&gt;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:&lt;/p&gt;&lt;pre&gt;&amp;lt;Intersoft:UXCalendar HorizontalAlignment="Left" Margin="10,10,0,0" Name="uXCalendar1" VerticalAlignment="Top" CalendarDayButtonStyle="{StaticResource UXCalendarDayButtonStyle1}"&amp;gt;
   &amp;lt;Intersoft:UXCalendar.Events&amp;gt;
      &amp;lt;Intersoft:UXCalendarEventItem StartDate="1/15/2011" /&amp;gt;
      &amp;lt;Intersoft:UXCalendarEventItem StartDate="1/20/2011" /&amp;gt;
   &amp;lt;/Intersoft:UXCalendar.Events&amp;gt;
&amp;lt;/Intersoft:UXCalendar&amp;gt;&lt;/pre&gt;
&lt;p&gt;Open your project using Microsoft Expression Blend. Right-click on the WebCalendar control and select Edit Additional Templates &amp;gt;&amp;gt; Edit CalendarDayButtonStyle &amp;gt;&amp;gt; Edit a Copy, then click OK.&lt;/p&gt;
&lt;p&gt;Add the following code in the &lt;strong&gt;EventStates&lt;/strong&gt;:&lt;/p&gt;&lt;pre&gt;&amp;lt;VisualStateGroup x:Name="EventStates"&amp;gt;
	&amp;lt;VisualState x:Name="HasEvent"&amp;gt;
		&amp;lt;Storyboard&amp;gt;
			&amp;lt;ColorAnimation Duration="0" To="Red" Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" Storyboard.TargetName="SelectedGlass"/&amp;gt;			
		&amp;lt;/Storyboard&amp;gt;
	&amp;lt;/VisualState&amp;gt;
	&amp;lt;VisualState x:Name="NoEvent"/&amp;gt;
&amp;lt;/VisualStateGroup&amp;gt;&lt;/pre&gt;
&lt;p&gt;Attached is the sample file for your reference.&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;</description></item><item><title>Colour day cell background in calendar</title><link>http://www.intersoftsolutions.com/Community/ClientUI/Colour-day-cell-background-in-calendar/</link><pubDate>Tue, 18 Jan 2011 12:06:50 GMT</pubDate><dc:creator>MarkDavison</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Mark&lt;/p&gt;</description></item></channel></rss>