CPAO: Listing of the Standard Month Legal Template
Here is the entire listing of the code from the Standard Month Legal template I created.
First - here is the contents of the Metadata.xml file:
<Metadata xmlns="https://schemas.microsoft.com/2005/xcal" Version="1.0.0">
<Name>Standard Month Legal</Name>
<TimeUnit>Month</TimeUnit>
<PageSizeSelectionIndex>Legal</PageSizeSelectionIndex>
<PageHeight>14in</PageHeight>
<PageWidth>8.5in</PageWidth>
<PageOrientationSelectionIndex>Portrait</PageOrientationSelectionIndex>
<PageRow>1</PageRow>
<PageColumn>1</PageColumn>
<Thumbnail>DefaultPreview.gif</Thumbnail>
<Tasks>true</Tasks>
<Appointments>true</Appointments>
<SideBySide>false</SideBySide>
<PageCount>1</PageCount>
<TemplateId>135</TemplateId>
<CompanyId>1</CompanyId>
</Metadata>
And then here is the listing of the entire Content.xml file:
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2007, Microsoft Corporation. All rights reserved. -->
<!-- Standard Month Legal -->
<Template xmlns="https://schemas.microsoft.com/2005/xcal" Version="1.0.0">
<Display>
<Page RowSetting="0.25in,Auto,0.08in,*,0.4in"
ColumnSetting="0.25in,*,0.25in" Style="StandardText">
<!-- Background -->
<Rectangle Row="0" Column="0" RowSpan="5" ColumnSpan="3"
Style="PageBackground"/>
<!--Week Header-->
<Grid Row="1" Column="1" RowSetting="Auto"
ColumnSetting="*,1.3in,1.3in,1.3in" Style="Header"
Padding=".08in" Background="Black">
<!--Month Title-->
<CalendarText Row="0" Column="0"
Text="#[@TemplateDate_MonthNameYearNumber]"
HorizontalAlignment="Left" FontSize="30pt"
FontWeight="Bold" Foreground="Yellow"/>
<!--Banners-->
<MonthWeekDayCalendar Row="0" Column="1" Height="1.1in"
Width="1.25in" VerticalAlignment="Center"
HorizontalAlignment="Center"
Style="BannerControl">
<MonthFormat DateOffset="-1">
<DockPanel>
<CalendarText Orientation="Top"
Text="#[@TemplateDate_BannerMonthNameYear]"
Height="0.19in" FontSize="8pt"
Style="BannerTitle"/>
<WeekHeader Orientation="Top" Height="0.15in" FontSize="7pt"
Format="d" Style="BannerWeekHeader"/>
<StandardGrid Orientation="Fill" NumColumns="1" NumRows="6"
Style="BannerBody" />
</DockPanel>
</MonthFormat>
<WeekFormat>
<DockPanel>
<CalendarText Orientation="Left" Width="0.15in"
Text="#[@TemplateDate_WeekNumber]"
FontSize="5pt" Style="BannerText"
HorizontalAlignment="Left" Margin="1,0,0,0">
<ConditionalFormat Condition="ShowWeekNumber eq 'false'"
Visibility="Collapsed"/>
</CalendarText>
<StandardGrid Orientation="Fill" NumRows="1" NumColumns="7" />
</DockPanel>
</WeekFormat>
<DayFormat>
<Banner Text="#[%d]" FontSize="7pt" Style="BannerText">
<ConditionalFormat Condition="OutsideMonthDays eq 'true'"
Visibility="Collapsed"/>
<ConditionalFormat Condition="DayOfWeek eq 'sun'"
Foreground="style!WeekendColor"
ForegroundHighlight="style!WeekendColor"/>
<ConditionalFormat Condition="DayOfWeek eq 'sat'"
Foreground="style!WeekendColor"
ForegroundHighlight="style!WeekendColor"/>
</Banner>
</DayFormat>
</MonthWeekDayCalendar>
<MonthWeekDayCalendar Row="0" Column="2" Height="1.1in"
Width="1.25in" VerticalAlignment="Center"
HorizontalAlignment="Center"
Style="BannerControl">
<MonthFormat DateOffset="1">
<DockPanel>
<CalendarText Orientation="Top"
Text="#[@TemplateDate_BannerMonthNameYear]"
Height="0.19in" FontSize="8pt"
Style="BannerTitle"/>
<WeekHeader Orientation="Top" Height="0.15in" FontSize="7pt"
Format="d" Style="BannerWeekHeader"/>
<StandardGrid Orientation="Fill" NumColumns="1" NumRows="6"
Style="BannerBody" />
</DockPanel>
</MonthFormat>
<WeekFormat>
<DockPanel>
<CalendarText Orientation="Left" Width="0.15in"
Text="#[@TemplateDate_WeekNumber]"
FontSize="5pt" Style="BannerText"
HorizontalAlignment="Left" Margin="1,0,0,0">
<ConditionalFormat Condition="ShowWeekNumber eq 'false'"
Visibility="Collapsed"/>
</CalendarText>
<StandardGrid Orientation="Fill" NumRows="1" NumColumns="7" />
</DockPanel>
</WeekFormat>
<DayFormat>
<Banner Text="#[%d]" FontSize="7pt" Style="BannerText">
<ConditionalFormat Condition="OutsideMonthDays eq 'true'"
Visibility="Collapsed"/>
<ConditionalFormat Condition="DayOfWeek eq 'sun'"
Foreground="style!WeekendColor"
ForegroundHighlight="style!WeekendColor"/>
<ConditionalFormat Condition="DayOfWeek eq 'sat'"
Foreground="style!WeekendColor"
ForegroundHighlight="style!WeekendColor"/>
</Banner>
</DayFormat>
</MonthWeekDayCalendar>
<MonthWeekDayCalendar Row="0" Column="3" Height="1.1in"
Width="1.25in" VerticalAlignment="Center"
HorizontalAlignment="Center"
Style="BannerControl">
<MonthFormat DateOffset="2">
<DockPanel>
<CalendarText Orientation="Top"
Text="#[@TemplateDate_BannerMonthNameYear]"
Height="0.19in" FontSize="8pt"
Style="BannerTitle"/>
<WeekHeader Orientation="Top" Height="0.15in" FontSize="7pt"
Format="d" Style="BannerWeekHeader"/>
<StandardGrid Orientation="Fill" NumColumns="1" NumRows="6"
Style="BannerBody" />
</DockPanel>
</MonthFormat>
<WeekFormat>
<DockPanel>
<CalendarText Orientation="Left" Width="0.15in"
Text="#[@TemplateDate_WeekNumber]"
FontSize="5pt" Style="BannerText"
HorizontalAlignment="Left" Margin="1,0,0,0">
<ConditionalFormat Condition="ShowWeekNumber eq 'false'"
Visibility="Collapsed"/>
</CalendarText>
<StandardGrid Orientation="Fill" NumRows="1" NumColumns="7" />
</DockPanel>
</WeekFormat>
<DayFormat>
<Banner Text="#[%d]" FontSize="7pt" Style="BannerText">
<ConditionalFormat Condition="OutsideMonthDays eq 'true'"
Visibility="Collapsed"/>
<ConditionalFormat Condition="DayOfWeek eq 'sun'"
Foreground="style!WeekendColor"
ForegroundHighlight="style!WeekendColor"/>
<ConditionalFormat Condition="DayOfWeek eq 'sat'"
Foreground="style!WeekendColor"
ForegroundHighlight="style!WeekendColor"/>
</Banner>
</DayFormat>
</MonthWeekDayCalendar>
</Grid>
<!--MonthDayCalendar Sizer-->
<MonthDayCalendar Row="3" Column="1">
<MonthFormat>
<DockPanel Style="LevelOneParent">
<WeekHeader Orientation="Top" Height="0.2in" FontSize="8pt"
Format="ddd" Style="LevelOneTitle"/>
<WeekGrid Orientation="Fill" NumRows="Auto" NumColumns="7"
Style="LevelOneBody" UnitRestriction="true">
<SpanningAllDayArea MinSize="0" MaxSize="95" IsUniform="false"
Margin="2">
<AllDayAppointment Height="28" Margin="2,1,2,0"
Style="SingleAppointment"
Background="Yellow">
<Bar Visibility="Collapsed" Orientation="Left" Width="5"
BorderThickness="0,0,1,0">
<ConditionalFormat Condition="BusyStatus eq 'Free'"
Visibility="Visible"
Style="SingleAppointmentBarFree"/>
<ConditionalFormat Condition="BusyStatus eq 'Tentative'"
Visibility="Visible"
Style="SingleAppointmentBarTentative"/>
<ConditionalFormat Condition="BusyStatus eq
'OutOfOffice'" Visibility="Visible"
Style="SingleAppointmentBarOOF"/>
</Bar>
<Content Orientation="Fill" Margin="2,0,2,0"
HorizontalAlignment="Center" Separator="62"
SeparatorFontFamily="Symbol" FontSize="8pt"
TextWrapping="Wrap">
<ContentElement Source="CategorySymbols"/>
<ContentElement Source="Subject" FontWeight="Bold"/>
<ContentElement Source="Location"/>
<ContentElement Source="Organizer"/>
<ContentElement Source="CategorySymbols"/>
</Content>
</AllDayAppointment>
</SpanningAllDayArea>
</WeekGrid>
</DockPanel>
</MonthFormat>
<DayFormat>
<Grid RowSetting="*" ColumnSetting="*" Height="Auto"
Style="LevelLeafParent">
<CalendarText Row="0" Column="0" FontSize="10pt"
HorizontalAlignment="Right"
VerticalAlignment="Bottom" Text="#[%d]"
FontFamily="style!FontMajor">
<Foreground>
<SolidColorBrush Color="style!mainDark1" Tint=".7"/>
</Foreground>
<ConditionalFormat Condition="DayOfWeek eq 'sun'">
<Foreground>
<SolidColorBrush Color="style!WeekendColor" Tint=".7"/>
</Foreground>
</ConditionalFormat>
<ConditionalFormat Condition="DayOfWeek eq 'sat'">
<Foreground>
<SolidColorBrush Color="style!WeekendColor" Tint=".7"/>
</Foreground>
</ConditionalFormat>
</CalendarText>
<DockPanel Row="0" Column="0" Style="LevelLeafBody" >
<SpanningAllDayAreaPlaceholder Orientation="Top" />
<!-- <CompactList Padding="2" Orientation="Fill"
FontSize="8pt" TypeFilter="AppointmentsTasks"/> -->
<List Orientation="Fill" FontSize="7pt" ShowEmptyRow="true"
MaxRowWrap="5" RowSize="14"
TypeFilter="AppointmentsTasks">
<Columns>
<Column Width="*" ShowDuplicates="True" Left="1"
Top="2" Right="1" Bottom="2" >
<Sources>
<Source Name="CategorySymbols"/>
<Source Name="StartTime" Format="t"
StartSeparator=""/>
<Source Name="EndTime" Format="t"
StartSeparator="-"/>
<Source Name="Subject" StartSeparator=": "/>
<Source Name="Location" StartSeparator="("
EndSeparator=")"/>
<Source Name="CategorySymbols"/>
</Sources>
</Column>
</Columns>
</List>
</DockPanel>
</Grid>
</DayFormat>
</MonthDayCalendar>
<!-- Standard Footer -->
<Grid Row="4" Column="1" VerticalAlignment="Top" Margin="0,4,0,0"
RowSetting="Auto" ColumnSetting="*,*,*">
<CalendarText Row="0" Column="0" Text="Wingtip Toys"
HorizontalAlignment="Left" FontSize="8pt"
FontWeight="Bold" />
<CalendarText Row="0" Column="1" Text="#[@TemplateDocInfo_Page]"
HorizontalAlignment="Center" FontSize="7pt"/>
<CalendarText Row="0" Column="2" Date="#[Now]"
Text="#[@TemplateDocInfo_PrintTime]"
HorizontalAlignment="Right" FontSize="7pt"/>
</Grid>
</Page>
</Display>
</Template>
I have also attached the Content.xml file to this post for your convenience. You can use this to do some comparisons with other templates (like the "Month_StandardMonth01.catx" template it was derived from) , and/or to do some editing of your own :-)