Skip to content

Commit b97a676

Browse files
Merge pull request #1215 from telerik/didi/updates-scheduler-chart-kb
updates in scheduler and chart kb point markers.
2 parents 2961685 + 79d1faa commit b97a676

File tree

5 files changed

+28
-8
lines changed

5 files changed

+28
-8
lines changed

controls/scheduler/styling/day-styling.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ slug: scheduler-day-styling
88

99
# .NET MAUI Scheduler Day Styling
1010

11-
The Scheduler control for .NET MAUI provides the `DayStyleSelector`(of type `Telerik.Maui.Controls.IStyleSelector`) property which specifies the style selector for the days displayed in the Scheduler. Its default implementation includes separate styles for Today date and all the other dates.
11+
The Scheduler control for .NET MAUI provides the `DayStyleSelector` (of type `Telerik.Maui.Controls.IStyleSelector`) property which specifies the style selector for the days displayed in the Scheduler. Its default implementation includes separate styles for Today date and all the other dates.
12+
13+
The Scheduler `MonthViewDefinition` allows you to style the appearance of the days names, by using the `DayNameStyleSelector` (of type `Telerik.Maui.Controls.IStyleSelector`) property.
1214

1315
The following example demonstrates how to style the days with a custom `DayStyleSelector` property which will add a different style for the days of the weekend:
1416

@@ -28,4 +30,4 @@ The following example demonstrates how to style the days with a custom `DayStyle
2830

2931
## See Also
3032

31-
-[Views]({% slug scheduler-views-overview %})
33+
- [Views]({% slug scheduler-views-overview %})

controls/scheduler/styling/scheduler-currenttime-indicator-styling.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ The following example demonstrates how to apply a sample style to the current ti
2626

2727
## See Also
2828

29-
-[Current Time Indicator]({%slug scheduler-time-indicator%})
30-
-[Views]({% slug scheduler-views-overview %})
29+
- [Current Time Indicator]({%slug scheduler-time-indicator%})
30+
- [Views]({% slug scheduler-views-overview %})
3131

controls/scheduler/views/month-view.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ Add a `MonthViewDefinition` to the `ViewDefinitions` collection of the `RadSched
2626

2727
## Properties
2828

29-
* `FirstDayOfWeek`—Defines the day that is considered the beginning of the week.
30-
* `HeaderTextFormat`—Defines the format string for the header text.
29+
* `FirstDayOfWeek` (enum of type `DayOfWeek?`)—Defines the day that is considered the beginning of the week.
30+
* `HeaderTextFormat` (`string`)—Defines the format string for the header text.
3131

3232
## See Also
3333

knowledge-base/chart-line-series-datapoint-markers.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,12 @@ public partial class MainPage : ContentPage
136136
platformSeries.Style.PointShape = new TelerikUI.TKPredefinedShape(TelerikUI.TKShapeType.Circle, new System.Drawing.SizeF(10, 10));
137137
platformSeries.Style.ShapeMode = TelerikUI.TKChartSeriesStyleShapeMode.AlwaysShow;
138138

139+
#elif WINDOWS
140+
141+
var platformChart = (Telerik.UI.Xaml.Controls.Chart.RadCartesianChart)platformView;
142+
var platformSeries = (Telerik.UI.Xaml.Controls.Chart.LineSeries)platformChart.Series[0];
143+
var nativeApp = MauiWinUIApplication.Current;
144+
platformSeries.PointTemplate = nativeApp.Resources["PointTemplate"] as Microsoft.UI.Xaml.DataTemplate;
139145
#endif
140146
}
141147
}
@@ -163,6 +169,18 @@ public class PointRenderer : Java.Lang.Object, global::Com.Telerik.Widget.Chart.
163169
}
164170
```
165171

166-
And this is the result:
172+
**6.** For WinUI, add the `PointTemplate` inside the `Platforms/Windows/App.xaml` file:
173+
174+
```XAML
175+
<maui:MauiWinUIApplication.Resources>
176+
<ResourceDictionary>
177+
<DataTemplate x:Key="PointTemplate">
178+
<Ellipse Width="20" Height="20" Fill="Blue" Stroke="Black" StrokeThickness="1"/>
179+
</DataTemplate>
180+
</ResourceDictionary>
181+
</maui:MauiWinUIApplication.Resources>
182+
```
183+
184+
And the result on Android:
167185

168-
[.NET MAUI Chart Point Markers](images/chart-pointmarkers-result.png)
186+
![.NET MAUI Chart Point Markers](images/chart-pointmarkers-result.png)
21.8 KB
Loading

0 commit comments

Comments
 (0)