11
11
x : Name =" CalendarView_Unique"
12
12
x : DataType =" {x:Type xc:CalendarView}" >
13
13
14
- <VerticalStackLayout Spacing =" 0" >
15
- <VerticalStackLayout .Resources>
16
- <System : Boolean x : Key =" FalseValue" >False</System : Boolean >
17
14
15
+ <Grid >
16
+ <Grid .RowDefinitions>
17
+ <RowDefinition Height =" Auto" />
18
+ <RowDefinition Height =" Auto" />
19
+ <RowDefinition Height =" *" />
20
+ </Grid .RowDefinitions>
21
+
22
+ <Grid .Resources>
23
+ <System : Boolean x : Key =" FalseValue" >False</System : Boolean >
18
24
<Converters : IsNullOrEmptyConverter x : Key =" IsNullOrEmptyConverter" />
19
25
<Converters : LocalizeDayOfWeekAndCharLimitConverter x : Key =" LocalizeDayOfWeekAndCharLimitConverter" />
20
- </VerticalStackLayout .Resources>
26
+ </Grid .Resources>
21
27
22
28
<xc : NavigationView
29
+ Grid.Row=" 0"
23
30
ControlTemplate =" {Binding NavigationViewTemplate, Source={x:Reference CalendarView_Unique}}"
24
31
DateTime =" {Binding NavigatedDate, Source={x:Reference CalendarView_Unique}}"
25
32
LeftArrowCommand =" {Binding LeftArrowCommand, Source={x:Reference CalendarView_Unique}}"
28
35
RightArrowCommandParameter =" {Binding RightArrowCommandParameter, Source={x:Reference CalendarView_Unique}}" />
29
36
30
37
<!-- #region DayNames-->
31
- <ContentView ControlTemplate =" {Binding DayNamesTemplate, Source={x:Reference CalendarView_Unique}}" >
38
+ <ContentView Grid.Row= " 1 " ControlTemplate =" {Binding DayNamesTemplate, Source={x:Reference CalendarView_Unique}}" >
32
39
<CollectionView
33
40
x : Name =" MainDaysOfWeekView"
34
41
Margin =" 0,5,0,0"
74
81
75
82
<xc : DaysView
76
83
x : Name =" MainDaysView"
84
+ Grid.Row=" 2"
77
85
ControlTemplate =" {Binding DaysViewTemplate, Source={x:Reference CalendarView_Unique}}"
78
86
DayTemplate =" {Binding DayTemplate, Source={x:Reference CalendarView_Unique}}"
79
87
DaysOfWeek =" {Binding DaysOfWeek, Source={x:Reference CalendarView_Unique}}"
80
88
HeightRequest =" {Binding DaysViewHeightRequest, Source={x:Reference CalendarView_Unique}}" />
81
89
82
- </VerticalStackLayout >
90
+ </Grid >
83
91
84
92
</ContentView >
0 commit comments