New version of Progress Telerik UI for Xamarin SDK examples.

This commit is contained in:
GitTask 2020-05-13 17:46:49 +03:00
Родитель 08e7a2271b
Коммит f88c4052aa
139 изменённых файлов: 3173 добавлений и 416 удалений

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 629 B

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 612 B

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 668 B

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 345 B

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 874 B

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 868 B

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 388 B

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 1.2 KiB

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 1.2 KiB

Просмотреть файл

@ -102,70 +102,70 @@
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Xml" />
<Reference Include="Telerik.Documents.Core">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\portable-net45+win8+wpa81+wp8\Telerik.Documents.Core.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\portable-net45+win8+wpa81+wp8\Telerik.Documents.Core.dll</HintPath>
</Reference>
<Reference Include="Telerik.Documents.Fixed">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\portable-net45+win8+wpa81+wp8\Telerik.Documents.Fixed.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\portable-net45+win8+wpa81+wp8\Telerik.Documents.Fixed.dll</HintPath>
</Reference>
<Reference Include="Telerik.Documents.SpreadsheetStreaming">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\portable-net45+win8+wpa81+wp8\Telerik.Documents.SpreadsheetStreaming.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\portable-net45+win8+wpa81+wp8\Telerik.Documents.SpreadsheetStreaming.dll</HintPath>
</Reference>
<Reference Include="Telerik.Xamarin.Android.Chart">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\MonoAndroid10\Telerik.Xamarin.Android.Chart.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\MonoAndroid10\Telerik.Xamarin.Android.Chart.dll</HintPath>
</Reference>
<Reference Include="Telerik.Xamarin.Android.Common">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\MonoAndroid10\Telerik.Xamarin.Android.Common.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\MonoAndroid10\Telerik.Xamarin.Android.Common.dll</HintPath>
</Reference>
<Reference Include="Telerik.Xamarin.Android.Data">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\MonoAndroid10\Telerik.Xamarin.Android.Data.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\MonoAndroid10\Telerik.Xamarin.Android.Data.dll</HintPath>
</Reference>
<Reference Include="Telerik.Xamarin.Android.Input">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\MonoAndroid10\Telerik.Xamarin.Android.Input.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\MonoAndroid10\Telerik.Xamarin.Android.Input.dll</HintPath>
</Reference>
<Reference Include="Telerik.Xamarin.Android.List">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\MonoAndroid10\Telerik.Xamarin.Android.List.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\MonoAndroid10\Telerik.Xamarin.Android.List.dll</HintPath>
</Reference>
<Reference Include="Telerik.Xamarin.Android.Primitives">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\MonoAndroid10\Telerik.Xamarin.Android.Primitives.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\MonoAndroid10\Telerik.Xamarin.Android.Primitives.dll</HintPath>
</Reference>
<Reference Include="Telerik.XamarinForms.Barcode">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\MonoAndroid10\Telerik.XamarinForms.Barcode.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\MonoAndroid10\Telerik.XamarinForms.Barcode.dll</HintPath>
</Reference>
<Reference Include="Telerik.XamarinForms.Chart">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\MonoAndroid10\Telerik.XamarinForms.Chart.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\MonoAndroid10\Telerik.XamarinForms.Chart.dll</HintPath>
</Reference>
<Reference Include="Telerik.XamarinForms.Common">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\MonoAndroid10\Telerik.XamarinForms.Common.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\MonoAndroid10\Telerik.XamarinForms.Common.dll</HintPath>
</Reference>
<Reference Include="Telerik.XamarinForms.ConversationalUI">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\MonoAndroid10\Telerik.XamarinForms.ConversationalUI.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\MonoAndroid10\Telerik.XamarinForms.ConversationalUI.dll</HintPath>
</Reference>
<Reference Include="Telerik.XamarinForms.DataControls">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\MonoAndroid10\Telerik.XamarinForms.DataControls.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\MonoAndroid10\Telerik.XamarinForms.DataControls.dll</HintPath>
</Reference>
<Reference Include="Telerik.XamarinForms.DataVisualization">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\MonoAndroid10\Telerik.XamarinForms.DataVisualization.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\MonoAndroid10\Telerik.XamarinForms.DataVisualization.dll</HintPath>
</Reference>
<Reference Include="Telerik.XamarinForms.ImageEditor">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\MonoAndroid10\Telerik.XamarinForms.ImageEditor.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\MonoAndroid10\Telerik.XamarinForms.ImageEditor.dll</HintPath>
</Reference>
<Reference Include="Telerik.XamarinForms.Input">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\MonoAndroid10\Telerik.XamarinForms.Input.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\MonoAndroid10\Telerik.XamarinForms.Input.dll</HintPath>
</Reference>
<Reference Include="Telerik.XamarinForms.Map">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\MonoAndroid10\Telerik.XamarinForms.Map.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\MonoAndroid10\Telerik.XamarinForms.Map.dll</HintPath>
</Reference>
<Reference Include="Telerik.XamarinForms.PdfViewer">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\MonoAndroid10\Telerik.XamarinForms.PdfViewer.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\MonoAndroid10\Telerik.XamarinForms.PdfViewer.dll</HintPath>
</Reference>
<Reference Include="Telerik.XamarinForms.Primitives">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\MonoAndroid10\Telerik.XamarinForms.Primitives.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\MonoAndroid10\Telerik.XamarinForms.Primitives.dll</HintPath>
</Reference>
<Reference Include="Telerik.XamarinForms.SkiaSharp">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\MonoAndroid10\Telerik.XamarinForms.SkiaSharp.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\MonoAndroid10\Telerik.XamarinForms.SkiaSharp.dll</HintPath>
</Reference>
<Reference Include="Telerik.Zip">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\portable-net45+win8+wpa81+wp8\Telerik.Zip.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\portable-net45+win8+wpa81+wp8\Telerik.Zip.dll</HintPath>
</Reference>
<Reference Include="Xamarin.Android.Arch.Core.Common, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Xamarin.Android.Arch.Core.Common.1.1.1.3\lib\monoandroid90\Xamarin.Android.Arch.Core.Common.dll</HintPath>
@ -566,6 +566,15 @@
<AndroidResource Include="Resources\drawable-mdpi\TemplatedPicker.png" />
<AndroidResource Include="Resources\drawable-xhdpi\TemplatedPicker.png" />
<AndroidResource Include="Resources\drawable-xxhdpi\TemplatedPicker.png" />
<AndroidResource Include="Resources\drawable-hdpi\DatePicker.png" />
<AndroidResource Include="Resources\drawable-hdpi\TimePicker.png" />
<AndroidResource Include="Resources\drawable-hdpi\TimeSpanPicker.png" />
<AndroidResource Include="Resources\drawable-xhdpi\DatePicker.png" />
<AndroidResource Include="Resources\drawable-xhdpi\TimePicker.png" />
<AndroidResource Include="Resources\drawable-xhdpi\TimeSpanPicker.png" />
<AndroidResource Include="Resources\drawable-xxhdpi\DatePicker.png" />
<AndroidResource Include="Resources\drawable-xxhdpi\TimePicker.png" />
<AndroidResource Include="Resources\drawable-xxhdpi\TimeSpanPicker.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\image.png" />

Просмотреть файл

@ -44,5 +44,5 @@
<package id="Xamarin.Android.Support.VersionedParcelable" version="28.0.0.3" targetFramework="monoandroid90" />
<package id="Xamarin.Android.Support.ViewPager" version="28.0.0.3" targetFramework="monoandroid90" />
<package id="Xamarin.Forms" version="4.5.0.356" targetFramework="monoandroid90" />
<package id="Telerik.UI.for.Xamarin.Trial" version="2020.1.318.1" targetFramework="monoandroid80" />
<package id="Telerik.UI.for.Xamarin.Trial" version="2020.2.513.1" targetFramework="monoandroid80" />
</packages>

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 258 B

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 713 B

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 629 B

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 345 B

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 488 B

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 478 B

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 519 B

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 612 B

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 874 B

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 1.7 KiB

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 463 B

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 580 B

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 668 B

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 868 B

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 1.6 KiB

Просмотреть файл

@ -124,6 +124,11 @@
<Content Include="Assets\Checkbox.scale-200.png" />
<Content Include="Assets\Checkbox.scale-400.png" />
<Content Include="Assets\custom_toolbar.png" />
<Content Include="Assets\DatePicker.scale-100.png" />
<Content Include="Assets\DatePicker.scale-125.png" />
<Content Include="Assets\DatePicker.scale-150.png" />
<Content Include="Assets\DatePicker.scale-200.png" />
<Content Include="Assets\DatePicker.scale-400.png" />
<Content Include="Assets\DateTimePicker.scale-100.png" />
<Content Include="Assets\DateTimePicker.scale-125.png" />
<Content Include="Assets\DateTimePicker.scale-150.png" />
@ -182,6 +187,16 @@
<Content Include="Assets\TemplatedPicker.scale-150.png" />
<Content Include="Assets\TemplatedPicker.scale-200.png" />
<Content Include="Assets\TemplatedPicker.scale-400.png" />
<Content Include="Assets\TimePicker.scale-100.png" />
<Content Include="Assets\TimePicker.scale-125.png" />
<Content Include="Assets\TimePicker.scale-150.png" />
<Content Include="Assets\TimePicker.scale-200.png" />
<Content Include="Assets\TimePicker.scale-400.png" />
<Content Include="Assets\TimeSpanPicker.scale-100.png" />
<Content Include="Assets\TimeSpanPicker.scale-125.png" />
<Content Include="Assets\TimeSpanPicker.scale-150.png" />
<Content Include="Assets\TimeSpanPicker.scale-200.png" />
<Content Include="Assets\TimeSpanPicker.scale-400.png" />
<Content Include="Assets\TreeView_Flag_Argentina.png" />
<Content Include="Assets\TreeView_Flag_China.png" />
<Content Include="Assets\TreeView_Flag_Germany.png" />
@ -460,74 +475,74 @@
</ItemGroup>
<ItemGroup>
<Reference Include="Telerik.Core">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\uap10.0\Telerik.Core.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\uap10.0\Telerik.Core.dll</HintPath>
</Reference>
<Reference Include="Telerik.Data">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\uap10.0\Telerik.Data.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\uap10.0\Telerik.Data.dll</HintPath>
</Reference>
<Reference Include="Telerik.Documents.Core">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\portable-net45+win8+wpa81+wp8\Telerik.Documents.Core.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\portable-net45+win8+wpa81+wp8\Telerik.Documents.Core.dll</HintPath>
</Reference>
<Reference Include="Telerik.Documents.Fixed">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\portable-net45+win8+wpa81+wp8\Telerik.Documents.Fixed.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\portable-net45+win8+wpa81+wp8\Telerik.Documents.Fixed.dll</HintPath>
</Reference>
<Reference Include="Telerik.Documents.SpreadsheetStreaming">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\portable-net45+win8+wpa81+wp8\Telerik.Documents.SpreadsheetStreaming.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\portable-net45+win8+wpa81+wp8\Telerik.Documents.SpreadsheetStreaming.dll</HintPath>
</Reference>
<Reference Include="Telerik.UI.Xaml.Chart.UWP">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\uap10.0\Telerik.UI.Xaml.Chart.UWP.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\uap10.0\Telerik.UI.Xaml.Chart.UWP.dll</HintPath>
</Reference>
<Reference Include="Telerik.UI.Xaml.Controls.Data.UWP">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\uap10.0\Telerik.UI.Xaml.Controls.Data.UWP.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\uap10.0\Telerik.UI.Xaml.Controls.Data.UWP.dll</HintPath>
</Reference>
<Reference Include="Telerik.UI.Xaml.Input.UWP">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\uap10.0\Telerik.UI.Xaml.Input.UWP.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\uap10.0\Telerik.UI.Xaml.Input.UWP.dll</HintPath>
</Reference>
<Reference Include="Telerik.UI.Xaml.Primitives.UWP">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\uap10.0\Telerik.UI.Xaml.Primitives.UWP.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\uap10.0\Telerik.UI.Xaml.Primitives.UWP.dll</HintPath>
</Reference>
<Reference Include="Telerik.XamarinForms.Barcode">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\uap10.0\Telerik.XamarinForms.Barcode.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\uap10.0\Telerik.XamarinForms.Barcode.dll</HintPath>
</Reference>
<Reference Include="Telerik.XamarinForms.Chart">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\uap10.0\Telerik.XamarinForms.Chart.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\uap10.0\Telerik.XamarinForms.Chart.dll</HintPath>
</Reference>
<Reference Include="Telerik.XamarinForms.Common">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\uap10.0\Telerik.XamarinForms.Common.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\uap10.0\Telerik.XamarinForms.Common.dll</HintPath>
</Reference>
<Reference Include="Telerik.XamarinForms.ConversationalUI">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\uap10.0\Telerik.XamarinForms.ConversationalUI.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\uap10.0\Telerik.XamarinForms.ConversationalUI.dll</HintPath>
</Reference>
<Reference Include="Telerik.XamarinForms.DataControls">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\uap10.0\Telerik.XamarinForms.DataControls.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\uap10.0\Telerik.XamarinForms.DataControls.dll</HintPath>
</Reference>
<Reference Include="Telerik.XamarinForms.DataGrid">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\uap10.0\Telerik.XamarinForms.DataGrid.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\uap10.0\Telerik.XamarinForms.DataGrid.dll</HintPath>
</Reference>
<Reference Include="Telerik.XamarinForms.DataVisualization">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\uap10.0\Telerik.XamarinForms.DataVisualization.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\uap10.0\Telerik.XamarinForms.DataVisualization.dll</HintPath>
</Reference>
<Reference Include="Telerik.XamarinForms.ImageEditor">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\uap10.0\Telerik.XamarinForms.ImageEditor.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\uap10.0\Telerik.XamarinForms.ImageEditor.dll</HintPath>
</Reference>
<Reference Include="Telerik.XamarinForms.Input">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\uap10.0\Telerik.XamarinForms.Input.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\uap10.0\Telerik.XamarinForms.Input.dll</HintPath>
</Reference>
<Reference Include="Telerik.XamarinForms.Map">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\uap10.0\Telerik.XamarinForms.Map.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\uap10.0\Telerik.XamarinForms.Map.dll</HintPath>
</Reference>
<Reference Include="Telerik.XamarinForms.PdfViewer">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\uap10.0\Telerik.XamarinForms.PdfViewer.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\uap10.0\Telerik.XamarinForms.PdfViewer.dll</HintPath>
</Reference>
<Reference Include="Telerik.XamarinForms.Primitives">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\uap10.0\Telerik.XamarinForms.Primitives.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\uap10.0\Telerik.XamarinForms.Primitives.dll</HintPath>
</Reference>
<Reference Include="Telerik.XamarinForms.SkiaSharp">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\uap10.0\Telerik.XamarinForms.SkiaSharp.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\uap10.0\Telerik.XamarinForms.SkiaSharp.dll</HintPath>
</Reference>
<Reference Include="Telerik.Zip">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\portable-net45+win8+wpa81+wp8\Telerik.Zip.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\portable-net45+win8+wpa81+wp8\Telerik.Zip.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>

Просмотреть файл

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Telerik.UI.for.Xamarin.Trial" version="2020.1.318.1" targetFramework="uap10.0" />
<package id="Telerik.UI.for.Xamarin.Trial" version="2020.2.513.1" targetFramework="uap10.0" />
</packages>

Двоичные данные
XamarinSDK/SDKBrowser/SDKBrowser.iOS/Resources/DatePicker.png Normal file

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 258 B

Двоичные данные
XamarinSDK/SDKBrowser/SDKBrowser.iOS/Resources/DatePicker@1,5x.png Normal file

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 629 B

Двоичные данные
XamarinSDK/SDKBrowser/SDKBrowser.iOS/Resources/DatePicker@2x.png Normal file

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 345 B

Двоичные данные
XamarinSDK/SDKBrowser/SDKBrowser.iOS/Resources/DatePicker@3x.png Normal file

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 388 B

Двоичные данные
XamarinSDK/SDKBrowser/SDKBrowser.iOS/Resources/TimePicker.png Normal file

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 478 B

Двоичные данные
XamarinSDK/SDKBrowser/SDKBrowser.iOS/Resources/TimePicker@1,5x.png Normal file

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 612 B

Двоичные данные
XamarinSDK/SDKBrowser/SDKBrowser.iOS/Resources/TimePicker@2x.png Normal file

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 874 B

Двоичные данные
XamarinSDK/SDKBrowser/SDKBrowser.iOS/Resources/TimePicker@3x.png Normal file

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 1.2 KiB

Двоичные данные
XamarinSDK/SDKBrowser/SDKBrowser.iOS/Resources/TimeSpanPicker.png Normal file

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 463 B

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 668 B

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 868 B

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 1.2 KiB

Просмотреть файл

@ -200,58 +200,58 @@
<Reference Include="System.Xml" />
<Reference Include="System.Core" />
<Reference Include="Telerik.Documents.Core">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\portable-net45+win8+wpa81+wp8\Telerik.Documents.Core.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\portable-net45+win8+wpa81+wp8\Telerik.Documents.Core.dll</HintPath>
</Reference>
<Reference Include="Telerik.Documents.Fixed">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\portable-net45+win8+wpa81+wp8\Telerik.Documents.Fixed.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\portable-net45+win8+wpa81+wp8\Telerik.Documents.Fixed.dll</HintPath>
</Reference>
<Reference Include="Telerik.Documents.SpreadsheetStreaming">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\portable-net45+win8+wpa81+wp8\Telerik.Documents.SpreadsheetStreaming.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\portable-net45+win8+wpa81+wp8\Telerik.Documents.SpreadsheetStreaming.dll</HintPath>
</Reference>
<Reference Include="Telerik.Xamarin.iOS">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\xamarinios10\Telerik.Xamarin.iOS.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\xamarinios10\Telerik.Xamarin.iOS.dll</HintPath>
</Reference>
<Reference Include="Telerik.XamarinForms.Barcode">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\xamarinios10\Telerik.XamarinForms.Barcode.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\xamarinios10\Telerik.XamarinForms.Barcode.dll</HintPath>
</Reference>
<Reference Include="Telerik.XamarinForms.Chart">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\xamarinios10\Telerik.XamarinForms.Chart.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\xamarinios10\Telerik.XamarinForms.Chart.dll</HintPath>
</Reference>
<Reference Include="Telerik.XamarinForms.Common">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\xamarinios10\Telerik.XamarinForms.Common.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\xamarinios10\Telerik.XamarinForms.Common.dll</HintPath>
</Reference>
<Reference Include="Telerik.XamarinForms.ConversationalUI">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\xamarinios10\Telerik.XamarinForms.ConversationalUI.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\xamarinios10\Telerik.XamarinForms.ConversationalUI.dll</HintPath>
</Reference>
<Reference Include="Telerik.XamarinForms.DataControls">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\xamarinios10\Telerik.XamarinForms.DataControls.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\xamarinios10\Telerik.XamarinForms.DataControls.dll</HintPath>
</Reference>
<Reference Include="Telerik.XamarinForms.DataGrid">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\xamarinios10\Telerik.XamarinForms.DataGrid.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\xamarinios10\Telerik.XamarinForms.DataGrid.dll</HintPath>
</Reference>
<Reference Include="Telerik.XamarinForms.DataVisualization">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\xamarinios10\Telerik.XamarinForms.DataVisualization.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\xamarinios10\Telerik.XamarinForms.DataVisualization.dll</HintPath>
</Reference>
<Reference Include="Telerik.XamarinForms.ImageEditor">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\xamarinios10\Telerik.XamarinForms.ImageEditor.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\xamarinios10\Telerik.XamarinForms.ImageEditor.dll</HintPath>
</Reference>
<Reference Include="Telerik.XamarinForms.Input">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\xamarinios10\Telerik.XamarinForms.Input.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\xamarinios10\Telerik.XamarinForms.Input.dll</HintPath>
</Reference>
<Reference Include="Telerik.XamarinForms.Map">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\xamarinios10\Telerik.XamarinForms.Map.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\xamarinios10\Telerik.XamarinForms.Map.dll</HintPath>
</Reference>
<Reference Include="Telerik.XamarinForms.PdfViewer">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\xamarinios10\Telerik.XamarinForms.PdfViewer.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\xamarinios10\Telerik.XamarinForms.PdfViewer.dll</HintPath>
</Reference>
<Reference Include="Telerik.XamarinForms.Primitives">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\xamarinios10\Telerik.XamarinForms.Primitives.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\xamarinios10\Telerik.XamarinForms.Primitives.dll</HintPath>
</Reference>
<Reference Include="Telerik.XamarinForms.SkiaSharp">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\xamarinios10\Telerik.XamarinForms.SkiaSharp.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\xamarinios10\Telerik.XamarinForms.SkiaSharp.dll</HintPath>
</Reference>
<Reference Include="Telerik.Zip">
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.1.318.1\lib\portable-net45+win8+wpa81+wp8\Telerik.Zip.dll</HintPath>
<HintPath>..\..\packages\Telerik.UI.for.Xamarin.Trial.2020.2.513.1\lib\portable-net45+win8+wpa81+wp8\Telerik.Zip.dll</HintPath>
</Reference>
<Reference Include="Xamarin.Forms.Core">
<HintPath>..\..\packages\Xamarin.Forms.4.5.0.356\lib\Xamarin.iOS10\Xamarin.Forms.Core.dll</HintPath>
@ -613,6 +613,42 @@
<ItemGroup>
<BundleResource Include="Resources\ListPicker%403x.png" />
</ItemGroup>
<ItemGroup>
<BundleResource Include="Resources\DatePicker.png" />
</ItemGroup>
<ItemGroup>
<BundleResource Include="Resources\DatePicker%401,5x.png" />
</ItemGroup>
<ItemGroup>
<BundleResource Include="Resources\DatePicker%402x.png" />
</ItemGroup>
<ItemGroup>
<BundleResource Include="Resources\DatePicker%403x.png" />
</ItemGroup>
<ItemGroup>
<BundleResource Include="Resources\TimePicker.png" />
</ItemGroup>
<ItemGroup>
<BundleResource Include="Resources\TimePicker%401,5x.png" />
</ItemGroup>
<ItemGroup>
<BundleResource Include="Resources\TimePicker%402x.png" />
</ItemGroup>
<ItemGroup>
<BundleResource Include="Resources\TimePicker%403x.png" />
</ItemGroup>
<ItemGroup>
<BundleResource Include="Resources\TimeSpanPicker.png" />
</ItemGroup>
<ItemGroup>
<BundleResource Include="Resources\TimeSpanPicker%401,5x.png" />
</ItemGroup>
<ItemGroup>
<BundleResource Include="Resources\TimeSpanPicker%402x.png" />
</ItemGroup>
<ItemGroup>
<BundleResource Include="Resources\TimeSpanPicker%403x.png" />
</ItemGroup>
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>

Просмотреть файл

@ -6,5 +6,5 @@
<package id="Xam.Plugins.Settings" version="3.1.1" targetFramework="xamarinios10" />
<package id="Xamarin.Forms" version="4.5.0.356" targetFramework="xamarinios10" />
<package id="Xamarin.TestCloud.Agent" version="0.21.9" targetFramework="xamarinios10" />
<package id="Telerik.UI.for.Xamarin.Trial" version="2020.1.318.1" targetFramework="xamarinios10" />
<package id="Telerik.UI.for.Xamarin.Trial" version="2020.2.513.1" targetFramework="xamarinios10" />
</packages>

Просмотреть файл

@ -42,6 +42,8 @@
<x:String x:Key="ExpandedIconText">&#xE80D;</x:String>
<x:String x:Key="CollapsedIconText">&#xE806;</x:String>
<x:String x:Key="HyperlinkIconText">&#xF08E;</x:String>
<x:String x:Key="CheckIconText">&#xE909;</x:String>
<x:String x:Key="CancelIconText">&#xE809A;</x:String>
<telerikCommon:InvertedBooleanConverter x:Key="InvertedBooleanConverter" />
<converters:ImageSourceConverter x:Key="ImageSourceConverter" />

Просмотреть файл

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<ContentView xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:telerikInput="clr-namespace:Telerik.XamarinForms.Input;assembly=Telerik.XamarinForms.Input"
xmlns:local="clr-namespace:SDKBrowser.Examples.CalendarControl.CommandsCategory.AppointmentTapExample"
mc:Ignorable="d"
x:Class="SDKBrowser.Examples.CalendarControl.CommandsCategory.AppointmentTapExample.AppointmentTap">
<ContentView.Content>
<!-- >> calendar-commands-appointmenttap-xaml -->
<telerikInput:RadCalendar x:Name="calendar"
ViewMode="MultiDay"
DisplayDate="2020,03,24"
AppointmentsSource="{Binding Appointments}">
<telerikInput:RadCalendar.BindingContext>
<local:ViewModel/>
</telerikInput:RadCalendar.BindingContext>
</telerikInput:RadCalendar>
<!-- << calendar-commands-appointmenttap-xaml -->
</ContentView.Content>
</ContentView>

Просмотреть файл

@ -0,0 +1,17 @@
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace SDKBrowser.Examples.CalendarControl.CommandsCategory.AppointmentTapExample
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class AppointmentTap : ContentView
{
public AppointmentTap()
{
InitializeComponent();
// >> calendar-commands-appointmenttap-cs
this.calendar.Commands.Add(new AppointmentTapUserCommand());
// << calendar-commands-appointmenttap-cs
}
}
}

Просмотреть файл

@ -0,0 +1,29 @@
using System;
using System.Collections.Generic;
using System.Text;
using Telerik.XamarinForms.Input.Calendar.Commands;
using Xamarin.Forms;
namespace SDKBrowser.Examples.CalendarControl.CommandsCategory.AppointmentTapExample
{
// >> calendar-commands-appointmenttappedusercommand
public class AppointmentTapUserCommand : CalendarCommand
{
public AppointmentTapUserCommand()
{
Id = CommandId.AppointmentTap;
}
public override bool CanExecute(object parameter)
{
return true;
}
public override void Execute(object parameter)
{
var tappedAppointment = ((AppointmentTapCommandContext)parameter).Appointment;
Application.Current.MainPage.DisplayAlert("AppointmentTap Command", "Info: " + tappedAppointment.Title, "OK");
}
}
// << calendar-commands-appointmenttappedusercommand
}

Просмотреть файл

@ -0,0 +1,50 @@
using System;
using System.Collections.ObjectModel;
using System.Windows.Input;
using Telerik.XamarinForms.Input;
using Telerik.XamarinForms.Input.Calendar.Commands;
using Xamarin.Forms;
namespace SDKBrowser.Examples.CalendarControl.CommandsCategory.AppointmentTapExample
{
// >> calendar-commands-appointmenttap-viewmodel
public class ViewModel
{
public ViewModel()
{
var date = new DateTime(2020,03,24);
this.Appointments = new ObservableCollection<Appointment>
{
new Appointment {
Title = "Meeting with Tom",
Detail = "Sea Garden",
StartDate = date.AddHours(10),
EndDate = date.AddHours(11),
Color = Color.Tomato
},
new Appointment {
Title = "Lunch with Sara",
Detail = "Restaurant",
StartDate = date.AddHours(12).AddMinutes(30),
EndDate = date.AddHours(14),
Color = Color.DarkTurquoise
},
new Appointment {
Title = "Elle Birthday",
StartDate = date.AddDays(1),
EndDate = date.AddDays(1).AddHours(12),
IsAllDay = true
},
new Appointment {
Title = "Football Game",
StartDate = date.AddDays(2).AddHours(15),
EndDate = date.AddDays(2).AddHours(17),
Color = Color.Green
}
};
}
public ObservableCollection<Appointment> Appointments { get; set; }
}
// << calendar-commands-appointmenttap-viewmodel
}

Просмотреть файл

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<ContentView xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:telerikInput="clr-namespace:Telerik.XamarinForms.Input;assembly=Telerik.XamarinForms.Input"
xmlns:commands="clr-namespace:Telerik.XamarinForms.Input.Calendar.Commands;assembly=Telerik.XamarinForms.Input"
mc:Ignorable="d"
x:Class="SDKBrowser.Examples.CalendarControl.CommandsCategory.CellTapExample.CellTap">
<ContentView.Content>
<!-- >> calendar-commands-celltap-xaml -->
<telerikInput:RadCalendar DisplayDate="2020,03,24">
<telerikInput:RadCalendar.Commands>
<commands:CalendarUserCommand Id="CellTap" Command="{Binding CellTapCommand}"/>
</telerikInput:RadCalendar.Commands>
</telerikInput:RadCalendar>
<!-- << calendar-commands-celltap-xaml -->
</ContentView.Content>
</ContentView>

Просмотреть файл

@ -0,0 +1,29 @@
using System.Windows.Input;
using Telerik.XamarinForms.Input;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace SDKBrowser.Examples.CalendarControl.CommandsCategory.CellTapExample
{
[XamlCompilation(XamlCompilationOptions.Compile)]
// >> calendar-commands-celltap
public partial class CellTap : ContentView
{
public CellTap()
{
InitializeComponent();
this.CellTapCommand = new Command(this.OnCellTapped);
this.BindingContext = this;
}
public ICommand CellTapCommand { get; set; }
private void OnCellTapped(object obj)
{
var args = (CalendarDayCell)obj;
Application.Current.MainPage.DisplayAlert("Cell Tap Command", "You have selected " + args.Date.ToString("dd/MMMM/yyyy"), "OK");
}
}
// << calendar-commands-celltap
}

Просмотреть файл

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<ContentView xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:telerikInput="clr-namespace:Telerik.XamarinForms.Input;assembly=Telerik.XamarinForms.Input"
xmlns:commands="clr-namespace:Telerik.XamarinForms.Input.Calendar.Commands;assembly=Telerik.XamarinForms.Input"
mc:Ignorable="d"
x:Class="SDKBrowser.Examples.CalendarControl.CommandsCategory.TimeSlotTapExample.TimeSlotTap">
<ContentView.Content>
<!-- >> calendar-commands-timeslottap-xaml -->
<telerikInput:RadCalendar ViewMode="Day"
DisplayDate="2020,03,24">
<telerikInput:RadCalendar.Commands>
<commands:CalendarUserCommand Id="TimeSlotTap"
Command="{Binding TimeSlotTapCommand}"/>
</telerikInput:RadCalendar.Commands>
</telerikInput:RadCalendar>
<!-- << calendar-commands-timeslottap-xaml -->
</ContentView.Content>
</ContentView>

Просмотреть файл

@ -0,0 +1,29 @@
using System.Windows.Input;
using Telerik.XamarinForms.Input.Calendar.Commands;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace SDKBrowser.Examples.CalendarControl.CommandsCategory.TimeSlotTapExample
{
[XamlCompilation(XamlCompilationOptions.Compile)]
// >> calendar-commands-timeslottap
public partial class TimeSlotTap : ContentView
{
public TimeSlotTap()
{
InitializeComponent();
this.TimeSlotTapCommand = new Command(this.OnTimeSlotTapped);
this.BindingContext = this;
}
public ICommand TimeSlotTapCommand { get; set; }
private void OnTimeSlotTapped(object obj)
{
var args = (TimeSlotTapCommandContext)obj;
Application.Current.MainPage.DisplayAlert("TimeSlotTap Command", "Start Time is " + args.StartTime + " and Endtime is " + args.EndTime, "OK");
}
}
// << calendar-commands-timeslottap
}

Просмотреть файл

@ -13,7 +13,9 @@
DayItemFormat="EEE d MMM"
AppointmentItemTimeFormat="HH mm"
AppointmentItemEndDateFormat="MMM d"
AppointmentItemStartDateFormat="MMM d"/>
AppointmentItemStartDateFormat="MMM d"
IsHeaderSticky="True"
StickyHeaderFormat="YYYY MMM"/>
</telerikInput:RadCalendar.AgendaViewSettings>
</telerikInput:RadCalendar>
<!-- << calendar-agendaview-settings -->

Просмотреть файл

@ -14,6 +14,8 @@
</Grid.RowDefinitions>
<!-- >> calendar-appointments-example -->
<telerikInput:RadCalendar x:Name="calendar"
IsAddAppointmentButtonVisible="True"
AddAppointmentButtonClicked="calendar_AddAppointmentButtonClicked"
AppointmentsSource="{Binding Appointments}"
SchedulingUiEnabled="True">
<telerikInput:RadCalendar.BindingContext>

Просмотреть файл

@ -26,5 +26,12 @@ namespace SDKBrowser.Examples.CalendarControl.FeaturesCategory.CalendarAppointme
calendar.ViewMode = CalendarViewMode.Month;
}
}
// >> calendar-appointment-button-click-event
private void calendar_AddAppointmentButtonClicked(object sender, AddAppointmentButtonClickedEventArgs e)
{
// implement your logic here
}
// << calendar-appointment-button-click-event
}
}

Просмотреть файл

@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<ContentView xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:telerikInput="clr-namespace:Telerik.XamarinForms.Input;assembly=Telerik.XamarinForms.Input"
mc:Ignorable="d"
x:Class="SDKBrowser.Examples.CalendarControl.StylingCategory.AgendaViewStickyHeadersStyleExample.AgendaViewStickyHeadersStyle">
<ContentView.Resources>
<ResourceDictionary>
<!-- >> calendar-agendaview-stickyheader-style -->
<telerikInput:AgendaStickyHeaderStyle x:Key="MyStickyHeaderStyle"
TextColor="#EE6D4C"
FontAttributes="Bold"
FontSize="20"
HorizontalTextAlignment="Center"
DecorationColor="#EE6D4C"
DecorationHeight="5"/>
<!-- << calendar-agendaview-stickyheader-style -->
</ResourceDictionary>
</ContentView.Resources>
<!-- >> calendar-agendaview-setstickyheader-xaml -->
<telerikInput:RadCalendar x:Name="calendar"
ViewMode="Agenda">
<telerikInput:RadCalendar.AgendaViewSettings>
<telerikInput:AgendaViewSettings IsHeaderSticky="True"
StickyHeaderFormat="MMMM, YYYY"
StickyHeaderStyle="{StaticResource MyStickyHeaderStyle}"/>
</telerikInput:RadCalendar.AgendaViewSettings>
</telerikInput:RadCalendar>
<!-- << calendar-agendaview-setstickyheader-xaml -->
</ContentView>

Просмотреть файл

@ -0,0 +1,182 @@
using System;
using System.Collections.ObjectModel;
using Telerik.XamarinForms.Input;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace SDKBrowser.Examples.CalendarControl.StylingCategory.AgendaViewStickyHeadersStyleExample
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class AgendaViewStickyHeadersStyle : ContentView
{
public AgendaViewStickyHeadersStyle()
{
InitializeComponent();
this.calendar.AppointmentsSource = GenerateAppointments();
}
private static ObservableCollection<IAppointment> GenerateAppointments()
{
var appointments = new ObservableCollection<IAppointment>()
{
new Appointment()
{
StartDate = DateTime.Today.AddHours(11),
EndDate = DateTime.Today.AddHours(11).AddMinutes(15),
Title = "Daily SCRUM",
Color = Color.FromHex("55A6FF"),
},
new Appointment()
{
StartDate = DateTime.Today.AddDays(-7).AddHours(10),
EndDate = DateTime.Today.AddDays(-7).AddHours(11),
Title = "Tokyo Deall call",
Color = Color.FromHex("FFA200")
},
new Appointment()
{
StartDate = DateTime.Today.AddDays(-7).AddHours(16) ,
EndDate = DateTime.Today.AddDays(-7).AddHours(17).AddMinutes(30),
Title = "Dinner with the Morgans",
Color = Color.FromHex("55A6FF"),
},
new Appointment()
{
StartDate = DateTime.Today.AddDays(-4).AddHours(15),
EndDate = DateTime.Today.AddDays(-4).AddHours(16).AddMinutes(30),
Title = "Theater evening",
Color = Color.FromHex("55A6FF"),
},
new Appointment()
{
StartDate = DateTime.Today.AddDays(-3).AddHours(9),
EndDate = DateTime.Today.AddDays(-3).AddHours(10),
Title = "Conference call with HQ2",
Color = Color.FromHex("FFA200"),
},
new Appointment()
{
StartDate = DateTime.Today.AddDays(-4),
EndDate = DateTime.Today.AddDays(-2).AddSeconds(1),
Title = "Weekend barbecue",
Color = Color.FromHex("55A6FF"),
IsAllDay= true,
},
new Appointment()
{
StartDate = DateTime.Today.AddDays(-3),
EndDate = DateTime.Today.AddDays(-1).AddSeconds(1),
Title = "Mountain biking",
Color = Color.FromHex("FF9F55"),
IsAllDay = true
},
new Appointment()
{
StartDate = DateTime.Today.AddHours(9),
EndDate = DateTime.Today.AddHours(10),
Title = "Job Interview",
Color = Color.FromHex("FFA200"),
},
new Appointment()
{
StartDate = DateTime.Today.AddHours(10),
EndDate = DateTime.Today.AddHours(11),
Title = "Tokyo deal call",
Color = Color.FromHex("FFA200"),
},
new Appointment()
{
StartDate = DateTime.Today.AddHours(14),
EndDate = DateTime.Today.AddHours(15).AddMinutes(30),
Title = "Yachting",
Color = Color.FromHex("55A6FF"),
IsAllDay = true
},
new Appointment()
{
StartDate = DateTime.Today.AddHours(16),
EndDate = DateTime.Today.AddHours(17).AddMinutes(30),
Title = "Dinner with the Morgans",
Color = Color.FromHex("55A6FF"),
},
new Appointment()
{
StartDate = DateTime.Today.AddHours(18),
EndDate = DateTime.Today.AddHours(19).AddMinutes(30),
Title = "Fitness",
Color = Color.FromHex("FF9F55"),
},
new Appointment()
{
StartDate = DateTime.Today.AddHours(20),
EndDate = DateTime.Today.AddHours(22),
Title = "Watch a movie",
Color = Color.FromHex("EE6C4D"),
IsAllDay = true
},
new Appointment()
{
StartDate = DateTime.Today.AddHours(20),
EndDate = DateTime.Today.AddHours(22),
Title = "Date with Candice",
Color = Color.FromHex("EE6C4D"),
},
new Appointment()
{
StartDate = DateTime.Today.AddDays(2).AddHours(18),
EndDate = DateTime.Today.AddDays(2).AddHours(19).AddMinutes(30),
Title = "Watch your favourite show",
Color = Color.FromHex("55A6FF"),
IsAllDay = true,
},
new Appointment()
{
StartDate = DateTime.Today.AddDays(2).AddHours(19),
EndDate = DateTime.Today.AddDays(2).AddHours(20).AddMinutes(30),
Title = "Football",
Color = Color.FromHex("FF9F55"),
},
new Appointment()
{
StartDate = DateTime.Today.AddDays(3).AddHours(10),
EndDate = DateTime.Today.AddDays(3).AddHours(11),
Title = "Coordination meeting",
Color = Color.FromHex("FFA200"),
},
new Appointment()
{
StartDate = DateTime.Today.AddDays(3).AddHours(15),
EndDate = DateTime.Today.AddDays(3).AddHours(16).AddMinutes(30),
Title = "Theater evening",
Color = Color.FromHex("55A6FF"),
IsAllDay = true
},
new Appointment()
{
StartDate = DateTime.Today.AddDays(3).AddHours(18),
EndDate = DateTime.Today.AddDays(3).AddHours(19).AddMinutes(30),
Title = "Table tennis",
Color = Color.FromHex("FF9F55"),
},
new Appointment()
{
StartDate = DateTime.Today.AddDays(4).AddHours(9),
EndDate = DateTime.Today.AddDays(4).AddHours(10),
Title = "Conference call with HQ2",
Color = Color.FromHex("FFA200"),
},
new Appointment()
{
StartDate = DateTime.Today.AddDays(5).AddHours(21),
EndDate = DateTime.Today.AddDays(5).AddHours(23),
Title = "Birthday party",
Color = Color.FromHex("EE6C4D"),
}
};
return appointments;
}
}
}

Просмотреть файл

@ -0,0 +1,148 @@
<?xml version="1.0" encoding="UTF-8"?>
<ContentView xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:telerikConversationalUI="clr-namespace:Telerik.XamarinForms.ConversationalUI;assembly=Telerik.XamarinForms.ConversationalUI"
xmlns:telerikPrimitives="clr-namespace:Telerik.XamarinForms.Primitives;assembly=Telerik.XamarinForms.Primitives"
mc:Ignorable="d"
x:Class="SDKBrowser.Examples.ChatControl.FeaturesCategory.DefaultTemplateSelectorExample.DefaultItemTemplateSelector">
<ContentView.Resources>
<!-- >> chat-features-defaultitemtemplate-resources -->
<ResourceDictionary>
<Style x:Key="MessageImageStyle" TargetType="Image">
<Setter Property="WidthRequest" Value="24" />
<Setter Property="HeightRequest" Value="24" />
<Setter Property="VerticalOptions" Value="Start" />
</Style>
<Style x:Key="OutgoingMessageImageStyle" TargetType="Image" BasedOn="{StaticResource MessageImageStyle}">
<Setter Property="HorizontalOptions" Value="End" />
<Setter Property="Margin" Value="0, 4, 10, 4" />
</Style>
<Style x:Key="IncomingMessageImageStyle" TargetType="Image" BasedOn="{StaticResource MessageImageStyle}">
<Setter Property="HorizontalOptions" Value="Start" />
<Setter Property="Margin" Value="10, 4, 0, 4" />
</Style>
<Style x:Key="IncomingBorderStyle" TargetType="telerikPrimitives:RadBorder">
<Setter Property="BackgroundColor" Value="#FFFFFF" />
<Setter Property="Margin" Value="45, 0, 70, 0" />
<Setter Property="HorizontalOptions" Value="Start" />
</Style>
<Style x:Key="OutgoingBorderStyle" TargetType="telerikPrimitives:RadBorder">
<Setter Property="BackgroundColor" Value="#E0E0E0" />
<Setter Property="Margin" Value="70, 0, 45, 0" />
<Setter Property="HorizontalOptions" Value="End" />
</Style>
<Style x:Key="DefaultLabelStyle" TargetType="Label">
<Setter Property="Margin" Value="20, 5, 20, 5" />
<Setter Property="FontSize" Value="16" />
<Setter Property="LineBreakMode" Value="WordWrap" />
<Setter Property="TextColor" Value="Black" />
<Setter Property="HorizontalOptions" Value="Start" />
</Style>
<Style x:Key="OutgoingLabelStyle" TargetType="Label" BasedOn="{StaticResource DefaultLabelStyle}">
<Setter Property="HorizontalOptions" Value="End" />
</Style>
<DataTemplate x:Key="OutgoingSingleTemplate">
<Grid Padding="0, 2, 0, 10">
<Image Source="{Binding Author.Avatar}" Style="{StaticResource OutgoingMessageImageStyle}" />
<telerikPrimitives:RadBorder Style="{StaticResource OutgoingBorderStyle}"
CornerRadius="7, 0, 7, 7" >
<Label Text="{Binding Text}" Style="{StaticResource OutgoingLabelStyle}" />
</telerikPrimitives:RadBorder>
</Grid>
</DataTemplate>
<DataTemplate x:Key="OutgoingFirstTemplate">
<Grid Padding="0, 2, 0, 2">
<Image Source="{Binding Author.Avatar}"
Style="{StaticResource OutgoingMessageImageStyle}" />
<telerikPrimitives:RadBorder Style="{StaticResource OutgoingBorderStyle}"
CornerRadius="7, 0, 0, 7" >
<Label Text="{Binding Text}" Style="{StaticResource OutgoingLabelStyle}" />
</telerikPrimitives:RadBorder>
</Grid>
</DataTemplate>
<DataTemplate x:Key="OutgoingMiddleTemplate">
<Grid Padding="0, 2, 0, 2">
<telerikPrimitives:RadBorder Style="{StaticResource OutgoingBorderStyle}"
CornerRadius="7, 0, 0, 7" >
<Label Text="{Binding Text}" Style="{StaticResource OutgoingLabelStyle}" />
</telerikPrimitives:RadBorder>
</Grid>
</DataTemplate>
<DataTemplate x:Key="OutgoingLastTemplate">
<Grid Padding="0, 2, 0, 10">
<telerikPrimitives:RadBorder Style="{StaticResource OutgoingBorderStyle}"
CornerRadius="7, 0, 7, 7" >
<Label Text="{Binding Text}" Style="{StaticResource OutgoingLabelStyle}" />
</telerikPrimitives:RadBorder>
</Grid>
</DataTemplate>
<DataTemplate x:Key="IncomingSingleTemplate">
<Grid Padding="0, 2, 0, 10">
<Image Source="{Binding Author.Avatar}"
Style="{StaticResource IncomingMessageImageStyle}" />
<telerikPrimitives:RadBorder Style="{StaticResource IncomingBorderStyle}"
CornerRadius="0, 7, 7, 7" >
<Label Text="{Binding Text}" Style="{StaticResource DefaultLabelStyle}" />
</telerikPrimitives:RadBorder>
</Grid>
</DataTemplate>
<DataTemplate x:Key="IncomingFirstTemplate">
<Grid Padding="0, 2, 0, 2">
<Image Source="{Binding Author.Avatar}"
Style="{StaticResource IncomingMessageImageStyle}" />
<telerikPrimitives:RadBorder Style="{StaticResource IncomingBorderStyle}"
CornerRadius="0, 7, 7, 0" >
<Label Text="{Binding Text}" Style="{StaticResource DefaultLabelStyle}" />
</telerikPrimitives:RadBorder>
</Grid>
</DataTemplate>
<DataTemplate x:Key="IncomingMiddleTemplate">
<Grid Padding="0, 2, 0, 2">
<telerikPrimitives:RadBorder Style="{StaticResource IncomingBorderStyle}"
CornerRadius="0, 7, 7, 0" >
<Label Text="{Binding Text}" Style="{StaticResource DefaultLabelStyle}" />
</telerikPrimitives:RadBorder>
</Grid>
</DataTemplate>
<DataTemplate x:Key="IncomingLastTemplate">
<Grid Padding="0, 2, 0, 10">
<telerikPrimitives:RadBorder Style="{StaticResource IncomingBorderStyle}"
CornerRadius="0, 7, 7, 7" >
<Label Text="{Binding Text}" Style="{StaticResource DefaultLabelStyle}" />
</telerikPrimitives:RadBorder>
</Grid>
</DataTemplate>
<telerikConversationalUI:ChatItemTemplateSelector x:Key="MyChatItemTemplateSelector"
IncomingFirstTextMessageTemplate="{StaticResource IncomingFirstTemplate}"
IncomingMiddleTextMessageTemplate="{StaticResource IncomingMiddleTemplate}"
IncomingSingleTextMessageTemplate="{StaticResource IncomingSingleTemplate}"
IncomingLastTextMessageTemplate="{StaticResource IncomingLastTemplate}"
OutgoingFirstTextMessageTemplate="{StaticResource OutgoingFirstTemplate}"
OutgoingMiddleTextMessageTemplate="{StaticResource OutgoingMiddleTemplate}"
OutgoingSingleTextMessageTemplate="{StaticResource OutgoingSingleTemplate}"
OutgoingLastTextMessageTemplate="{StaticResource OutgoingLastTemplate}" />
</ResourceDictionary>
<!-- << chat-features-defaultitemtemplate-resources -->
</ContentView.Resources>
<!-- >> chat-features-defaultitemtemplate-xaml -->
<telerikConversationalUI:RadChat x:Name="chat"
ItemTemplateSelector="{StaticResource MyChatItemTemplateSelector}" />
<!-- << chat-features-defaultitemtemplate-xaml -->
</ContentView>

Просмотреть файл

@ -0,0 +1,20 @@
using Telerik.XamarinForms.ConversationalUI;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace SDKBrowser.Examples.ChatControl.FeaturesCategory.DefaultTemplateSelectorExample
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class DefaultItemTemplateSelector : ContentView
{
public DefaultItemTemplateSelector()
{
InitializeComponent();
var botAuthor = new Author { Name = "botty" };
this.chat.Items.Add(new TextMessage() { Text = "Hi.", Author = botAuthor});
this.chat.Items.Add(new TextMessage() { Text = "How can I help you?", Author = botAuthor });
}
}
}

Просмотреть файл

@ -0,0 +1,65 @@
<?xml version="1.0" encoding="UTF-8"?>
<ContentView xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:telerikDataGrid="clr-namespace:Telerik.XamarinForms.DataGrid;assembly=Telerik.XamarinForms.DataGrid"
xmlns:telerikInput="clr-namespace:Telerik.XamarinForms.Input;assembly=Telerik.XamarinForms.Input"
mc:Ignorable="d"
x:Class="SDKBrowser.Examples.DataGridControl.ColumnsCategory.CellContentTemplateExample.CellContentTemplate">
<ContentView.Content>
<!-- >> datagrid-columns-cellcontenttemplate-xaml -->
<telerikDataGrid:RadDataGrid x:Name="dataGrid"
ItemsSource="{Binding Clubs}"
AutoGenerateColumns="False"
UserEditMode="Cell">
<telerikDataGrid:RadDataGrid.Columns>
<telerikDataGrid:DataGridTextColumn PropertyName="Name"
Width="100"
SizeMode="Fixed"
HeaderText="Name">
<telerikDataGrid:DataGridColumn.CellContentTemplate>
<DataTemplate>
<Label Text="{Binding Name}"
LineBreakMode="TailTruncation"
VerticalOptions="Center"/>
</DataTemplate>
</telerikDataGrid:DataGridColumn.CellContentTemplate>
</telerikDataGrid:DataGridTextColumn>
<telerikDataGrid:DataGridBooleanColumn PropertyName="IsChampion"
HeaderText="Champion?">
<telerikDataGrid:DataGridColumn.CellContentTemplate>
<DataTemplate>
<Switch IsToggled="{Binding IsChampion}"
VerticalOptions="Center"/>
</DataTemplate>
</telerikDataGrid:DataGridColumn.CellContentTemplate>
</telerikDataGrid:DataGridBooleanColumn>
<telerikDataGrid:DataGridDateColumn PropertyName="Established"
HeaderText="Date Established">
<telerikDataGrid:DataGridColumn.CellContentTemplate>
<DataTemplate>
<telerikInput:RadDateTimePicker Date="{Binding Established}"
DisplayStringFormat="yyyy/MMM/dd"
VerticalOptions="Center"/>
</DataTemplate>
</telerikDataGrid:DataGridColumn.CellContentTemplate>
</telerikDataGrid:DataGridDateColumn>
<telerikDataGrid:DataGridTemplateColumn HeaderText="Template Column">
<telerikDataGrid:DataGridColumn.CellContentTemplate>
<DataTemplate>
<Label Text="{Binding Country}"
Margin="0, 5, 0, 5"
HorizontalOptions="Center"
VerticalTextAlignment="Center"/>
</DataTemplate>
</telerikDataGrid:DataGridColumn.CellContentTemplate>
</telerikDataGrid:DataGridTemplateColumn>
</telerikDataGrid:RadDataGrid.Columns>
</telerikDataGrid:RadDataGrid>
<!-- << datagrid-columns-cellcontenttemplate-xaml -->
</ContentView.Content>
</ContentView>

Просмотреть файл

@ -0,0 +1,16 @@
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace SDKBrowser.Examples.DataGridControl.ColumnsCategory.CellContentTemplateExample
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class CellContentTemplate : ContentView
{
public CellContentTemplate()
{
InitializeComponent();
this.BindingContext = new ColumnsViewModel();
}
}
}

Просмотреть файл

@ -0,0 +1,94 @@
<?xml version="1.0" encoding="UTF-8"?>
<ContentView xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:telerikDataGrid="clr-namespace:Telerik.XamarinForms.DataGrid;assembly=Telerik.XamarinForms.DataGrid"
xmlns:telerikInput="clr-namespace:Telerik.XamarinForms.Input;assembly=Telerik.XamarinForms.Input"
xmlns:telerikCommon="clr-namespace:Telerik.XamarinForms.Common;assembly=Telerik.XamarinForms.Common"
xmlns:primitives="clr-namespace:Telerik.XamarinForms.Primitives;assembly=Telerik.XamarinForms.Primitives"
mc:Ignorable="d"
x:Class="SDKBrowser.Examples.DataGridControl.ColumnsCategory.CellEditTemplateExample.CellEditTemplate">
<ContentView.Content>
<!-- >> datagrid-columns-celledittemplate-xaml -->
<telerikDataGrid:RadDataGrid x:Name="dataGrid"
ItemsSource="{Binding Clubs}"
AutoGenerateColumns="False"
SelectionMode="None"
UserEditMode="Cell">
<telerikDataGrid:RadDataGrid.Columns>
<telerikDataGrid:DataGridTextColumn PropertyName="Name"
HeaderText="Name">
<telerikDataGrid:DataGridColumn.CellEditTemplate>
<DataTemplate>
<StackLayout>
<Entry Text="{Binding Item.Name, Mode=TwoWay}" Margin="5">
<VisualElement.Behaviors>
<telerikCommon:RadEventToCommandBehavior EventName="Completed"
Command="{Binding CommitEditCommand}" />
</VisualElement.Behaviors>
</Entry>
<Button Text="Cancel" Command="{Binding CancelEditCommand}" />
</StackLayout>
</DataTemplate>
</telerikDataGrid:DataGridColumn.CellEditTemplate>
</telerikDataGrid:DataGridTextColumn>
<telerikDataGrid:DataGridBooleanColumn PropertyName="IsChampion"
HeaderText="Champion?">
<telerikDataGrid:DataGridColumn.CellEditTemplate>
<DataTemplate>
<StackLayout>
<Switch IsToggled="{Binding Item.IsChampion, Mode=TwoWay}" />
<Button Text="X" Command="{Binding CancelEditCommand}" />
<Button Text="OK" Command="{Binding CommitEditCommand}" />
</StackLayout>
</DataTemplate>
</telerikDataGrid:DataGridColumn.CellEditTemplate>
</telerikDataGrid:DataGridBooleanColumn>
<telerikDataGrid:DataGridNumericalColumn PropertyName="StadiumCapacity">
<telerikDataGrid:DataGridColumn.CellEditTemplate>
<DataTemplate>
<StackLayout Orientation="Horizontal"
BackgroundColor="LightGray">
<Slider Maximum="80000" Minimum="30000"
Value="{Binding Item.StadiumCapacity}"
HorizontalOptions="FillAndExpand" />
<Button Text="X" Command="{Binding CancelEditCommand}" />
<Button Text="OK" Command="{Binding CommitEditCommand}" />
</StackLayout>
</DataTemplate>
</telerikDataGrid:DataGridColumn.CellEditTemplate>
</telerikDataGrid:DataGridNumericalColumn>
<telerikDataGrid:DataGridDateColumn PropertyName="Established"
CellContentFormat="{}{0: yyyy/MMM/dd}">
<telerikDataGrid:DataGridColumn.CellEditTemplate>
<DataTemplate>
<telerikInput:RadDatePicker Date="{Binding Item.Established, Mode=TwoWay}"
DisplayStringFormat="yyyy/MMM/dd">
<telerikInput:RadDatePicker.SelectorSettings>
<telerikInput:PickerPopupSelectorSettings AcceptCommand="{Binding CommitEditCommand}"
CancelCommand="{Binding CancelEditCommand}"/>
</telerikInput:RadDatePicker.SelectorSettings>
</telerikInput:RadDatePicker>
</DataTemplate>
</telerikDataGrid:DataGridColumn.CellEditTemplate>
</telerikDataGrid:DataGridDateColumn>
<telerikDataGrid:DataGridTimeColumn PropertyName="Time">
<telerikDataGrid:DataGridColumn.CellEditTemplate>
<DataTemplate>
<telerikInput:RadTimePicker Time="{Binding Item.Time, Mode=TwoWay}">
<telerikInput:RadTimePicker.SelectorSettings>
<telerikInput:PickerPopupSelectorSettings AcceptCommand="{Binding CommitEditCommand}"
CancelCommand="{Binding CancelEditCommand}"/>
</telerikInput:RadTimePicker.SelectorSettings>
</telerikInput:RadTimePicker>
</DataTemplate>
</telerikDataGrid:DataGridColumn.CellEditTemplate>
</telerikDataGrid:DataGridTimeColumn>
</telerikDataGrid:RadDataGrid.Columns>
</telerikDataGrid:RadDataGrid>
<!-- << datagrid-columns-celledittemplate-xaml -->
</ContentView.Content>
</ContentView>

Просмотреть файл

@ -0,0 +1,16 @@
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace SDKBrowser.Examples.DataGridControl.ColumnsCategory.CellEditTemplateExample
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class CellEditTemplate : ContentView
{
public CellEditTemplate()
{
InitializeComponent();
this.BindingContext = new ColumnsViewModel();
}
}
}

Просмотреть файл

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace SDKBrowser.Examples.DataGridControl.ColumnsCategory.ColumnsExample
namespace SDKBrowser.Examples.DataGridControl.ColumnsCategory
{
// >> datagrid-columns-data
public class Club : INotifyPropertyChanged

Просмотреть файл

@ -1,10 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace SDKBrowser.Examples.DataGridControl.ColumnsCategory.ColumnsExample
@ -15,7 +9,7 @@ namespace SDKBrowser.Examples.DataGridControl.ColumnsCategory.ColumnsExample
public Columns()
{
InitializeComponent();
this.BindingContext = new ViewModel();
this.BindingContext = new ColumnsViewModel();
}
}
}

Просмотреть файл

@ -1,25 +0,0 @@
using System;
using System.Collections.ObjectModel;
namespace SDKBrowser.Examples.DataGridControl.ColumnsCategory.ColumnsExample
{
// >> datagrid-columns-viewmodel
public class ViewModel
{
private ObservableCollection<Club> clubs;
public ObservableCollection<Club> Clubs => clubs ?? (clubs = CreateClubs());
private ObservableCollection<Club> CreateClubs()
{
return new ObservableCollection<Club>
{
new Club("Liverpool", new DateTime(1892, 1, 1), new DateTime(2018, 2, 22, 3, 28, 33), 45362, "England"),
new Club("Manchester Utd.", new DateTime(1878, 1, 1), new DateTime(2018, 1, 1, 2, 56, 44), 76212, "England") { IsChampion = true },
new Club("Chelsea", new DateTime(1905, 1, 1), new DateTime(2018, 6, 17, 6, 19, 59), 42055, "England"),
new Club("Barcelona", new DateTime(1899, 1, 1), new DateTime(2018, 7, 12, 12, 25, 31), 99354, "Spain")
};
}
}
// << datagrid-columns-viewmodel
}

Просмотреть файл

@ -0,0 +1,25 @@
using System;
using System.Collections.ObjectModel;
namespace SDKBrowser.Examples.DataGridControl.ColumnsCategory
{
// >> datagrid-columns-viewmodel
public class ColumnsViewModel
{
private ObservableCollection<Club> clubs;
public ObservableCollection<Club> Clubs => clubs ?? (clubs = CreateClubs());
private ObservableCollection<Club> CreateClubs()
{
return new ObservableCollection<Club>
{
new Club("UK Liverpool ", new DateTime(1892, 1, 1), new DateTime(2018, 2, 22, 3, 28, 33), 45362, "England"),
new Club("Manchester Utd.", new DateTime(1878, 1, 1), new DateTime(2018, 1, 1, 2, 56, 44), 76212, "England") { IsChampion = true },
new Club("Chelsea", new DateTime(1905, 1, 1), new DateTime(2018, 6, 17, 6, 19, 59), 42055, "England"),
new Club("Barcelona", new DateTime(1899, 1, 1), new DateTime(2018, 7, 12, 12, 25, 31), 99354, "Spain")
};
}
}
// << datagrid-columns-viewmodel
}

Просмотреть файл

@ -1,5 +1,6 @@
namespace SDKBrowser.Examples.DataGridControl.FilteringCategory.ProgrammaticFilteringExample
namespace SDKBrowser.Examples.DataGridControl.FilteringCategory
{
// >> datagrid-filtering-column
public class City
{
public City(string name, int population)
@ -11,4 +12,5 @@
public string Name { get; set; }
public int Population { get; set; }
}
// << datagrid-filtering-column
}

Просмотреть файл

@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<ContentView xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:telerikDataGrid="clr-namespace:Telerik.XamarinForms.DataGrid;assembly=Telerik.XamarinForms.DataGrid"
mc:Ignorable="d"
xmlns:local="clr-namespace:SDKBrowser.Examples.DataGridControl.FilteringCategory.FilterTemplateExample"
x:Class="SDKBrowser.Examples.DataGridControl.FilteringCategory.FilterTemplateExample.FilterTemplate">
<ContentView.Content>
<Grid>
<!-- >> datagrid-filtering-templatecolumn -->
<telerikDataGrid:RadDataGrid x:Name="dataGrid"
ItemsSource="{Binding GridSource}"
AutoGenerateColumns="False"
UserEditMode="Cell">
<telerikDataGrid:RadDataGrid.Columns>
<telerikDataGrid:DataGridNumericalColumn PropertyName="Population" />
<telerikDataGrid:DataGridTemplateColumn HeaderText="City">
<telerikDataGrid:DataGridTemplateColumn.CellContentTemplate>
<DataTemplate>
<Label Text="{Binding Name}"/>
</DataTemplate>
</telerikDataGrid:DataGridTemplateColumn.CellContentTemplate>
<telerikDataGrid:DataGridTemplateColumn.FilterControlTemplate>
<DataTemplate>
<local:PopulationFilter PropertyName="Name"/>
</DataTemplate>
</telerikDataGrid:DataGridTemplateColumn.FilterControlTemplate>
</telerikDataGrid:DataGridTemplateColumn>
</telerikDataGrid:RadDataGrid.Columns>
</telerikDataGrid:RadDataGrid>
<!-- << datagrid-filtering-templatecolumn -->
</Grid>
</ContentView.Content>
</ContentView>

Просмотреть файл

@ -0,0 +1,16 @@
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace SDKBrowser.Examples.DataGridControl.FilteringCategory.FilterTemplateExample
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class FilterTemplate : ContentView
{
public FilterTemplate()
{
InitializeComponent();
this.BindingContext = new FilteringViewModel();
}
}
}

Просмотреть файл

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- >> datagrid-filtering-templatecolumn-filteringcontrol-xaml -->
<telerikDataGrid:DataGridFilterControlBase xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
x:Class="SDKBrowser.Examples.DataGridControl.FilteringCategory.FilterTemplateExample.PopulationFilter"
xmlns:telerikDataGrid="clr-namespace:Telerik.XamarinForms.DataGrid;assembly=Telerik.XamarinForms.DataGrid">
<StackLayout Margin="10"
Padding="10"
BackgroundColor="LightGray">
<Picker x:Name="descriptorOperatorPicker"
TextColor="Black" />
<Entry x:Name="textEntry" />
</StackLayout>
</telerikDataGrid:DataGridFilterControlBase>
<!-- << datagrid-filtering-templatecolumn-filteringcontrol-xaml -->

Просмотреть файл

@ -0,0 +1,57 @@
using System.Collections.Generic;
using Telerik.XamarinForms.Common.Data;
using Telerik.XamarinForms.DataGrid;
namespace SDKBrowser.Examples.DataGridControl.FilteringCategory.FilterTemplateExample
{
// >> datagrid-filtering-templatecolumn-filteringcontrol-cs
public partial class PopulationFilter : DataGridFilterControlBase
{
public PopulationFilter()
{
InitializeComponent();
}
public FilterDescriptorBase FilterDescriptor { get; set; }
public override FilterDescriptorBase BuildDescriptor()
{
TextFilterDescriptor textDescriptor = new TextFilterDescriptor();
textDescriptor.PropertyName = this.PropertyName;
textDescriptor.Value = this.textEntry.Text;
textDescriptor.Operator = (TextOperator)this.descriptorOperatorPicker.SelectedItem;
return textDescriptor;
}
protected override void Initialize()
{
this.descriptorOperatorPicker.ItemsSource = this.GetOperators();
var textFilterDescriptor = this.FilterDescriptor as TextFilterDescriptor;
if (textFilterDescriptor != null)
{
this.descriptorOperatorPicker.SelectedIndex = (int)textFilterDescriptor.Operator;
this.textEntry.Text = textFilterDescriptor.Value.ToString();
}
else
{
this.descriptorOperatorPicker.SelectedIndex = 0;
if (!string.IsNullOrEmpty(this.textEntry.Text))
{
this.textEntry.Text = null;
}
}
}
private List<TextOperator> GetOperators()
{
var operators = new List<TextOperator>
{
TextOperator.Contains,
TextOperator.DoesNotContain,
TextOperator.StartsWith,
TextOperator.EndsWith,
};
return operators;
}
}
// << datagrid-filtering-templatecolumn-filteringcontrol-cs
}

Просмотреть файл

@ -3,11 +3,12 @@ using System.Collections;
using System.Collections.ObjectModel;
using Telerik.XamarinForms.Common.Data;
namespace SDKBrowser.Examples.DataGridControl.FilteringCategory.ProgrammaticFilteringExample
namespace SDKBrowser.Examples.DataGridControl.FilteringCategory
{
public class ViewModel
// >> datagrid-filtering-viewmodel
public class FilteringViewModel
{
public ViewModel()
public FilteringViewModel()
{
var source = new ObservableCollection<City>();
source.Add(new City("Vratsa", 54150));
@ -32,4 +33,5 @@ namespace SDKBrowser.Examples.DataGridControl.FilteringCategory.ProgrammaticFilt
public IList TextOperatorSource { get; set; }
public IList NumericalOperatorSource { get; set; }
}
// << datagrid-filtering-viewmodel
}

Просмотреть файл

@ -15,7 +15,7 @@ namespace SDKBrowser.Examples.DataGridControl.FilteringCategory.ProgrammaticFilt
{
this.InitializeComponent();
this.BindingContext = new ViewModel();
this.BindingContext = new FilteringViewModel();
this.textOperatorPicker.SelectedItem = TextOperator.StartsWith;
this.numericalOperatorPicker.SelectedItem = NumericalOperator.IsGreaterThan;

Просмотреть файл

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<ContentView xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:telerikDataGrid="clr-namespace:Telerik.XamarinForms.DataGrid;assembly=Telerik.XamarinForms.DataGrid"
mc:Ignorable="d"
x:Class="SDKBrowser.Examples.DataGridControl.GroupingCategory.DelegateGroupDescriptorExample.DelegateGroupDescriptorGroups">
<telerikDataGrid:RadDataGrid x:Name="dataGrid"
ItemsSource="{Binding People}" />
</ContentView>

Просмотреть файл

@ -0,0 +1,32 @@
using Telerik.XamarinForms.Common.Data;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace SDKBrowser.Examples.DataGridControl.GroupingCategory.DelegateGroupDescriptorExample
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class DelegateGroupDescriptorGroups : ContentView
{
public DelegateGroupDescriptorGroups()
{
InitializeComponent();
this.BindingContext = new ViewModel();
// >> datagrid-grouping-delegategroupdescriptor
this.dataGrid.GroupDescriptors.Add(new DelegateGroupDescriptor() { KeyLookup = new CustomIKeyLookup() });
// << datagrid-grouping-delegategroupdescriptor
}
}
// >> datagrid-grouping-delegategroupdescriptor-lookup
class CustomIKeyLookup : Telerik.XamarinForms.Common.Data.IKeyLookup
{
public object GetKey(object instance)
{
var item = instance as Person;
return item?.Name[0];
}
}
// << datagrid-grouping-delegategroupdescriptor-lookup
}

Просмотреть файл

@ -0,0 +1,9 @@
namespace SDKBrowser.Examples.DataGridControl.GroupingCategory.DelegateGroupDescriptorExample
{
public class Person
{
public string Name { get; set; }
public int Age { get; set; }
public string Department { get; set; }
}
}

Просмотреть файл

@ -0,0 +1,25 @@
using System.Collections.ObjectModel;
namespace SDKBrowser.Examples.DataGridControl.GroupingCategory.DelegateGroupDescriptorExample
{
public class ViewModel
{
public ViewModel()
{
this.People = new ObservableCollection<Person>()
{
new Person { Name = "Kiko", Age = 23, Department = "Production" },
new Person { Name = "Jerry", Age = 23, Department = "Accounting and Finance"},
new Person { Name = "Ethan", Age = 51, Department = "Marketing" },
new Person { Name = "Isabella", Age = 25, Department = "Marketing" },
new Person { Name = "Joshua", Age = 45, Department = "Production" },
new Person { Name = "Logan", Age = 26, Department = "Production"},
new Person { Name = "Aaron", Age = 32, Department = "Production" },
new Person { Name = "Elena", Age = 37, Department = "Accounting and Finance"},
new Person { Name = "Ross", Age = 30, Department = "Marketing" },
};
}
public ObservableCollection<Person> People { get; set; }
}
}

Просмотреть файл

@ -0,0 +1,11 @@
namespace SDKBrowser.Examples.DataGridControl.GroupingCategory.PropertyGroupDescriptorExample
{
// >> datagrid-grouping-propertygroupdescriptor-object
public class Person
{
public string Name { get; set; }
public int Age { get; set; }
public string Department { get; set; }
}
// << datagrid-grouping-propertygroupdescriptor-object
}

Просмотреть файл

@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<ContentView xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:telerikDataGrid="clr-namespace:Telerik.XamarinForms.DataGrid;assembly=Telerik.XamarinForms.DataGrid"
xmlns:telerikCommon="clr-namespace:Telerik.XamarinForms.Common.Data;assembly=Telerik.XamarinForms.Common"
mc:Ignorable="d"
x:Class="SDKBrowser.Examples.DataGridControl.GroupingCategory.PropertyGroupDescriptorExample.PropertyGroupDescriptor">
<!-- >> datagrid-grouping-groupheadertemplate -->
<telerikDataGrid:RadDataGrid x:Name="dataGrid"
ItemsSource="{Binding People}">
<telerikDataGrid:RadDataGrid.GroupDescriptors>
<telerikCommon:PropertyGroupDescriptor PropertyName="Department"/>
</telerikDataGrid:RadDataGrid.GroupDescriptors>
<telerikDataGrid:RadDataGrid.GroupHeaderTemplate>
<DataTemplate>
<StackLayout Orientation="Horizontal"
Margin="5,0,0,0"
VerticalOptions="Center" >
<Label Text="Employees working in: "
TextColor="DarkBlue"
FontSize="Small" />
<Label Text="{Binding Group.Key}"
FontAttributes="Bold"
TextColor="DarkBlue"
FontSize="Small" />
</StackLayout>
</DataTemplate>
</telerikDataGrid:RadDataGrid.GroupHeaderTemplate>
</telerikDataGrid:RadDataGrid>
<!-- << datagrid-grouping-groupheadertemplate -->
</ContentView>

Просмотреть файл

@ -0,0 +1,18 @@
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace SDKBrowser.Examples.DataGridControl.GroupingCategory.PropertyGroupDescriptorExample
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class PropertyGroupDescriptor : ContentView
{
public PropertyGroupDescriptor()
{
InitializeComponent();
// >> datagrid-grouping-propertygroupdescriptor-setvm
this.BindingContext = new ViewModel();
// << datagrid-grouping-propertygroupdescriptor-setvm
}
}
}

Просмотреть файл

@ -0,0 +1,27 @@
using System.Collections.ObjectModel;
namespace SDKBrowser.Examples.DataGridControl.GroupingCategory.PropertyGroupDescriptorExample
{
// >> datagrid-grouping-propertygroupdescriptor-viewmodel
public class ViewModel
{
public ViewModel()
{
this.People = new ObservableCollection<Person>()
{
new Person { Name = "Kiko", Age = 23, Department = "Production" },
new Person { Name = "Jerry", Age = 23, Department = "Accounting and Finance"},
new Person { Name = "Ethan", Age = 51, Department = "Marketing" },
new Person { Name = "Isabella", Age = 25, Department = "Marketing" },
new Person { Name = "Joshua", Age = 45, Department = "Production" },
new Person { Name = "Logan", Age = 26, Department = "Production"},
new Person { Name = "Aaron", Age = 32, Department = "Production" },
new Person { Name = "Elena", Age = 37, Department = "Accounting and Finance"},
new Person { Name = "Ross", Age = 30, Department = "Marketing" },
};
}
public ObservableCollection<Person> People { get; set; }
}
// << datagrid-grouping-propertygroupdescriptor-viewmodel
}

Просмотреть файл

@ -0,0 +1,11 @@
namespace SDKBrowser.Examples.DataGridControl.SelectionCategory
{
// >> datagrid-selection-object
public class Person
{
public string Name { get; set; }
public int Age { get; set; }
public string Department { get; set; }
}
// << datagrid-selection-object
}

Просмотреть файл

@ -1,17 +1,14 @@
<?xml version="1.0" encoding="utf-8" ?>
<ContentView xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:grid="clr-namespace:Telerik.XamarinForms.DataGrid;assembly=Telerik.XamarinForms.DataGrid"
xmlns:telerikDataGrid="clr-namespace:Telerik.XamarinForms.DataGrid;assembly=Telerik.XamarinForms.DataGrid"
x:Class="SDKBrowser.Examples.DataGridControl.SelectionCategory.ProgrammaticSelectionExample.ProgrammaticSelection">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
@ -20,7 +17,6 @@
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Label Text="Selection Mode:"
Grid.ColumnSpan="2" />
<Label Text="Selection Unit:"
@ -36,44 +32,25 @@
SelectedItem="{Binding SelectedUnit}"
Grid.Row="1" Grid.Column="2"
Grid.ColumnSpan="2" />
<Label Text="Choose item:"
Grid.Row="2" />
<Label Text="Choose column:"
Grid.Row="2"
Grid.Column="1" />
<Picker x:Name="siPicker"
ItemsSource="{Binding SelectedIndexSource}"
SelectedItem="{Binding SelectedIndex}"
Grid.Row="3" />
<Picker x:Name="cPicker"
ItemsSource="{Binding SelectedColumnIndexSource}"
SelectedItem="{Binding SelectedColumn}"
IsEnabled="{Binding IsPickerEnabled}"
Grid.Row="3"
Grid.Column="1"/>
<Button Clicked="SelectItem"
Text="Select"
Grid.Row="3"
Grid.Column="2" />
<Button Clicked="DeselectItem"
Text="Deselect"
Grid.Row="3"
Grid.Column="3" />
<Button Clicked="SelectAll"
<Button Text="Select first employee from Marketing"
Clicked="SelectItemClick"
Grid.Row="2"
Grid.ColumnSpan="4"/>
<Button Clicked="SelectAllClick"
Text="Select All"
Grid.Row="4"
IsEnabled="{Binding IsSelectAllEnabled, Mode=TwoWay}"
Grid.Row="3"
Grid.ColumnSpan="2" />
<Button Clicked="DeselectAll"
<Button Clicked="DeselectAllClick"
Text="Deselect All"
Grid.Row="4"
Grid.Row="3"
Grid.Column="2"
Grid.ColumnSpan="2" />
<grid:RadDataGrid x:Name="grid"
ItemsSource="{Binding GridSource}"
Grid.Row="5"
Grid.ColumnSpan="4"
SelectionMode="{Binding SelectedMode}"
SelectionUnit="{Binding SelectedUnit}"/>
<telerikDataGrid:RadDataGrid x:Name="dataGrid"
ItemsSource="{Binding GridSource}"
Grid.Row="4"
Grid.ColumnSpan="4"
SelectionMode="{Binding SelectedMode}"
SelectionUnit="{Binding SelectedUnit}" />
</Grid>
</ContentView>

Просмотреть файл

@ -1,4 +1,6 @@
using System;
using System.Collections.ObjectModel;
using System.Linq;
using Telerik.XamarinForms.DataGrid;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
@ -12,58 +14,39 @@ namespace SDKBrowser.Examples.DataGridControl.SelectionCategory.ProgrammaticSele
{
this.InitializeComponent();
// >> datagrid-selection-setvm
this.BindingContext = new ViewModel();
// << datagrid-selection-setvm
}
private void SelectItem(object sender, EventArgs e)
private void SelectItemClick(object sender, EventArgs e)
{
this.SelectItem(true);
}
private void DeselectItem(object sender, EventArgs e)
{
this.SelectItem(false);
}
private void SelectItem(bool select)
{
var source = (this.BindingContext as ViewModel).GridSource;
var selectedItem = source[this.siPicker.SelectedIndex];
if (this.grid.SelectionUnit == DataGridSelectionUnit.Row)
if(this.dataGrid.SelectionUnit == DataGridSelectionUnit.Row)
{
if(select)
{
this.grid.SelectItem(selectedItem);
}
else
{
this.grid.DeselectItem(selectedItem);
}
// >> datagrid-selection-selectitem
var firstMarketingItem = ((ObservableCollection<Person>)this.dataGrid.ItemsSource).First(p => p.Department == "Marketing");
this.dataGrid.SelectItem(firstMarketingItem);
// << datagrid-selection-selectitem
}
else
{
var selectedColumn = this.grid.Columns[this.cPicker.SelectedIndex];
if(select)
{
this.grid.SelectCell(new DataGridCellInfo(selectedItem, selectedColumn));
}
else
{
this.grid.DeselectCell(new DataGridCellInfo(selectedItem, selectedColumn));
}
// >> datagrid-selection-selectcell
var firstMarketingCell = ((ObservableCollection<Person>)this.dataGrid.ItemsSource).First(p => p.Department == "Marketing");
this.dataGrid.SelectCell(new DataGridCellInfo(firstMarketingCell, this.dataGrid.Columns[2]));
// << datagrid-selection-selectcell
}
}
private void SelectAll(object sender, EventArgs e)
private void SelectAllClick(object sender, EventArgs e)
{
this.grid.SelectAll();
// >> datagrid-selection-selectall
this.dataGrid.SelectAll();
// << datagrid-selection-selectall
}
private void DeselectAll(object sender, EventArgs e)
private void DeselectAllClick(object sender, EventArgs e)
{
this.grid.DeselectAll();
this.dataGrid.DeselectAll();
}
}
}

Просмотреть файл

@ -1,8 +1,7 @@
using System;
using SDKBrowser.ViewModels;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using SDKBrowser.ViewModels;
using System.Collections.ObjectModel;
using Telerik.XamarinForms.DataGrid;
namespace SDKBrowser.Examples.DataGridControl.SelectionCategory
@ -10,36 +9,35 @@ namespace SDKBrowser.Examples.DataGridControl.SelectionCategory
public class ViewModel : ViewModelBase
{
private DataGridSelectionMode selectedMode;
private DataGridSelectionUnit selectedUnit;
private int selectedIndex;
private int selectedColumn;
private bool isPickerEnabled;
private DataGridSelectionUnit selectedUnit;
private bool isSelectAllEnabled;
public ViewModel()
{
var source = new List<Person>();
for (int i = 18; i < 70; i++)
{
this.GridSource = new ObservableCollection<Person>()
{
source.Add(new Person() { Age = i, Name = "Name + " + i });
}
this.GridSource = source;
new Person { Name = "Kiko", Age = 23, Department = "Production" },
new Person { Name = "Jerry", Age = 23, Department = "Accounting & Finance"},
new Person { Name = "Ethan", Age = 51, Department = "Marketing" },
new Person { Name = "Isabella", Age = 25, Department = "Marketing" },
new Person { Name = "Joshua", Age = 45, Department = "Production" },
new Person { Name = "Logan", Age = 26, Department = "Production"},
new Person { Name = "Aaron", Age = 32, Department = "Production" },
new Person { Name = "Elena", Age = 37, Department = "Accounting & Finance"},
new Person { Name = "Ross", Age = 30, Department = "Marketing" }
};
this.SelectionModeSource = Enum.GetValues(typeof(DataGridSelectionMode));
this.SelectionUnitSource = Enum.GetValues(typeof(DataGridSelectionUnit));
this.SelectedColumnIndexSource = Enumerable.Range(0, 3).Select(y => y).ToList();
this.SelectedIndexSource = Enumerable.Range(0, source.Count).Select(x => x).ToList();
this.SelectedMode = DataGridSelectionMode.Single;
this.SelectedUnit = DataGridSelectionUnit.Cell;
this.SelectedColumn = 0;
this.SelectedIndex = 0;
}
public IList GridSource { get; set; }
public ObservableCollection<Person> GridSource { get; set; }
public IList SelectionModeSource { get; set; }
public IList SelectionUnitSource { get; set; }
public IList SelectedIndexSource { get; set; }
public IList SelectedColumnIndexSource { get; set; }
public DataGridSelectionMode SelectedMode
{
get
@ -51,6 +49,7 @@ namespace SDKBrowser.Examples.DataGridControl.SelectionCategory
if (this.selectedMode != value)
{
this.selectedMode = value;
this.IsSelectAllEnabled = this.selectedMode == DataGridSelectionMode.Multiple;
this.OnPropertyChanged("SelectedMode");
}
}
@ -67,56 +66,23 @@ namespace SDKBrowser.Examples.DataGridControl.SelectionCategory
if (this.selectedUnit != value)
{
this.selectedUnit = value;
this.IsPickerEnabled = this.selectedUnit != DataGridSelectionUnit.Row;
this.OnPropertyChanged("SelectedUnit");
}
}
}
public int SelectedIndex
public bool IsSelectAllEnabled
{
get
{
return this.selectedIndex;
return this.isSelectAllEnabled;
}
set
{
if (this.selectedIndex != value)
if (this.isSelectAllEnabled != value)
{
this.selectedIndex = value;
this.OnPropertyChanged("SelectedIndex");
}
}
}
public int SelectedColumn
{
get
{
return this.selectedColumn;
}
set
{
if (this.selectedColumn != value)
{
this.selectedColumn = value;
this.OnPropertyChanged("SelectedColumn");
}
}
}
public bool IsPickerEnabled
{
get
{
return this.isPickerEnabled;
}
set
{
if (this.isPickerEnabled != value)
{
this.isPickerEnabled = value;
this.OnPropertyChanged("IsPickerEnabled");
this.isSelectAllEnabled = value;
this.OnPropertyChanged("IsSelectAllEnabled");
}
}
}

Просмотреть файл

@ -0,0 +1,73 @@
<?xml version="1.0" encoding="UTF-8"?>
<ContentView xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:telerikInput="clr-namespace:Telerik.XamarinForms.Input;assembly=Telerik.XamarinForms.Input"
mc:Ignorable="d"
x:Class="SDKBrowser.Examples.DatePickerControl.FeaturesCategory.CustomTemplatesExample.CustomTemplates">
<ContentView.Resources>
<ResourceDictionary>
<!-- >> datepicker-placeholder-template -->
<ControlTemplate x:Key="placeholderTemplate">
<Button Text="{TemplateBinding Placeholder}"
FontAttributes="Bold"
TextColor="White"
BackgroundColor="#B73562"
HeightRequest="50" Command="{TemplateBinding ToggleCommand}" />
</ControlTemplate>
<!-- << datepicker-placeholder-template -->
<!-- >> datepicker-display-template -->
<ControlTemplate x:Key="displayTemplate">
<Button Text="{TemplateBinding DisplayString}"
TextColor="White"
BackgroundColor="#7BAEFF"
HeightRequest="50"
Command="{TemplateBinding ToggleCommand}" />
</ControlTemplate>
<!-- << datepicker-display-template -->
<!-- >> datepicker-header-template -->
<ControlTemplate x:Key="headerTemplate">
<Label Text="Date Picker"
TextColor="White"
VerticalTextAlignment="Center"
HorizontalTextAlignment="Center"
BackgroundColor="#B73562"/>
</ControlTemplate>
<!-- << datepicker-header-template -->
<!-- >> datepicker-footer-template -->
<ControlTemplate x:Key="footerTemplate">
<StackLayout Orientation="Horizontal" Spacing="0" HorizontalOptions="FillAndExpand" BackgroundColor="#B73562">
<Button Text="Cancel"
TextColor="White"
BackgroundColor="Transparent"
Command="{TemplateBinding CancelCommand}" />
<Button Text="OK"
TextColor="White"
BackgroundColor="Transparent"
Command="{TemplateBinding AcceptCommand}" />
</StackLayout>
</ControlTemplate>
<!-- << datepicker-footer-template -->
</ResourceDictionary>
</ContentView.Resources>
<StackLayout>
<!-- >> datepicker-custom-templates -->
<telerikInput:RadDatePicker MinimumDate="2020,01,1"
MaximumDate="2025,12,31"
SpinnerFormat="MMM/dd/yyyy"
PlaceholderTemplate="{StaticResource placeholderTemplate}"
DisplayTemplate="{StaticResource displayTemplate}">
<telerikInput:RadDatePicker.SelectorSettings>
<telerikInput:PickerPopupSelectorSettings HeaderTemplate="{StaticResource headerTemplate}"
HeaderLabelText="This is the Header Template"
FooterTemplate="{StaticResource footerTemplate}"/>
</telerikInput:RadDatePicker.SelectorSettings>
</telerikInput:RadDatePicker>
<!-- << datepicker-custom-templates -->
</StackLayout>
</ContentView>

Просмотреть файл

@ -0,0 +1,14 @@
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace SDKBrowser.Examples.DatePickerControl.FeaturesCategory.CustomTemplatesExample
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class CustomTemplates : ContentView
{
public CustomTemplates()
{
InitializeComponent();
}
}
}

Просмотреть файл

@ -0,0 +1,103 @@
<?xml version="1.0" encoding="UTF-8"?>
<ContentView xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:telerikInput="clr-namespace:Telerik.XamarinForms.Input;assembly=Telerik.XamarinForms.Input"
xmlns:telerikPrimitives="clr-namespace:Telerik.XamarinForms.Primitives;assembly=Telerik.XamarinForms.Primitives"
mc:Ignorable="d"
x:Class="SDKBrowser.Examples.DatePickerControl.FeaturesCategory.DefaultTemplatesExample.DefaultTemplates">
<ContentView.Resources>
<ResourceDictionary>
<!-- >> datepicker-placeholder-default-template -->
<ControlTemplate x:Key="Picker_PlaceholderView_ControlTemplate">
<Grid>
<Grid.GestureRecognizers>
<TapGestureRecognizer Command="{TemplateBinding ToggleCommand}" />
</Grid.GestureRecognizers>
<Label Text="{TemplateBinding Placeholder}"
Style="{TemplateBinding PlaceholderLabelStyle}"
AutomationId="PickerPlaceholderLabel"/>
</Grid>
</ControlTemplate>
<!-- << datepicker-placeholder-default-template -->
<!-- >> datepicker-display-default-template -->
<ControlTemplate x:Key="Picker_DisplayView_ControlTemplate">
<Grid>
<Grid.GestureRecognizers>
<TapGestureRecognizer Command="{TemplateBinding ToggleCommand}" />
</Grid.GestureRecognizers>
<Label Text="{TemplateBinding DisplayString}"
Style="{TemplateBinding DisplayLabelStyle}"
AutomationId="PickerDisplayLabel"/>
</Grid>
</ControlTemplate>
<!-- << datepicker-display-default-template -->
<!-- >> datepicker-header-default-template -->
<ControlTemplate x:Key="PopupView_Header_ControlTemplate">
<telerikPrimitives:RadBorder BackgroundColor="{TemplateBinding BackgroundColor}"
BorderColor="{TemplateBinding BorderColor}"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="{TemplateBinding CornerRadius}">
<Label Text="{TemplateBinding HeaderLabelText}"
Style="{TemplateBinding HeaderLabelStyle}"
AutomationId="PickerPopupHeaderLabel"/>
</telerikPrimitives:RadBorder>
</ControlTemplate>
<!-- << datepicker-header-default-template -->
<!-- >> datepicker-footer-default-template -->
<ControlTemplate x:Key="PopupView_Footer_ControlTemplate">
<telerikPrimitives:RadBorder BackgroundColor="{TemplateBinding BackgroundColor}"
BorderColor="{TemplateBinding BorderColor}"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="{TemplateBinding CornerRadius}">
<OnPlatform x:TypeArguments="View">
<On Platform="Android, iOS">
<StackLayout Orientation="Horizontal" Spacing="0" HorizontalOptions="End">
<Button Text="{TemplateBinding CancelButtonText}"
Style="{TemplateBinding CancelButtonStyle}"
Command="{TemplateBinding CancelCommand}"
AutomationId="PickerPopupCancelButton"/>
<Button Text="{TemplateBinding AcceptButtonText}"
Style="{TemplateBinding AcceptButtonStyle}"
Command="{TemplateBinding AcceptCommand}"
AutomationId="PickerPopupOkButton"/>
</StackLayout>
</On>
<On Platform="UWP">
<StackLayout Orientation="Horizontal" Spacing="0" HorizontalOptions="End">
<Button Text="{TemplateBinding AcceptButtonText}"
Style="{TemplateBinding AcceptButtonStyle}"
Command="{TemplateBinding AcceptCommand}"
AutomationId="PickerPopupOkButton"/>
<Button Text="{TemplateBinding CancelButtonText}"
Style="{TemplateBinding CancelButtonStyle}"
Command="{TemplateBinding CancelCommand}"
AutomationId="PickerPopupCancelButton"/>
</StackLayout>
</On>
</OnPlatform>
</telerikPrimitives:RadBorder>
</ControlTemplate>
<!-- << datepicker-footer-default-template -->
</ResourceDictionary>
</ContentView.Resources>
<ContentView.Content>
<StackLayout>
<telerikInput:RadDatePicker MinimumDate="2020,01,1"
MaximumDate="2025,12,31"
SpinnerFormat="MMM/dd/yyyy"
PlaceholderTemplate="{StaticResource Picker_PlaceholderView_ControlTemplate}"
DisplayTemplate="{StaticResource Picker_DisplayView_ControlTemplate}">
<telerikInput:RadDatePicker.SelectorSettings>
<telerikInput:PickerPopupSelectorSettings HeaderTemplate="{StaticResource PopupView_Header_ControlTemplate}"
HeaderLabelText="Date Picker"
FooterTemplate="{StaticResource PopupView_Footer_ControlTemplate}"/>
</telerikInput:RadDatePicker.SelectorSettings>
</telerikInput:RadDatePicker>
</StackLayout>
</ContentView.Content>
</ContentView>

Просмотреть файл

@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace SDKBrowser.Examples.DatePickerControl.FeaturesCategory.DefaultTemplatesExample
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class DefaultTemplates : ContentView
{
public DefaultTemplates()
{
InitializeComponent();
}
}
}

Просмотреть файл

@ -0,0 +1,42 @@
<?xml version="1.0" encoding="UTF-8"?>
<ContentView xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:telerikInput="clr-namespace:Telerik.XamarinForms.Input;assembly=Telerik.XamarinForms.Input"
mc:Ignorable="d"
x:Class="SDKBrowser.Examples.DatePickerControl.FeaturesCategory.KeyFeaturesExample.KeyFeatures">
<ContentView.Resources>
<ResourceDictionary>
<Style TargetType="Label" x:Key="labelStyle">
<Setter Property="FontAttributes" Value="Bold"/>
<Setter Property="FontSize" Value="14"/>
<Setter Property="Margin" Value="0,10,0,0"/>
</Style>
</ResourceDictionary>
</ContentView.Resources>
<ContentView.Content>
<StackLayout>
<Label Text="Date Picker with minimum date and maximum date properties" Style="{StaticResource labelStyle}"/>
<!-- >> datepicker-keyfeatures-minmaxdate -->
<telerikInput:RadDatePicker MinimumDate="2020,1,1"
MaximumDate="2020,12,31"
DisplayStringFormat="yyy-ddd-MMM"/>
<!-- << datepicker-keyfeatures-minmaxdate -->
<Label Text="Date Picker with selected date" Style="{StaticResource labelStyle}"/>
<!-- >> datepicker-keyfeatures-date-spinnerformat -->
<telerikInput:RadDatePicker Date="2020,05,15"
SpinnerFormat="yyy-MMM"/>
<!-- << datepicker-keyfeatures-date-spinnerformat -->
<Label Text="Date Picker with default highlighted date and hidden spinner headers" Style="{StaticResource labelStyle}"/>
<!-- >> datepicker-keyfeatures-date-defaulthighlighted -->
<telerikInput:RadDatePicker DefaultHighlightedDate="2020,05,15"
DisplayStringFormat="yyyy/MMM/dd"
Placeholder="Pick a date!"
SpinnerFormat="dd/MMM/yyyy"
AreSpinnerHeadersVisible="False"/>
<!-- << datepicker-keyfeatures-date-defaulthighlighted -->
</StackLayout>
</ContentView.Content>
</ContentView>

Просмотреть файл

@ -0,0 +1,14 @@
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace SDKBrowser.Examples.DatePickerControl.FeaturesCategory.KeyFeaturesExample
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class KeyFeatures : ContentView
{
public KeyFeatures()
{
InitializeComponent();
}
}
}

Просмотреть файл

@ -0,0 +1,146 @@
<?xml version="1.0" encoding="UTF-8"?>
<ContentView xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:telerikInput="clr-namespace:Telerik.XamarinForms.Input;assembly=Telerik.XamarinForms.Input"
xmlns:telerikDataControls="clr-namespace:Telerik.XamarinForms.DataControls;assembly=Telerik.XamarinForms.DataControls"
xmlns:telerikPrimitives="clr-namespace:Telerik.XamarinForms.Primitives;assembly=Telerik.XamarinForms.Primitives"
mc:Ignorable="d"
x:Class="SDKBrowser.Examples.DatePickerControl.FeaturesCategory.StylingExample.Styling">
<ContentView.Resources>
<ResourceDictionary>
<!-- >> datepicker-style-spinner-header-style -->
<Style TargetType="Label" x:Key="spinnerHeaderStyle">
<Setter Property="TextColor" Value="Black"/>
<Setter Property="FontAttributes" Value="Bold"/>
<Setter Property="HorizontalOptions" Value="FillAndExpand"/>
<Setter Property="VerticalOptions" Value="FillAndExpand"/>
<Setter Property="HorizontalTextAlignment" Value="Center"/>
<Setter Property="VerticalTextAlignment" Value="Center"/>
</Style>
<!-- << datepicker-style-spinner-header-style -->
<!-- >> datepicker-style-spinner-style -->
<Style TargetType="telerikDataControls:RadSpinner" x:Key="spinnerStyle">
<Setter Property="ItemStyle">
<Setter.Value>
<Style TargetType="telerikDataControls:SpinnerItemView">
<Setter Property="TextColor" Value="#4A4949"/>
</Style>
</Setter.Value>
</Setter>
<Setter Property="SelectedItemStyle">
<Setter.Value>
<Style TargetType="telerikDataControls:SpinnerItemView">
<Setter Property="TextColor" Value="Black"/>
<Setter Property="FontAttributes" Value="Bold"/>
</Style>
</Setter.Value>
</Setter>
</Style>
<!-- << datepicker-style-spinner-style -->
<!-- >> datepicker-style-selection-highlight-style -->
<Style TargetType="telerikPrimitives:RadBorder" x:Key="selectionHighlightStyle">
<Setter Property="BorderColor" Value="#00B5DC"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="Padding" Value="0,6,0,6"/>
<Setter Property="HeightRequest" Value="40"/>
<Setter Property="VerticalOptions" Value="Center"/>
</Style>
<!-- << datepicker-style-selection-highlight-style -->
<!-- >> datepicker-style-display-label-style -->
<Style TargetType="Label" x:Key="displayLabelStyle">
<Setter Property="TextColor" Value="Black"/>
<Setter Property="VerticalTextAlignment" Value="Center"/>
<Setter Property="HorizontalTextAlignment" Value="Center"/>
<Setter Property="HeightRequest" Value="50"/>
</Style>
<!-- << datepicker-style-display-label-style -->
<!-- >> datepicker-style-placeholder-label-style -->
<Style TargetType="Label" x:Key="placeholderLabelStyle">
<Setter Property="TextColor" Value="#4A4949"/>
<Setter Property="VerticalTextAlignment" Value="Center"/>
<Setter Property="HorizontalTextAlignment" Value="Center"/>
<Setter Property="HeightRequest" Value="50"/>
</Style>
<!-- << datepicker-style-placeholder-label-style -->
<!-- >> datepicker-style-header-style -->
<Style TargetType="telerikInput:PickerPopupHeaderView" x:Key="headerStyle">
<Setter Property="BackgroundColor" Value="#00B5DC"/>
<Setter Property="HeightRequest" Value="60"/>
<Setter Property="Margin" Value="0"/>
<Setter Property="Padding" Value="0"/>
<Setter Property="HorizontalOptions" Value="FillAndExpand"/>
<Setter Property="VerticalOptions" Value="FillAndExpand"/>
</Style>
<!-- << datepicker-style-header-style -->
<!-- >> datepicker-style-header-label-style -->
<Style TargetType="Label" x:Key="headerLabelStyle">
<Setter Property="TextColor" Value="White"/>
<Setter Property="HorizontalOptions" Value="Center"/>
<Setter Property="VerticalOptions" Value="Center"/>
<Setter Property="FontSize" Value="Title"/>
</Style>
<!-- << datepicker-style-header-label-style -->
<!-- >> datepicker-style-footer-style -->
<Style TargetType="telerikInput:PickerPopupFooterView" x:Key="footerStyle">
<Setter Property="BackgroundColor" Value="Transparent"/>
</Style>
<!-- << datepicker-style-footer-style -->
<!-- >> datepicker-style-popupview-style -->
<Style TargetType="telerikInput:PickerPopupContentView" x:Key="popupViewStyle">
<Setter Property="BackgroundColor" Value="White"/>
<Setter Property="WidthRequest" Value="270"/>
</Style>
<!-- << datepicker-style-popupview-style -->
<!-- >> datepicker-style-accept-button-style -->
<Style TargetType="Button" x:Key="acceptButtonStyle">
<Setter Property="BackgroundColor" Value="Transparent"/>
<Setter Property="Text" Value="OK"/>
<Setter Property="TextColor" Value="#00B5DC"/>
</Style>
<!-- << datepicker-style-accept-button-style -->
<!-- >> datepicker-style-cancel-button-style -->
<Style TargetType="Button" x:Key="cancelButtonStyle">
<Setter Property="BackgroundColor" Value="Transparent"/>
<Setter Property="Text" Value="X"/>
<Setter Property="TextColor" Value="#00B5DC"/>
</Style>
<!-- << datepicker-style-cancel-button-style -->
</ResourceDictionary>
</ContentView.Resources>
<StackLayout>
<!-- >> datepicker-style -->
<telerikInput:RadDatePicker SpinnerHeaderStyle="{StaticResource spinnerHeaderStyle}"
SpinnerStyle="{StaticResource spinnerStyle}"
SelectionHighlightStyle="{StaticResource selectionHighlightStyle}"
DisplayLabelStyle="{StaticResource displayLabelStyle}"
PlaceholderLabelStyle="{StaticResource placeholderLabelStyle}"
DefaultHighlightedDate="2020,05,15"
SpinnerFormat="yyy/MMM/dd"
DisplayStringFormat="yyyy/MMM/dd">
<telerikInput:RadDatePicker.SelectorSettings>
<telerikInput:PickerPopupSelectorSettings PopupOutsideBackgroundColor="#D9D9D9CC"
PopupViewStyle="{StaticResource popupViewStyle}"
HeaderStyle="{StaticResource headerStyle}"
HeaderLabelText="Date Picker"
HeaderLabelStyle="{StaticResource headerLabelStyle}"
FooterStyle="{StaticResource footerStyle}"
AcceptButtonStyle="{StaticResource acceptButtonStyle}"
CancelButtonStyle="{StaticResource cancelButtonStyle}"/>
</telerikInput:RadDatePicker.SelectorSettings>
</telerikInput:RadDatePicker>
<!-- << datepicker-style -->
</StackLayout>
</ContentView>

Просмотреть файл

@ -0,0 +1,14 @@
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace SDKBrowser.Examples.DatePickerControl.FeaturesCategory.StylingExample
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class Styling : ContentView
{
public Styling()
{
InitializeComponent();
}
}
}

Просмотреть файл

@ -0,0 +1,18 @@
using Telerik.XamarinForms.Input;
using Xamarin.Forms;
namespace SDKBrowser.Examples.DatePickerControl.GettingStartedCategory.GettingStartedExample
{
public class DatePickerGettingStartedCSharp : ContentView
{
public DatePickerGettingStartedCSharp()
{
// >> datepicker-getting-started-csharp
var datePicker = new RadDatePicker();
// << datepicker-getting-started-csharp
var panel = new StackLayout();
panel.Children.Add(datePicker);
this.Content = panel;
}
}
}

Просмотреть файл

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<ContentView xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:telerikInput="clr-namespace:Telerik.XamarinForms.Input;assembly=Telerik.XamarinForms.Input"
mc:Ignorable="d"
x:Class="SDKBrowser.Examples.DatePickerControl.GettingStartedCategory.GettingStartedExample.DatePickerGettingStartedXaml">
<ContentView.Content>
<StackLayout>
<!-- >> datepicker-getting-started-xaml -->
<telerikInput:RadDatePicker />
<!-- << datepicker-getting-started-xaml -->
</StackLayout>
</ContentView.Content>
</ContentView>

Просмотреть файл

@ -0,0 +1,14 @@
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace SDKBrowser.Examples.DatePickerControl.GettingStartedCategory.GettingStartedExample
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class DatePickerGettingStartedXaml : ContentView
{
public DatePickerGettingStartedXaml()
{
InitializeComponent();
}
}
}

Просмотреть файл

@ -69,8 +69,8 @@
<StackLayout>
<!-- >> datetimepicker-custom-templates -->
<telerikInput:RadDateTimePicker StartDate="2019,12,11"
EndDate="2020,02,14"
<telerikInput:RadDateTimePicker MinimumDate="2019,12,11"
MaximumDate="2020,02,14"
PlaceholderTemplate="{StaticResource placeholderTemplate}"
DisplayTemplate="{StaticResource displayTemplate}">
<telerikInput:RadDateTimePicker.SelectorSettings>

Просмотреть файл

@ -20,28 +20,28 @@
</ContentView.Resources>
<StackLayout>
<Label Text="DateTime Picker with d date and time string format" Style="{StaticResource labelStyle}"/>
<Label Text="DateTime Picker with d date string format" Style="{StaticResource labelStyle}"/>
<!-- >> datetimepicker-keyfeatures-date -->
<telerikInput:RadDateTimePicker StartDate="2019,12,25"
EndDate="2020,02,14"
SpinnerFormatString="d"/>
<telerikInput:RadDateTimePicker MinimumDate="2019,12,25"
MaximumDate="2020,02,14"
SpinnerFormat="d"/>
<!-- << datetimepicker-keyfeatures-date -->
<Label Text="DateTime Picker with T date and time string format" Style="{StaticResource labelStyle}"/>
<Label Text="DateTime Picker with T time string format, minimum date and maximum date defined" Style="{StaticResource labelStyle}"/>
<!-- >> datetimepicker-keyfeatures-time -->
<telerikInput:RadDateTimePicker StartDate="2019,12,25"
EndDate="2020,02,14"
SpinnerFormatString="T"
<telerikInput:RadDateTimePicker MinimumDate="2020,01,01 9:00:00"
MaximumDate="2021,02,01 18:00:00"
SpinnerFormat="T"
DisplayStringFormat="HH:mm:ss"
Placeholder="Pick a time!"
AreSpinnerHeadersVisible="True"/>
<!-- << datetimepicker-keyfeatures-time -->
<Label Text="DateTime Picker with g date and time string format" Style="{StaticResource labelStyle}"/>
<Label Text="DateTime Picker with general date short time g string format" Style="{StaticResource labelStyle}"/>
<!-- >> datetimepicker-keyfeatures-date-time -->
<telerikInput:RadDateTimePicker StartDate="2019,12,25"
EndDate="2020,02,14"
<telerikInput:RadDateTimePicker MinimumDate="2019,12,25"
MaximumDate="2020,02,14"
Placeholder="Pick date and time!"
AreSpinnerHeadersVisible="True"/>
<!-- << datetimepicker-keyfeatures-date-time -->

Просмотреть файл

@ -0,0 +1,38 @@
using Telerik.XamarinForms.Common;
namespace SDKBrowser.Examples.DateTimePickerControl.FeaturesCategory.LocalizationExample
{
// >> datetimepicker-custom-localization-manager
public class CustomDateTimePickerLocalizationManager : TelerikLocalizationManager
{
public override string GetString(string key)
{
if (key == "DateTimePicker_Popup_HeaderLabelText")
return "Datum und Uhrzeit Picker";
if (key == "DateTimePicker_PlaceholderLabelText")
return "Datum und Uhrzeit auswählen";
if (key == "Picker_AmPmSpinnerHeaderLabelText")
return "am/pm";
if (key == "Picker_DaySpinnerHeaderLabelText")
return "Tag";
if (key == "Picker_HourSpinnerHeaderLabelText")
return "Zeit";
if (key == "Picker_MinuteSpinnerHeaderLabelText")
return "Minute";
if (key == "Picker_SecondSpinnerHeaderLabelText")
return "Sekunde";
if (key == "Picker_MonthSpinnerHeaderLabelText ")
return "Monat";
if (key == "Picker_YearSpinnerHeaderLabelText")
return "Jahr";
if (key == "Picker_Popup_AcceptButtonText")
return "Akzeptieren";
if (key == "Picker_Popup_CancelButtonText")
return "Stornieren";
return base.GetString(key);
}
}
// << datetimepicker-custom-localization-manager
}

Просмотреть файл

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<ContentView xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:telerikInput="clr-namespace:Telerik.XamarinForms.Input;assembly=Telerik.XamarinForms.Input"
mc:Ignorable="d"
x:Class="SDKBrowser.Examples.DateTimePickerControl.FeaturesCategory.LocalizationExample.Localization">
<ContentView.Content>
<StackLayout>
<!-- >> datetime-picker-localization-xaml -->
<telerikInput:RadDateTimePicker>
<telerikInput:RadDateTimePicker.SelectorSettings>
<telerikInput:PickerPopupSelectorSettings IsHeaderVisible="True"/>
</telerikInput:RadDateTimePicker.SelectorSettings>
</telerikInput:RadDateTimePicker>
<!-- << datetime-picker-localization-xaml -->
</StackLayout>
</ContentView.Content>
</ContentView>

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше