From dfa1404c9ba47851d60368165034b5981f4a384f Mon Sep 17 00:00:00 2001 From: "PROGRESS\\doyordan" Date: Fri, 19 Nov 2021 17:29:22 +0200 Subject: [PATCH] add kb and notes for cellContentStyle --- .../columns/column-types/boolean-column.md | 2 + .../columns/column-types/date-column.md | 2 + .../columns/column-types/numerical-column.md | 2 + .../columns/column-types/picker-column.md | 2 + .../columns/column-types/text-column.md | 2 + .../columns/column-types/time-column.md | 2 + .../datagrid-columns-styling.md | 2 + knowledge-base/uwp-release-build.md | 51 +++++++++++++++++++ 8 files changed, 65 insertions(+) create mode 100644 knowledge-base/uwp-release-build.md diff --git a/controls/datagrid/columns/column-types/boolean-column.md b/controls/datagrid/columns/column-types/boolean-column.md index 99594f2b..15c93b41 100644 --- a/controls/datagrid/columns/column-types/boolean-column.md +++ b/controls/datagrid/columns/column-types/boolean-column.md @@ -27,6 +27,8 @@ The **DataGridBooleanColumn** is used to represent boolean values. It uses Switc >important **CellContentFormat** uses the format string provided by the framework. For more details check the [String.Format](https://docs.microsoft.com/en-us/dotnet/api/system.string.format?view=netframework-4.8) article. +>important The `CellContentStyle` property is not applied when `CellContentTemplate` is used. + ## Example ```XAML diff --git a/controls/datagrid/columns/column-types/date-column.md b/controls/datagrid/columns/column-types/date-column.md index a044e7d3..4b01a6d3 100644 --- a/controls/datagrid/columns/column-types/date-column.md +++ b/controls/datagrid/columns/column-types/date-column.md @@ -27,6 +27,8 @@ The **DataGridDateColumn** is used to represent **DateTime** objects. It uses th >important **CellContentFormat** uses the format string provided by the framework. For more details check the [Standard Date and Time Formatting](https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-date-and-time-format-strings) and [Custom Date and Time Formatting](https://docs.microsoft.com/en-us/dotnet/standard/base-types/custom-date-and-time-format-strings) articles. +>important The `CellContentStyle` is not applied when `CellContentTemplate` is used. + ## Example ```XAML diff --git a/controls/datagrid/columns/column-types/numerical-column.md b/controls/datagrid/columns/column-types/numerical-column.md index 4d1fca7f..079d0781 100644 --- a/controls/datagrid/columns/column-types/numerical-column.md +++ b/controls/datagrid/columns/column-types/numerical-column.md @@ -27,6 +27,8 @@ The **DataGridNumericalColumn** is used to represent only numerical values. It u >important **CellContentFormat** uses the format string provided by the framework. For more details check the [Standard Numeric Formatting](https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings) and [Custom Numeric Formatting](https://docs.microsoft.com/en-us/dotnet/standard/base-types/custom-numeric-format-strings) articles. +>important The `CellContentStyle` is not applied when `CellContentTemplate` is used. + ## Example ```XAML diff --git a/controls/datagrid/columns/column-types/picker-column.md b/controls/datagrid/columns/column-types/picker-column.md index fcbc8302..763770f8 100644 --- a/controls/datagrid/columns/column-types/picker-column.md +++ b/controls/datagrid/columns/column-types/picker-column.md @@ -32,6 +32,8 @@ Here are the specific properties defined for DataGridPickerColumn: >important **CellContentFormat** uses the format string provided by the framework. For more details check the [String.Format](https://docs.microsoft.com/en-us/dotnet/api/system.string.format?view=netframework-4.8) article. +>important The `CellContentStyle` is not applied when `CellContentTemplate` is used. + ## Example ```XAML diff --git a/controls/datagrid/columns/column-types/text-column.md b/controls/datagrid/columns/column-types/text-column.md index 435c9821..7e47a141 100644 --- a/controls/datagrid/columns/column-types/text-column.md +++ b/controls/datagrid/columns/column-types/text-column.md @@ -31,6 +31,8 @@ Here are the specific properties for TextColumns: >important **CellContentFormat** uses the format string provided by the framework. For more details check the [String.Format](https://docs.microsoft.com/en-us/dotnet/api/system.string.format?view=netframework-4.8) article. +>important The `CellContentStyle` property is not applied when `CellContentTemplate` is used. + ## Example Here is an example how the Text Column properties can be used: diff --git a/controls/datagrid/columns/column-types/time-column.md b/controls/datagrid/columns/column-types/time-column.md index a63b8ad8..8a8baf64 100644 --- a/controls/datagrid/columns/column-types/time-column.md +++ b/controls/datagrid/columns/column-types/time-column.md @@ -27,6 +27,8 @@ The **DataGridTimeColumn** is used to represent DateTime objects. It uses the Ti >important **CellContentTemplate**, **CellEditTemplate** and **FilterControlTemplate** properties are part of the DataGrid features from R2 2020 Official Release. For more details on celledit and cell content templates features check the [Cell Templates]({%slug datagrid-cell-templates%})article. For more details on filtercontrol template please review the [FilterControl Template]({%slug datagrid-filtering-overview%}#filtercontrol-template) section. +>important The `CellContentStyle` property is not applied when `CellContentTemplate` is used. + ## Example ```XAML diff --git a/controls/datagrid/theming-and-styles/datagrid-columns-styling.md b/controls/datagrid/theming-and-styles/datagrid-columns-styling.md index bcc1dfc8..c6f4eb36 100644 --- a/controls/datagrid/theming-and-styles/datagrid-columns-styling.md +++ b/controls/datagrid/theming-and-styles/datagrid-columns-styling.md @@ -91,6 +91,8 @@ An example how to set the HeaderStyle property is shown below: * **TextColor**/**SelectedTextColor**: Defines the color of the cells text, you could set different value for the selected cell. * **Text Alignment** (TextMargin, HorizontalTextAlignment, VerticalTextAlignment): Define the positioning of the Text inside the cell. +>important The `CellContentStyle` does not apply for `TemplateColumn`. Also, the property is not applied to the built-in colums when `CellContentTemplate` is used. + Here is an example how to set the CellContentStyle property: diff --git a/knowledge-base/uwp-release-build.md b/knowledge-base/uwp-release-build.md new file mode 100644 index 00000000..47bdf770 --- /dev/null +++ b/knowledge-base/uwp-release-build.md @@ -0,0 +1,51 @@ +--- +title: Required Assemblies for UWP Release Build +description: How to add dynamically items to the accordion control +type: how-to +page_title: UWP Release Build Missing Border +slug: uwp-release-build +position: +tags: xamarin, accordion, items, dynamically +ticketid: 1507547 +res_type: kb +--- + +## Environment + + + + + + + + + + + + +
Product Version2021.1 216.1
ProductUI for Xamarin
+ + +## Description + +When the app is built in Release mode for UWP, you may experience issues like: +- the border around Button, ComboBox, AutoCompleteView, Pickers is not visible + +The reason behind this is that the .NET Native Toolchain strips the assemblies needed for visualizing the RadBorder control. + +## 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() +{ + 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); +```