add 2 kb articles for september

This commit is contained in:
PROGRESS\doyordan 2021-09-22 13:16:35 +03:00
Родитель 724abe3ce8
Коммит 31922c56ff
2 изменённых файлов: 101 добавлений и 0 удалений

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

@ -0,0 +1,54 @@
---
title: Calendar picker
description: how to create a calendar picker control
type: how-to
page_title: calendar picker that displays the calendar control
slug: calendar-picker
position:
tags:
ticketid: 1529808
res_type: kb
---
## Environment
<table>
<tbody>
<tr>
<td>Product Version</td>
<td></td>
</tr>
<tr>
<td>Product</td>
<td>Progress® Telerik® UI for Xamarin</td>
</tr>
</tbody>
</table>
## Description
This article shows how to create a Calendar picker control which allows you to pick a date froma calendar.
## Solution
In order to create a calendar picker control you have to use the Telerik UI for Xamarin [Templated Picker]({%slug templated-picker-overview%}) control.
## Example
Add the templatedPicker to the page and inside the RadTemplatedPicker.SelectorTemplate add the RadCalendar control:
```XAML
<telerikInput:RadTemplatedPicker>
<telerikInput:RadTemplatedPicker.SelectorTemplate>
<ControlTemplate>
<telerikInput:RadCalendar SelectedDate="{TemplateBinding SelectedValue, Mode=TwoWay}"/>
</ControlTemplate>
</telerikInput:RadTemplatedPicker.SelectorTemplate>
</telerikInput:RadTemplatedPicker>
```
Add the namespaces:
```XAML
xmlns:telerikInput="clr-namespace:Telerik.XamarinForms.Input;assembly=Telerik.XamarinForms.Input"
```

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

@ -0,0 +1,47 @@
---
title: ComboBox border is not visible in release build (UWP)
description: border is not visible in release uwp build and button looks different
type: how-to
page_title: ComboBox border is not visible in release build (UWP) and drop-down button looks different
slug: combobox-border-not-visible-uwp-release
position:
tags:
ticketid: 1536269
res_type: kb
---
## Environment
<table>
<tbody>
<tr>
<td>Product Version</td>
<td>2021.3.915.1</td>
</tr>
<tr>
<td>Product</td>
<td>ComboBox for Xamarin</td>
</tr>
</tbody>
</table>
## Description
The article will show you how to visualize the Border that wrapps around the ComboBox control. When the app is built for UWP in Release Mode the border is not visible. The reason behind this is that the .NET Native Toolchain strips the assemblies needed for visualizing the RadBorder control.
In addition the drop-down button and clear button look different.
## Solution
Make sure that the Telerik renderers are not stripped out by the UWP .NETNative compilation step. Add the following code inside the App.xaml.cs file of the UWP Project:
```C#
var assembliesToInclude = new List<Assembly>()
{
typeof(Telerik.XamarinForms.Input.RadButton).GetTypeInfo().Assembly,
typeof(Telerik.XamarinForms.InputRenderer.UWP.ButtonRenderer).GetTypeInfo().Assembly,
typeof(Telerik.XamarinForms.Primitives.RadBorder).GetTypeInfo().Assembly,
typeof(Telerik.XamarinForms.PrimitivesRenderer.UWP.BorderRenderer).GetTypeInfo().Assembly,
};
Xamarin.Forms.Forms.Init(e, assembliesToInclude);
```