Skip to content

Commit d7bfa9b

Browse files
Added the UG content for Rich text editor's liquid glass effect.
1 parent 22de833 commit d7bfa9b

File tree

3 files changed

+129
-1
lines changed

3 files changed

+129
-1
lines changed
Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
---
2+
layout: post
3+
title: About .NET MAUI Rich Text Editor control | Syncfusion®
4+
description: Learn here all about how to enable cupertino theme for Syncfusion® .NET MAUI Rich Text Editor (SfRichTextEditor) control, its elements and more.
5+
platform: maui
6+
control: SfRichTextEditor
7+
documentation: ug
8+
---
9+
10+
# Cupertino Theme in .NET MAUI RichTextEditor
11+
12+
The Cupertino theme is a modern design style that provides a sleek, minimalist appearance with clean lines, subtle visual effects, and elegant styling. It features smooth rounded corners, refined color palettes, and sophisticated visual treatments that create a polished, professional look for your RichTextEditor.
13+
14+
N> The Cupertino liquid glass effect is only available on macOS and iOS platforms with iOS version 26 or higher.
15+
16+
## How it Enhances RichTextEditor UI on macOS and iOS
17+
18+
The Cupertino theme enhances the RichTextEditor with liquid glass effects on toolbar and editor elements, creating a modern and visually appealing text editing interface that delivers a sophisticated user experience.
19+
20+
## Enable Cupertino Theme
21+
22+
To enable the Cupertino theme's liquid glass effect, set the [EnableLiquidGlassEffect]() property to `True` on the SfRichTextEditor. For optimal visual appearance with a sleek and glassy output, set transparent backgrounds for both the editor and toolbar using the [EditorBackgroundColor](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.RichTextEditor.SfRichTextEditor.html#Syncfusion_Maui_RichTextEditor_SfRichTextEditor_EditorBackgroundColor) property of SfRichTextEditor and the [BackgroundColor](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.RichTextEditor.RichTextEditorToolbarSettings.html#Syncfusion_Maui_RichTextEditor_RichTextEditorToolbarSettings_BackgroundColor) property of ToolbarSettings.
23+
24+
{% tabs %}
25+
26+
{% highlight xaml %}
27+
28+
<editor:SfRichTextEditor EnableLiquidGlassEffect="True"
29+
EditorBackgroundColor="Transparent">
30+
<editor:SfRichTextEditor.ToolbarSettings>
31+
<editor:RichTextEditorToolbarSettings BackgroundColor="Transparent" />
32+
</editor:SfRichTextEditor.ToolbarSettings>
33+
</editor:SfRichTextEditor>
34+
35+
{% endhighlight %}
36+
37+
{% highlight c# %}
38+
39+
SfRichTextEditor richTextEditor = new SfRichTextEditor()
40+
{
41+
EnableLiquidGlassEffect = true,
42+
EditorBackgroundColor = Colors.Transparent
43+
};
44+
45+
richTextEditor.ToolbarSettings = new RichTextEditorToolbarSettings()
46+
{
47+
BackgroundColor = Colors.Transparent
48+
};
49+
50+
{% endhighlight %}
51+
52+
{% endtabs %}
53+
54+
### Toolbar
55+
56+
The liquid glass effect is applied to the overall toolbar and its elements, including font family picker, font size picker, text alignment options, text style pickers, insert link popup, table selection, table context menu popup, and the inline toolbar for links.
57+
58+
#### Customize Toolbar Corner Radius
59+
60+
The toolbar corner radius and toolbar selection corner radius can be customized using Syncfusion theme keys:
61+
62+
{% tabs %}
63+
64+
{% highlight xaml %}
65+
66+
<Application xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
67+
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
68+
xmlns:syncTheme="clr-namespace:Syncfusion.Maui.Themes;assembly=Syncfusion.Maui.Core">
69+
<Application.Resources>
70+
<ResourceDictionary>
71+
<ResourceDictionary.MergedDictionaries>
72+
<syncTheme:SyncfusionThemeResourceDictionary VisualTheme="CupertinoLight"/>
73+
<ResourceDictionary>
74+
<sys:Double x:Key="SfRichTextEditorToolbarCornerRadius">25</sys:Double>
75+
<sys:Double x:Key="SfRichTextEditorToolbarSelectionCornerRadius">25</sys:Double>
76+
</ResourceDictionary>
77+
</ResourceDictionary.MergedDictionaries>
78+
</ResourceDictionary>
79+
</Application.Resources>
80+
</Application>
81+
82+
{% endhighlight %}
83+
84+
{% endtabs %}
85+
86+
### Editor
87+
88+
The liquid glass effect enhances the text editing area, providing a modern and sophisticated appearance for content creation.
89+
90+
#### Customize Editor Corner Radius
91+
92+
The editor corner radius can be customized using the Syncfusion theme key:
93+
94+
{% tabs %}
95+
96+
{% highlight xaml %}
97+
98+
<Application xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
99+
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
100+
xmlns:syncTheme="clr-namespace:Syncfusion.Maui.Themes;assembly=Syncfusion.Maui.Core">
101+
<Application.Resources>
102+
<ResourceDictionary>
103+
<ResourceDictionary.MergedDictionaries>
104+
<syncTheme:SyncfusionThemeResourceDictionary VisualTheme="CupertinoLight"/>
105+
<ResourceDictionary>
106+
<sys:Double x:Key="SfRichTextEditorCornerRadius">15</sys:Double>
107+
</ResourceDictionary>
108+
</ResourceDictionary.MergedDictionaries>
109+
</ResourceDictionary>
110+
</Application.Resources>
111+
</Application>
112+
113+
{% endhighlight %}
114+
115+
{% endtabs %}
116+
117+
N> `SfRichTextEditorCornerRadius` theme key works with the liquid glass effect on iOS and macOS only.
118+
119+
N> To override the default appearance of the toolbar and the editor’s corner radius, you need to initialize the Syncfusion theme dictionary resources in the application’s resource dictionary. For more details, refer to the [documentation](https://help.syncfusion.com/maui/themes/themes).
120+
121+

MAUI/Rich-Text-Editor/Toolbar.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ richTextEditor.ToolbarPosition = RichTextEditorToolbarPosition.Bottom;
2929
{% endhighlight %}
3030
{% endtabs %}
3131

32-
## Link quick tooltip
32+
## Inline tooltip for link
3333

3434
The link quick tooltip appears when you click on a link in the editor. The Rich Text Editor provides essential tools in the link quick tooltip, including “Open”, “Edit Link” and “Remove Link”.
3535

maui-toc.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,7 @@
413413
<li><a href="/maui/cartesian-charts/zooming-and-panning">Zooming and Panning</a></li>
414414
<li><a href="/maui/cartesian-charts/exporting">Exporting</a></li>
415415
<li><a href="/maui/cartesian-charts/localization">Localization</a></li>
416+
<li><a href="/maui/cartesian-charts/Cupertino-Theme">Cupertino Theme</a></li>
416417
<li><a href="/maui/cartesian-charts/AI-Powered-Data-Processing">Data cleaning and preprocessing</a></li>
417418
<li><a href="/maui/cartesian-charts/AI-Powered-Stock-forecasting-in-Candle-Chart">Stock Forecasting</a></li>
418419
<li>
@@ -485,6 +486,7 @@
485486
<li><a href="/maui/circular-charts/selection">Selection</a></li>
486487
<li><a href="/maui/circular-charts/tooltip">Tooltip</a></li>
487488
<li><a href="/maui/circular-charts/exporting">Exporting</a></li>
489+
<li><a href="/maui/circular-charts/Cupertino-Theme">Cupertino Theme</a></li>
488490
</ul>
489491
</li>
490492
<li>
@@ -767,6 +769,7 @@
767769
<li><a href="/maui/funnel-charts/tooltip">Tooltip</a></li>
768770
<li><a href="/maui/funnel-charts/orientation">Orientation</a></li>
769771
<li><a href="/maui/funnel-charts/exporting">Exporting</a></li>
772+
<li><a href="/maui/funnel-charts/Cupertino-Theme">Cupertino Theme</a></li>
770773
</ul>
771774
</li>
772775
<li>
@@ -1018,6 +1021,7 @@
10181021
<li><a href="/maui/polar-charts/Legend">Legend</a></li>
10191022
<li><a href="/maui/polar-charts/Tooltip">Tooltip</a></li>
10201023
<li><a href="/maui/polar-charts/Exporting">Exporting</a></li>
1024+
<li><a href="/maui/polar-charts/Cupertino-Theme">Cupertino Theme</a></li>
10211025
</ul>
10221026
</li>
10231027
<li>
@@ -1062,6 +1066,7 @@
10621066
<li><a href="/maui/pyramid-charts/tooltip">Tooltip</a></li>
10631067
<li><a href="/maui/pyramid-charts/orientation">Orientation</a></li>
10641068
<li><a href="/maui/pyramid-charts/exporting">Exporting</a></li>
1069+
<li><a href="/maui/pyramid-charts/Cupertino-Theme">Cupertino Theme</a></li>
10651070
</ul>
10661071
</li>
10671072
<li>
@@ -1166,6 +1171,7 @@
11661171
<li><a href="/maui/Rich-Text-Editor/Image-Insertion">Image Insertion</a></li>
11671172
<li><a href="/maui/Rich-Text-Editor/Table-Insertion">Table Insertion</a></li>
11681173
<li><a href="/maui/Rich-Text-Editor/Customization">Customization</a></li>
1174+
<li><a href="/maui/Rich-Text-Editor/Cupertino-Theme">Cupertino Theme</a></li>
11691175
</ul>
11701176
</li>
11711177
<li>
@@ -1311,6 +1317,7 @@
13111317
<li><a href="/maui/SunburstChart/DrillDown">Drill Down</a></li>
13121318
<li><a href="/maui/SunburstChart/Selection">Selection</a></li>
13131319
<li><a href="/maui/SunburstChart/Tooltip">Tooltip</a></li>
1320+
<li><a href="/maui/SunburstChart/Cupertino-Theme">Cupertino Theme</a></li>
13141321
</ul>
13151322
</li>
13161323
<li>

0 commit comments

Comments
 (0)