I would like to develop my calendar view as in image. Is it possible with customizing datepicker?
Asked
Active
Viewed 820 times
0

magicandre1981
- 27,895
- 5
- 86
- 127
-
I think it is impossible with datepicker to do that. – Junior Jiang Jul 25 '19 at 05:29
-
@JuniorJiang-MSFT, Any plugins that are of free? I have tried with SyncFusion which is not free. – Ravi Kiran Palanchu Jul 25 '19 at 05:43
-
There are some ways in java to custom a calendar view ,such as https://www.telerik.com/forums/customization-of-android-calendar-monthview .However , xamarin need to custom `BoxView` to realize it.This need to translate java code to C# code. – Junior Jiang Jul 25 '19 at 07:12
1 Answers
0
Try some code like it
<ScrollView Orientation = "Horizontal">
<ListView x:Name="datePicker" ItemSelected="OnSelection" IsPullToRefreshEnabled="True" >
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<StackLayout Orientation = "Vertical" VerticalOptions="Center Padding="5,0,5,0">
<Label Text="{Binding Date}"/>
<Label Text="{Binding month}"/>
<Label Text="{Binding week}" />
</StackLayout>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</ScrollView>
You can use th item selection to change the color and inotifypropertychanged to set new values for your grid vector.
Regards
Guilherme Marques

Guilherme Marques
- 485
- 6
- 13