Skip to content

Commit 5b94b9a

Browse files
Updated heat map calendar sample
1 parent 0197137 commit 5b94b9a

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

HeatMap/SchedulerHeatMap/MainWindow.xaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,46 @@
4141
Green="{StaticResource monthCellTemplate4}"
4242
DarkGreen="{StaticResource monthCellTemplate5}" />
4343
</Grid.Resources>
44+
<Grid.RowDefinitions>
45+
<RowDefinition Height="*"/>
46+
<RowDefinition Height="100"/>
47+
</Grid.RowDefinitions>
4448
<scheduler:SfScheduler x:Name="scheduler" AppointmentEditFlag="None">
4549
<scheduler:SfScheduler.MonthViewSettings>
4650
<scheduler:MonthViewSettings MonthCellTemplateSelector="{StaticResource monthCellTemplateSelector}" />
4751
</scheduler:SfScheduler.MonthViewSettings>
4852
</scheduler:SfScheduler>
53+
<Grid Grid.Row="1">
54+
<Grid.ColumnDefinitions>
55+
<ColumnDefinition Width="0.1*"/>
56+
<ColumnDefinition Width="0.8*"/>
57+
<ColumnDefinition Width="0.1*"/>
58+
</Grid.ColumnDefinitions>
59+
60+
<Grid Grid.Column="1" HorizontalAlignment="Center">
61+
<Grid.RowDefinitions>
62+
<RowDefinition Height="0.4*"/>
63+
<RowDefinition Height="0.6*"/>
64+
</Grid.RowDefinitions>
65+
66+
<TextBlock Text="Less" HorizontalTextAlignment="Start" VerticalAlignment="Bottom" Grid.Row="0"/>
67+
<TextBlock Text="More" HorizontalTextAlignment="End" VerticalAlignment="Bottom" Grid.Row="0"/>
68+
<Border Grid.Row="1" Margin="0,2,0,5" Height="20" MinWidth="500" VerticalAlignment="Top">
69+
<Border.Background>
70+
<LinearGradientBrush EndPoint="1,1">
71+
<LinearGradientBrush.GradientStops>
72+
<GradientStopCollection>
73+
<GradientStop Color="#eeeeee" Offset="0.0" />
74+
<GradientStop Color="#c6e48b" Offset="0.3" />
75+
<GradientStop Color="#7bc96f" Offset="0.6" />
76+
<GradientStop Color="#239a3b" Offset="0.8" />
77+
<GradientStop Color="#196127" Offset="1.0" />
78+
</GradientStopCollection>
79+
</LinearGradientBrush.GradientStops>
80+
</LinearGradientBrush>
81+
</Border.Background>
82+
</Border>
83+
</Grid>
84+
</Grid>
4985
</Grid>
5086
</Window>

0 commit comments

Comments
 (0)