Skip to content

Commit 3a9c229

Browse files
925962 - Update month view document in scheduler.
1 parent a29fe70 commit 3a9c229

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

wpf/Scheduler/Month-View.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,37 @@ this.Schedule.MonthViewSettings.TrailingDaysVisibility = Visibility.Collapsed;
244244

245245
![WPF Scheduler month view Leading and Trailing Days Visibility](Month-View_Images/wpf-scheduler-leading-and-trailing-days-visibility.png)
246246

247+
## Change the number of visible weeks
248+
249+
The number of weeks visible in the month view can be changed by setting the `NumberOfVisibleWeeks` property of [MonthViewSettings](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Scheduler.MonthViewSettings.html) in the [`SfScheduler`](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Scheduler.html). By default, 6 weeks are visible.
250+
251+
{% tabs %}
252+
{% highlight xaml hl_lines="4" %}
253+
254+
<syncfusion:SfScheduler x:Name="Schedule"
255+
ViewType="Month">
256+
<syncfusion:SfScheduler.MonthViewSettings>
257+
<syncfusion:MonthViewSetting NumberOfVisibleWeeks="3"/>
258+
</syncfusion:SfScheduler.MonthViewSettings>
259+
</syncfusion:SfScheduler>
260+
261+
{% endhighlight %}
262+
{% highlight c# hl_lines="2" %}
263+
264+
this.Schedule.ViewType = SchedulerViewType.Month;
265+
this.Schedule.MonthViewSettings.NumberOfVisibleWeeks = 3;
266+
267+
{% endhighlight %}
268+
{% endtabs %}
269+
270+
![Number-of-visible-weeks-in-month-view-in-WPF-Scheduler](Month-View_Images/number-of-visible-weeks-in-month-view-in-wpf-scheduler.webp){:width="540" height="300"}
271+
272+
N>
273+
* The week number range is limited to values between 1 and 6. Any value outside this range will cause the `NumberOfVisibleWeeks` to default to 6.
274+
* The `NumberOfVisibleWeeks` property dynamically controls the number of weeks displayed in the scheduler's month view.
275+
* The [DisplayDate](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Scheduler.SfScheduler.html#Syncfusion_UI_Xaml_Scheduler_SfScheduler_DisplayDate) property defines the first row of dates shown in the scheduler's month view.
276+
* The [LeadingDaysVisibility](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Scheduler.MonthViewSettings.html#Syncfusion_UI_Xaml_Scheduler_MonthViewSettings_LeadingDaysVisibility) and [TrailingDaysVisibility](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Scheduler.MonthViewSettings.html#Syncfusion_UI_Xaml_Scheduler_MonthViewSettings_TrailingDaysVisibility) properties are applicable only when the number of visible weeks is set to 6.
277+
247278
## Blackout dates
248279
Disable the interaction for certain dates in the scheduler month view by adding those specific dates to the [BlackoutDates](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Scheduler.SfScheduler.html?tabs=tabid-1#Syncfusion_UI_Xaml_Scheduler_SfScheduler_BlackoutDates) collection property of the `SfScheduler.` Using this, allocate or restrict specific dates for the predefined events.
249280

60.1 KB
Loading

0 commit comments

Comments
 (0)