Skip to content

Commit 8fce94f

Browse files
Merge pull request #1620 from syncfusion-content/925962-UpadteImageEditorDocument
925962- Update text settings image for Image Editor UG documentation.
2 parents a22a712 + a4f21ab commit 8fce94f

File tree

4 files changed

+35
-4
lines changed

4 files changed

+35
-4
lines changed
96.5 KB
Loading

wpf/Image-Editor/Text.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ this.editor.Loaded += this.OnImageEditorLoaded;
117117
private void OnImageEditorLoaded(object sender, RoutedEventArgs e)
118118
{
119119
TextSettings textSettings = new TextSettings();
120-
textSettings.Background = new SolidColorBrush(Colors.Yellow);
120+
textSettings.Background = new SolidColorBrush(Colors.PeachPuff);
121121
textSettings.FontFamily = new FontFamily("Century Schoolbook");
122122
textSettings.FontSize = 30;
123123
textSettings.Color = new SolidColorBrush(Colors.Red);
@@ -126,10 +126,10 @@ private void OnImageEditorLoaded(object sender, RoutedEventArgs e)
126126
this.editor.AddText("Good morning", textSettings);
127127

128128
textSettings = new TextSettings();
129-
textSettings.Background = new SolidColorBrush(Colors.Ivory);
129+
textSettings.Background = new SolidColorBrush(Colors.LightYellow);
130130
textSettings.FontFamily = new FontFamily("Bell MT");
131131
textSettings.FontSize = 22;
132-
textSettings.Color = new SolidColorBrush(Colors.DarkGreen);
132+
textSettings.Color = new SolidColorBrush(Colors.Teal);
133133
textSettings.TextEffects = TextEffects.Italic;
134134
textSettings.Bounds = new Rect(50, 23, 30, 15);
135135
textSettings.TextAlignment = TextAlignment.Center;
@@ -139,7 +139,7 @@ private void OnImageEditorLoaded(object sender, RoutedEventArgs e)
139139
{% endhighlight %}
140140
{% endtabs %}
141141

142-
![Text](Images/Text.jpg)
142+
![Text-settings-in-WPF-Image-editor](Images/text-settings-in-wpf-image-editor.jpg)
143143

144144
## See also
145145

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](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Scheduler.MonthViewSettings.html#Syncfusion_UI_Xaml_Scheduler_MonthViewSettings_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)
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)