Skip to content

Commit c74677a

Browse files
Merge pull request #1191 from telerik/didi/update-warnings-for-docsbuilder
fix slugs for builder
2 parents 47e1cd5 + ae37196 commit c74677a

File tree

11 files changed

+37
-54
lines changed

11 files changed

+37
-54
lines changed

controls/aiprompt/styling/aipromptbutton-styling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The following example demonstrates how to modify the AIPrompt Button's appearanc
1818

1919
**2.** Add the `RadAIPromptButton` control with its `Style` applied:
2020

21-
<snippet id='aiprompt-airpromtbutton-style-xaml'/>
21+
<snippet id='aiprompt-airpromtbutton-xaml'/>
2222

2323
Check the result below:
2424

controls/calendar/blackout-dates.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The following snippets show how to disable dates in the Calendar control.
2020

2121
**2.** Add a ViewModel with defined blackout dates.
2222

23-
<snippet id='calendar-blackoutdates-viewmode'/>
23+
<snippet id='calendar-blackoutdates-viewmodel'/>
2424

2525
![.NET MAUI Calendar Blackout Dates](images/calendar-blackout-dates.png)
2626

controls/chart/axes/overview.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,30 @@ The `LabelFormatterBase<T>` class is a base implementation of the `ILabelFormatt
6868

6969
The following example shows how to set a label formatter for the Date-Time Continuous Axis.
7070

71-
<snippet id='chart-customization-format-axis-labels-label-formatter'/>
71+
```C#
72+
public class DateLabelFormatter : LabelFormatterBase<DateTime>
73+
{
74+
public override string FormatTypedValue(DateTime value)
75+
{
76+
if (value.Day == 1)
77+
{
78+
return value.Day + "st";
79+
}
80+
else if (value.Day == 2)
81+
{
82+
return value.Day + "nd";
83+
}
84+
else if (value.Day == 3)
85+
{
86+
return value.Day + "rd";
87+
}
88+
else
89+
{
90+
return value.Day + "th";
91+
}
92+
}
93+
}
94+
```
7295

7396
You can apply it in the following way:
7497

controls/collectionview/filtering.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ The following example implements a `TextFilterDescriptor` and uses a [`RadEntry`
4444

4545
**1.** Define the `RadCollectionView` and `RadEntry` in XAML:
4646

47-
<snippet id='collectionview-text-filter-descriptor'/>
47+
<snippet id='collectionview-delegate-filter-descriptor' />
4848

4949
**2.** Add the `telerik` namespace:
5050

@@ -62,7 +62,7 @@ xmlns:telerik="http://schemas.telerik.com/2022/xaml/maui"
6262

6363
**5.** Add the `TextFilterDescriptor` to the `RadCollectionView` inside the `RadEntry` `TextChanged` event:
6464

65-
<snippet id='collectionview-filter-function'/>
65+
<snippet id='collectionview-filter-function' />
6666

6767
This is the result:
6868

controls/datagrid/filtering/programmatic-filtering.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ The `TextFilterDescriptor` supports the following properties:
5353

5454
To use `TextFilterDescriptor`, you need to add its instance to the `RadDataGrid.FilterDescriptors` collection and to set its `PropertyName` property to associate it with the property from your custom objects. Then, through the `Operator` and `Value` properties, you need to set the filter condition and the value to compare. You can also use the `IsCaseSensitive` property to determine if the text comparisons will be case-sensitive or not.
5555

56-
<!-- <snippet id='datagrid-textfilterdescriptor-xaml'/> -->
5756
```XAML
5857
<telerik:TextFilterDescriptor PropertyName="Country"
5958
Operator="StartsWith"
@@ -71,7 +70,6 @@ It exposes the following properties:
7170
* `Value`&mdash;Gets or sets the value used in the comparisons. This is the right operand of the comparison.
7271
* `Operator`&mdash;Gets or sets the `NumericalOperator` value that defines the boolean logic behind the left and right operand comparison.
7372

74-
<!-- <snippet id='datagrid-numericalfilterdecsriptor-xaml'/> -->
7573
```XAML
7674
<telerik:NumericalFilterDescriptor PropertyName="StadiumCapacity"
7775
Operator="IsLessThan"
@@ -88,7 +86,6 @@ It exposes the following properties:
8886
* `Value`&mdash;Gets or sets the value used in the comparisons. This is the right operand of the comparison.
8987
* `Operator`&mdash;Gets or sets the `NumericalOperator` value that defines the boolean logic behind the left and right operand comparison.
9088

91-
<!-- <snippet id='datagrid-datetimefilterdescriptor-xaml'/> -->
9289
```XAML
9390
<telerik:DateTimeFilterDescriptor PropertyName="Established"
9491
Operator="IsLessThan"
@@ -105,7 +102,6 @@ It exposes the following properties:
105102
* `Value`&mdash;Gets or sets the value used in the comparisons. This is the right operand of the comparison.
106103
* `Operator`&mdash;Gets or sets the `NumericalOperator` value that defines the boolean logic behind the left and right operand comparison.
107104

108-
<!-- <snippet id='datagrid-datetimefilterdescriptor-xaml'/> -->
109105
```XAML
110106
<telerik:TimeSpanFilterDescriptor PropertyName="Time"
111107
Operator="IsLessThan"
@@ -121,7 +117,6 @@ It exposes the following properties:
121117
* `PropertyName`&mdash;Gets or sets the name of the property that is used to retrieve the filter value.
122118
* `Value`&mdash;Gets or sets the value used in the comparisons. This is the right operand of the comparison.
123119

124-
<!-- <snippet id='datagrid-booleanfilterdescriptor-xaml'/> -->
125120
```XAML
126121
<telerik:BooleanFilterDescriptor PropertyName="IsChampion"
127122
Value="true"/>
@@ -161,7 +156,6 @@ It exposes the following properties:
161156
* `PropertyName`&mdash;Gets or sets the name of the property that is used to retrieve the filter value.
162157
* `Value`&mdash;Gets or sets the value used in the comparisons. This is the right operand of the comparison.
163158

164-
<!-- <snippet id='datagrid-datetimefilterdescriptor-xaml'/> -->
165159
```XAML
166160
<telerik:DistinctValuesFilterDescriptor PropertyName="Country" Value="Austria" />
167161
```
@@ -170,7 +164,6 @@ It exposes the following properties:
170164

171165
The `CompositeFilterDescriptor` represents a special `FilterDescriptorBase` that stores an arbitrary number of other descriptors instances. The logical `AND` or `OR` operator is applied upon all composed filters to determine the result of the `PassesFilter` routine.
172166

173-
<!-- <snippet id='datagrid-compositefilterdescriptor-xaml'/> -->
174167
```XAML
175168
<telerik:CompositeFilterDescriptor Operator="And">
176169
<telerik:CompositeFilterDescriptor.Descriptors>
@@ -194,7 +187,6 @@ Then, you need to add a `DelegateFilterDescriptor` to the `RadDataGrid.FilterDes
194187

195188
The following example demonstrates the `CustomFilter` implementation:
196189

197-
<!-- <snippet id='datagrid-delegatefilterdescriptor-csharp'/> -->
198190
```C#
199191
class CustomFilter : Telerik.Maui.Controls.Data.IFilter
200192
{
@@ -218,7 +210,6 @@ class CustomFilter : Telerik.Maui.Controls.Data.IFilter
218210
219211
Add the `DelegateFilterDescriptor` to the `RadDataGrid` instance:
220212

221-
<!-- <snippet id='datagrid-delegatefilterdescriptor-added'/> -->
222213
```C#
223214
dataGrid.FilterDescriptors.Add(new DelegateFilterDescriptor() { Filter = new CustomFilter()});
224215
```

controls/datagrid/sorting.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ To use a `DelegateSortDescriptor`, create a class that implements the `IKeyLooku
6666

6767
The following example demonstrates a custom `IKeyLookup` implementation.
6868

69-
<snippet id='datagrid-delegatesortdescriptor-ikeylookup'/>
7069
```C#
7170
public class CustomIKeyLookup : Telerik.Maui.Controls.Data.IKeyLookup
7271
{
@@ -79,7 +78,6 @@ public class CustomIKeyLookup : Telerik.Maui.Controls.Data.IKeyLookup
7978

8079
Add it to the `SortDescriptors` collection of the DataGrid:
8180

82-
<snippet id='datagrid-delegatesortdescriptor-csharp'/>
8381
```C#
8482
this.dataGrid.SortDescriptors.Add(new DelegateSortDescriptor() { KeyLookup = new CustomIKeyLookup()});
8583
```

controls/datapager/styling/buttons.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ xmlns:telerik="http://schemas.telerik.com/2022/xaml/maui"
5454

5555
**4.** Define sample data:
5656

57-
<snippet id='datagrid-datapager-data' />
57+
<snippet id='datapager-features-viewmodel' />
5858

5959
This is the result on desktop:
6060

controls/docklayout/getting-started.md

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -29,33 +29,7 @@ Before adding the DockLayout, you need to:
2929

3030
**1.** When the your .NET MAUI application is set up, you are ready to add a DockLayout control to your page.
3131

32-
<snippet id='docklayout-getting-started-xaml' />
33-
```XAML
34-
<telerik:RadDockLayout x:Name="dockLayout">
35-
<Grid HeightRequest="60"
36-
BackgroundColor="#009688"
37-
telerik:RadDockLayout.Dock="Top">
38-
<Label Margin="20" Text="Title"/>
39-
</Grid>
40-
<Grid BackgroundColor="#659BFC"
41-
telerik:RadDockLayout.Dock="Left">
42-
<Grid.ColumnDefinitions>
43-
<ColumnDefinition Width="Auto"/>
44-
</Grid.ColumnDefinitions>
45-
<Label Margin="20" Text="Navigation" />
46-
</Grid>
47-
<Grid BackgroundColor="#1455C9"
48-
telerik:RadDockLayout.Dock="Bottom">
49-
<Grid.RowDefinitions>
50-
<RowDefinition Height="Auto"/>
51-
</Grid.RowDefinitions>
52-
<Label Margin="20" Text="Bottom" />
53-
</Grid>
54-
<Grid BackgroundColor="#FCCFB0">
55-
<Label Margin="20" Text="Content" />
56-
</Grid>
57-
</telerik:RadDockLayout>
58-
```
32+
<snippet id='docklayout-getting-started-xaml' />
5933

6034
**2.** Add the following namespace:
6135

controls/gauge/axis.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,6 @@ The following image shows the end result.
6767

6868
The `FontFamily` property is of type `string` and you need to pass the name of the font family. Remember that the different platforms work with different fonts so you may need to use the `OnPlatform` method.
6969

70-
<snippet id='gauge-axis-font-family'/>
71-
72-
7370
The following image shows the end result.
7471

7572
![Gauge Font Family](images/gauge-axis-fontfamily.png)

controls/templatedpicker/styling/dropdown-styling.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,23 @@ The following example shows how the styling properties are applied.
2929

3030
**Define the `RadTemplatedPicker`**
3131

32-
<snippet id='templatedpicker-style' />
32+
<snippet id='templatedpicker-dropdown-style' />
3333

3434
**Define the DropDownViewStyle**
3535

36-
<snippet id='dropDownViewStyle' />
36+
<snippet id='templatedpicker-style-dropdownview-style' />
3737

38-
**Define the FooterStyle**
38+
**Define the CommonButtonStyle**
3939

40-
<snippet id='timepicker-style-footer-style' />
40+
<snippet id='templatedpicker-commonbuttonstyle' />
4141

4242
**Define the AcceptButtonStyle**
4343

44-
<snippet id='timepicker-style-accept-button-style' />
44+
<snippet id='templatedpicker-acceptbuttonstyle' />
4545

4646
**Define the CancelButtonStyle**
4747

48-
<snippet id='timepicker-style-cancel-button-style' />
48+
<snippet id='templatedpicker-cancelbuttonstyle' />
4949

5050
## Namespaces
5151

0 commit comments

Comments
 (0)