Skip to content

Commit 249a718

Browse files
Merge pull request #1205 from telerik/master
merge master into dev
2 parents b3c3d6a + 346dfc7 commit 249a718

File tree

63 files changed

+202
-121
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+202
-121
lines changed

_contentTemplates/get-started.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,21 @@ To use the controls in the Telerik UI for .NET MAUI library, add the Telerik nam
1717
1. In the `MainPage.xaml` file, locate the root element at the top.
1818
1. Paste the Telerik namespace below the last already available namespace:
1919

20-
```
20+
```XAML
2121
xmlns:telerik="http://schemas.telerik.com/2022/xaml/maui"
2222
```
2323

2424
To visualize the Telerik controls, register them in the `MauiProgram.cs` file of your project:
2525

2626
1. In the `MauiProgram.cs` file, add the following using statement:
2727

28-
```
28+
```C#
2929
using Telerik.Maui.Controls.Compatibility;
3030
```
3131

3232
1. In the `CreateMauiApp` method, call the `UseTelerik` extension method:
3333

34-
```
34+
```C#
3535
<!-- Code omitted for brevity -->
3636
.UseMauiApp<App>()
3737
.UseTelerik()
@@ -51,9 +51,9 @@ To add the TemplatedButton control to the application:
5151

5252
1. In the `MainPage.xaml` file, add the Telerik UI for .NET MAUI TemplatedButton and set its content to a string:
5353

54-
```
54+
```XAML
5555
<telerik:RadTemplatedButton x:Name="templatedButton"
56-
Content="My TemplatedButton Content" />
56+
Content="My TemplatedButton Content" />
5757
```
5858

5959
After adding the basic TemplatedButton and setting the initial content, you can hit `F5` to confirm that the app is running. In the next steps, you will configure the control by adding some interactivity.
@@ -68,7 +68,7 @@ In this step, you will edit the code-behind file by adding logic that makes the
6868
* In the `Grid`, add a [BusyIndicator](https://docs.telerik.com/devtools/maui/controls/busyindicator/overview) control and adjust its [styling options](https://docs.telerik.com/devtools/maui/controls/busyindicator/animations).
6969
* In the `Grid`, add a label control for the loading indicator.
7070

71-
```
71+
```XAML
7272
<telerik:RadTemplatedButton x:Name="templatedButton">
7373
<telerik:RadTemplatedButton.Content>
7474
<Grid ColumnDefinitions="Auto, *" HorizontalOptions="Center">
@@ -90,7 +90,7 @@ In this step, you will edit the code-behind file by adding logic that makes the
9090

9191
1. In the `MainPage.xaml.cs` file, add a new member method within the `MainPage` class. This new method adds the logic that controls the content of the button:
9292

93-
```
93+
```C#
9494
private async void OnTemplatedButtonClicked(object sender, EventArgs e)
9595
{
9696
this.busy.IsBusy = true;
@@ -103,7 +103,7 @@ In this step, you will edit the code-behind file by adding logic that makes the
103103

104104
1. Finally, set the `Clicked` event and add some styles to the TemplatedButton. Use the various [appearance options](https://docs.telerik.com/devtools/maui/controls/templatedbutton/styling) provided by the component, for example, `TextColor`, `Background`, `BorderBrush`, and so on:
105105

106-
```
106+
```XAML
107107
<telerik:RadTemplatedButton x:Name="templatedButton"
108108
TextColor="Black"
109109
Background="#FAFAFA"

controls/autocomplete/filtering.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ By default, the .NET `string.Contains` method will take all punctuation into con
6262

6363
For example, if the source string is `Main Street, 101` and the user searches `Main Street 101`, string.Contains will return false and the result will not appear in the FilteredItems view. The custom filter below removes the commas before the string is used with the Contains method.
6464

65-
```
65+
```C#
6666
public class CustomAutoCompleteFilter : IAutoCompleteFilter
6767
{
6868
public bool Filter(object item, string searchText, AutoCompleteCompletionMode completionMode)

controls/chart/nullvalues.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,11 @@ The following example demonstrates a data-bound scenario where a nullable `doubl
1818

1919
**1.** Create a `ViewModel` with a collection of `CategoryItems` objects, where a few of the items have null values:
2020

21-
<snippet id='chart-nullvalues-viewmodel'/>
22-
21+
<snippet id='chart-nullvalues-viewmodel' />
2322

2423
**2.** Add a `RadCartesianChart` with a Spline Area Series, for example:
2524

26-
<snippet id='chart-nullvalues-xaml'/>
25+
<snippet id='chart-nullvalues-xaml' />
2726

2827
**3.** Add the `telerik` namespace:
2928

controls/checkbox/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public static class MauiProgram
5959

6060
return builder.Build();
6161
}
62-
}
62+
}
6363
```
6464

6565
> For a runnable example with the CheckBox Getting Started scenario, see the [SDKBrowser Demo Application]({%slug sdkbrowser-app%}) and go to **CheckBox > Getting Started** category.

controls/dataform/headers.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,7 @@ You can specify absolute values in pixels or weighted values followed by the ast
2727
* `Text`&mdash;Visualizes the header text. For this option `HeaderText` has to be defined.
2828
* `Image`&mdash;Visualizes the image in the header. For this option `HeaderImageSource` has to be defined.
2929

30-
You can combine the `Text` and the `Image` in the `HeaderDisplayOptions`:
31-
32-
```XAML
33-
HeaderDisplayOptions="Image, Text"
34-
```
30+
You can combine the `Text` and the `Image` in the `HeaderDisplayOptions`. Here is a sample definition: `HeaderDisplayOptions="Image, Text"`.
3531

3632
* `HeaderTemplate`(`Microsoft.Maui.Controls.ControlTemplate`)&mdash;Specifies the template of the header view.
3733

@@ -54,11 +50,7 @@ Each group has a header. Here are the properties you can use to configure the gr
5450
* `Text`&mdash;Visualizes the header text. For this option `HeaderText` has to be defined.
5551
* `Image`&mdash;Visualizes the image in the header. For this option `HeaderImageSource` has to be defined.
5652

57-
You can combine the `Text` and the `Image` in the `HeaderDisplayOption`:
58-
59-
```XAML
60-
HeaderDisplayOptions="Image, Text"
61-
```
53+
You can combine the `Text` and the `Image` in the `HeaderDisplayOptions`. Here is a sample definition: `HeaderDisplayOptions="Image, Text"`.
6254

6355
* `HeaderTemplate`(`Microsoft.Maui.Controls.ControlTemplate`)&mdash;Specifies the template of the header view.
6456

controls/datagrid/columns/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ By default, the DataGrid will generate typed columns automatically based on the
2121

2222
For example, let's have a sample `Club` object:
2323

24-
```XAML
24+
```C#
2525
public class Club
2626
{
2727
public string Name { get; set; }

controls/datapager/styling/pagesizes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Here is an example demonstrating how to use `PageSizesViewStyle`.
2222
**1.** Define the DataPager in XAML:
2323

2424
```XAML
25-
<telerik:RadDataPager PageSizesViewStyle="{StaticResource PageSizesViewStyle}"
25+
<telerik:RadDataPager PageSizesViewStyle="{StaticResource PageSizesViewStyle}"
2626
```
2727

2828
**2.** Set the styles to the page's resources:

controls/gridsplitter/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Before adding the GridSplitter, you need to:
3333
**2.** Add the `telerik` namespace:
3434

3535
```XAML
36-
xmlns:telerik="http://schemas.telerik.com/2022/xaml/maui"
36+
xmlns:telerik="http://schemas.telerik.com/2022/xaml/maui"
3737
```
3838

3939
**3.** Register the Telerik controls through the `Telerik.Maui.Controls.Compatibility.UseTelerik` extension method called inside the `CreateMauiApp` method of the `MauiProgram.cs` file of your project:

controls/imageeditor/migrate-from-xamarin.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ When migrating the ImageEditorToolbar from Xamarin to .NET MAUI, consider the fo
7878

7979
The code snippets below represent the Xamarin and .NET MAUI definitions of the ImageEditor and ImageEditorToolbar with all predefined toolbar items.
8080

81-
```Xamarin
81+
Definition in Xamarin:
82+
83+
```C#
8284
<Grid>
8385
<Grid.RowDefinitions>
8486
<RowDefinition />
@@ -114,9 +116,11 @@ The code snippets below represent the Xamarin and .NET MAUI definitions of the I
114116
</telerikImageEditor:RadImageEditorToolbar>
115117
</Grid>
116118
```
117-
```MAUI
119+
120+
Definition in MAUI:
121+
118122
<snippet id='imageeditor-commands-xaml'/>
119-
```
123+
120124

121125
## See Also
122126

controls/listpicker/styling/dropdown-styling.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ The following examples demonstrate how to define use the styling properties of t
4646

4747
In addition, add the following namespace:
4848

49-
```XAML
49+
```XAML
5050
xmlns:telerik="http://schemas.telerik.com/2022/xaml/maui"
51-
```
51+
```
5252

5353
The following image shows what the ListPicker control looks like when the styles described above are applied:
5454

0 commit comments

Comments
 (0)