Skip to content

Commit 0db8380

Browse files
authored
Merge pull request #3336 from syncfusion-content/Maui-Tools-team-Release-UG
[Dev]963238 - Need to prepare UG document for Volume 2 release
2 parents b7c0ca7 + 381dc9f commit 0db8380

File tree

10 files changed

+265
-5
lines changed

10 files changed

+265
-5
lines changed
Loading

MAUI/Autocomplete/Selection.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,52 @@ SfAutocomplete autoComplete = new SfAutocomplete
251251
{% endtabs %}
252252

253253
![.NET MAUI Autocomplete with TokensWrapMode as none.](Images/Selection/net-maui-autocomplete-nonemode.png)
254+
255+
### Value change notification
256+
257+
When the value of Autocomplete changes, the `ValueChanged` event is triggered. This event is raised when the value changes due to user interaction, programmatic updates, or any other mechanism. It provides both `OldValue` and `NewValue`, allowing for responsive handling of changes. The ValueChanged event contains the following properties:
258+
259+
* `OldValue` – Contains the previous text value before the change.
260+
* `NewValue` – Contains the new text value after the change.
261+
262+
{% tabs %}
263+
{% highlight xaml %}
264+
265+
<editors:SfAutocomplete x:Name="autocomplete"
266+
TextMemberPath="Name"
267+
DisplayMemberPath="Name"
268+
ItemsSource="{Binding SocialMedias}"
269+
ValueChanged="OnValueChanged" />
270+
271+
{% endhighlight %}
272+
273+
{% highlight C# %}
274+
275+
SfAutoComplete autocomplete = new SfAutoComplete
276+
{
277+
ItemsSource = socialMediaViewModel.SocialMedias,
278+
DisplayMemberPath = "Name",
279+
TextMemberPath = "Name"
280+
};
281+
autocomplete.ValueChanged += OnValueChanged;
282+
283+
{% endhighlight %}
284+
285+
{% endtabs %}
286+
287+
The ValueChanged event can be handled as follows:
288+
289+
{% tabs %}
290+
{% highlight C# %}
291+
292+
private async void OnValueChanged(object sender, AutocompleteValueChangedEventArgs e)
293+
{
294+
await DisplayAlert("Alert", "Value has changed to: " + e.NewValue.ToString(), "Ok");
295+
}
296+
297+
{% endhighlight %}
298+
299+
{% endtabs %}
254300

255301
## Selection changing notification
256302

MAUI/Autocomplete/UI-Customization.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,39 @@ SfAutocomplete autocomplete = new SfAutocomplete
547547

548548
![.NET MAUI Autocomplete DropDown Stroke Thickness](Images/UICustomization/DropDownStrokeThickness.png)
549549

550+
### Customize the visibility of Dropdown Shadow
551+
552+
The `IsDropDownShadowVisible` property is used to customize the visibility of the dropdown shadow.
553+
554+
{% tabs %}
555+
{% highlight xaml %}
556+
557+
<editors:SfAutocomplete x:Name="autocomplete"
558+
ItemsSource="{Binding SocialMedias}"
559+
DisplayMemberPath="Name"
560+
TextMemberPath="Name"
561+
Placeholder="Enter Media"
562+
IsDropDownShadowVisible="False" />
563+
564+
{% endhighlight %}
565+
566+
{% highlight C# %}
567+
568+
SfAutocomplete autocomplete = new SfAutocomplete
569+
{
570+
ItemsSource = socialMediaViewModel.SocialMedias,
571+
DisplayMemberPath = "Name",
572+
TextMemberPath = "Name",
573+
Placeholder = "Enter Media",
574+
IsDropDownShadowVisible = False
575+
};
576+
577+
578+
{% endhighlight %}
579+
{% endtabs %}
580+
581+
![.NET MAUI Autocomplete Dropdown shadow visibility is false](Images/UICustomization/DropdownShadowVisible.png)
582+
550583
### Customize the DropDown Item Height
551584

552585
The [DropDownItemHeight](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Inputs.DropDownControls.DropDownListBase.html#Syncfusion_Maui_Inputs_DropDownControls_DropDownListBase_DropDownItemHeight) property is used to modify the height of the dropdown items.

MAUI/Carousel-View/UIVirtualization.md

Lines changed: 47 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,43 +9,47 @@ documentation : ug
99

1010
# UIVirtualization in .NET MAUI Carousel View (SfCarousel)
1111

12-
In the UI virtualization concept, only the number of items that can be adaptable to the viewport of our device are arranged. Even, if numerous items have been added to the collection, it only loads the viewport adaptable count of the carousel items. Items are added at the right of the view when swiping the countable items in the forward direction. At the same time, the same number of items are removed at the left of the view to maintain the same viewport items count. Similarly, items are added at the left of the view when swiping backward to maintain the same viewport items count. At the same time, the same number of items are removed at the right of the view. Using this mechanism, the virtualization concept is achieved in the carousel control.
12+
UI virtualization in the `SfCarousel` control ensures that only the items visible in the viewport are rendered, significantly improving performance when working with large data sets. As users swipe through the carousel, new items are dynamically added to the visible area while off-screen items are removed, maintaining a consistent number of rendered items.
1313

1414
The following property has been used in UIVirtualization support:
1515

1616
* `EnableVirtualization`
1717

1818
## EnableVirtualization
1919

20-
The UI virtualization concept is implemented by enabling the [EnableVirtualization](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Carousel.SfCarousel.html#Syncfusion_Maui_Carousel_SfCarousel_EnableVirtualization) property in SfCarousel Linear mode.
20+
The UI virtualization concept is implemented by enabling the [EnableVirtualization](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Carousel.SfCarousel.html#Syncfusion_Maui_Carousel_SfCarousel_EnableVirtualization) property in SfCarousel, supporting both Default and Linear view modes.
2121

2222
N> The default value of the [EnableVirtualization](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Carousel.SfCarousel.html#Syncfusion_Maui_Carousel_SfCarousel_EnableVirtualization) property is false.
2323

24+
### Default Mode
25+
2426
{% tabs %}
2527

2628
{% highlight xaml %}
2729

30+
<!-- Default View Mode -->
2831
<carousel:SfCarousel x:Name="carousel"
2932
ItemsSource="{Binding ImageCollection}"
3033
ItemTemplate="{StaticResource itemTemplate}"
3134
ItemHeight="200"
3235
ItemWidth="200"
3336
ItemSpacing="2"
34-
ViewMode="Linear"
37+
ViewMode="Default"
3538
EnableVirtualization="true">
3639
</carousel:SfCarousel>
3740

3841
{% endhighlight %}
3942

4043
{% highlight c# %}
4144

45+
// Default Mode Configuration
4246
SfCarousel carousel = new SfCarousel()
4347
{
44-
ItemHeight= 200,
48+
ItemHeight = 200,
4549
ItemWidth = 200,
4650
ItemSpacing = 2,
4751
EnableVirtualization = true,
48-
ViewMode = ViewMode.Linear
52+
ViewMode = ViewMode.Default
4953
};
5054

5155
carousel.ItemTemplate = itemTemplate;
@@ -55,6 +59,44 @@ carousel.SetBinding(SfCarousel.ItemsSourceProperty, "ImageCollection");
5559

5660
{% endtabs %}
5761

62+
### Linear Mode
63+
64+
{% tabs %}
65+
66+
{% highlight xaml %}
67+
68+
<!-- Linear View Mode -->
69+
<carousel:SfCarousel x:Name="linearCarousel"
70+
ItemsSource="{Binding ImageCollection}"
71+
ItemTemplate="{StaticResource itemTemplate}"
72+
ItemHeight="200"
73+
ItemWidth="200"
74+
ItemSpacing="2"
75+
ViewMode="Linear"
76+
EnableVirtualization="true">
77+
</carousel:SfCarousel>
78+
79+
{% endhighlight %}
80+
81+
{% highlight c# %}
82+
83+
// Linear Mode Configuration
84+
SfCarousel linearCarousel = new SfCarousel()
85+
{
86+
ItemHeight = 200,
87+
ItemWidth = 200,
88+
ItemSpacing = 2,
89+
EnableVirtualization = true,
90+
ViewMode = ViewMode.Linear
91+
};
92+
93+
linearCarousel.ItemTemplate = itemTemplate;
94+
linearCarousel.SetBinding(SfCarousel.ItemsSourceProperty, "ImageCollection");
95+
96+
{% endhighlight %}
97+
98+
{% endtabs %}
99+
58100
![UIVirtualization](images/UIVirtualization.png)
59101

60102
Find the complete UIVirtualization sample from this [link](https://github.com/SyncfusionExamples/maui-carousel-samples/tree/master/UIVirtualization/VirtualizationSample).
Loading

MAUI/ComboBox/Selection.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,52 @@ The following gif image illustrates the result of the above code:
296296

297297
![.NET MAUI ComboBox selection changing event notification.](Images/Selection/net-maui-combobox-selection-changing-notification.gif)
298298

299+
300+
### Value change notification
301+
When the value of comboBox changes, the `ValueChanged` event is triggered. This event is raised when the value changes due to user interaction, programmatic updates, or any other mechanism. It provides both `OldValue` and `NewValue`, allowing for responsive handling of changes. The ValueChanged event contains the following properties:
302+
303+
* `OldValue` – Contains the previous text value before the change.
304+
* `NewValue` – Contains the new text value after the change.
305+
306+
{% tabs %}
307+
{% highlight xaml %}
308+
309+
<editors:SfComboBox x:Name="comboBox"
310+
TextMemberPath="Name"
311+
DisplayMemberPath="Name"
312+
ItemsSource="{Binding SocialMedias}"
313+
ValueChanged="OnValueChanged" />
314+
315+
{% endhighlight %}
316+
317+
{% highlight C# %}
318+
319+
SfComboBox comboBox = new SfComboBox
320+
{
321+
ItemsSource = socialMediaViewModel.SocialMedias,
322+
DisplayMemberPath = "Name",
323+
TextMemberPath = "Name"
324+
};
325+
comboBox.ValueChanged += OnValueChanged;
326+
327+
{% endhighlight %}
328+
329+
{% endtabs %}
330+
331+
The ValueChanged event can be handled as follows:
332+
333+
{% tabs %}
334+
{% highlight C# %}
335+
336+
private async void OnValueChanged(object sender, ComboBoxValueChangedEventArgs e)
337+
{
338+
await DisplayAlert("Alert", "Value has changed to: " + e.NewValue.ToString(), "Ok");
339+
}
340+
341+
{% endhighlight %}
342+
343+
{% endtabs %}
344+
299345
## Selection changed notification
300346

301347
When an item is selected from the .NET MAUI drop-down list, the [SelectionChanged](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Inputs.DropDownControls.DropDownListBase.html#Syncfusion_Maui_Inputs_DropDownControls_DropDownListBase_SelectionChanged) event is triggered. The SelectionChanged event contains the newly selected and previously selected items in the `AddedItems` and `RemovedItems` properties. The SelectionChanged contains the following properties:

MAUI/ComboBox/UI-Customization.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,39 @@ SfComboBox comboBox = new SfComboBox()
616616

617617
![.NET MAUI ComboBox DropDown StrokeThickness](Images/UICustomization/DropDownStrokeThickness.png)
618618

619+
### Customize the visibility of Dropdown Shadow
620+
621+
The `IsDropDownShadowVisible` property is used to customize the visibility of the dropdown shadow.
622+
623+
{% tabs %}
624+
{% highlight xaml %}
625+
626+
<editors:SfComboBox x:Name="comboBox"
627+
ItemsSource="{Binding SocialMedias}"
628+
DisplayMemberPath="Name"
629+
TextMemberPath="Name"
630+
Placeholder="Enter Media"
631+
IsDropDownShadowVisible="False" />
632+
633+
{% endhighlight %}
634+
635+
{% highlight C# %}
636+
637+
SfComboBox comboBox = new SfComboBox()
638+
{
639+
ItemsSource = socialMediaViewModel.SocialMedias,
640+
DisplayMemberPath = "Name",
641+
TextMemberPath = "Name",
642+
Placeholder = "Enter Media",
643+
IsDropDownShadowVisible = False
644+
};
645+
646+
647+
{% endhighlight %}
648+
{% endtabs %}
649+
650+
![.NET MAUI ComboBox Dropdown shadow visibility is false](Images/UICustomization/DropdownShadowVisible.png)
651+
619652
### Customize the DropDown Item Height
620653

621654
The [DropDownItemHeight](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Inputs.DropDownControls.DropDownListBase.html#Syncfusion_Maui_Inputs_DropDownControls_DropDownListBase_DropDownItemHeight) property is used to modify the height of the dropdown items.

MAUI/NumericEntry/UpDown-Button.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,66 @@ sfNumericEntry.UpDownButtonAlignment = UpDownButtonAlignment.Both;
157157

158158
![UpDown Alignment is Both in .NET MAUI NumericEntry](UpDownButton_images/UpDownButtonAlignmentBoth.png)
159159

160+
161+
## UpDown button order
162+
163+
You can change the order of the UpDown buttons in the [NumericEntry](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Inputs.SfNumericEntry.html) control using the `UpDownOrder` property. Set its value to **UpThenDown** or **DownThenUp** to position the buttons on the entry field, respectively.
164+
165+
N> By default, the `UpDownOrder` property is set to **UpThenDown**.
166+
167+
### UpDown button order: UpThenDown
168+
169+
{% tabs %}
170+
{% highlight XAML %}
171+
172+
<editors:SfNumericEntry Value="123"
173+
WidthRequest="200"
174+
UpDownOrder="UpThenDown"
175+
UpDownPlacementMode="Inline"
176+
UpDownButtonAlignment="Right"/>
177+
178+
{% endhighlight %}
179+
{% highlight c# %}
180+
181+
SfNumericEntry sfNumericEntry = new SfNumericEntry();
182+
sfNumericEntry.WidthRequest = 200;
183+
sfNumericEntry.Value = 123;
184+
sfNumericEntry.UpDownOrder = UpDownOrder.UpThenDown;
185+
sfNumericEntry.UpDownPlacementMode = NumericEntryUpDownPlacementMode.Inline;
186+
sfNumericEntry.UpDownButtonAlignment = UpDownButtonAlignment.Right;
187+
188+
{% endhighlight %}
189+
{% endtabs %}
190+
191+
![UpDown Order is Up then down in .NET MAUI NumericEntry](UpDownButton_images/UpDownButtonOrderUpThenDown.png)
192+
193+
### UpDown button order: DownThenUP
194+
195+
{% tabs %}
196+
{% highlight XAML %}
197+
198+
<editors:SfNumericEntry Value="123"
199+
WidthRequest="200"
200+
UpDownOrder="DownThenUp"
201+
UpDownPlacementMode="Inline"
202+
UpDownButtonAlignment="Right/>
203+
204+
{% endhighlight %}
205+
{% highlight c# %}
206+
207+
SfNumericEntry sfNumericEntry = new SfNumericEntry();
208+
sfNumericEntry.WidthRequest = 200;
209+
sfNumericEntry.Value = 123;
210+
sfNumericEntry.UpDownOrder = UpDownOrder.DownThenUp;
211+
sfNumericEntry.UpDownPlacementMode = NumericEntryUpDownPlacementMode.Inline;
212+
sfNumericEntry.UpDownButtonAlignment = UpDownButtonAlignment.Right;
213+
214+
{% endhighlight %}
215+
{% endtabs %}
216+
217+
![UpDown order is DownThenUp in .NET MAUI NumericEntry](UpDownButton_images/UpDownButtonOrderDownThenUp.png)
218+
219+
160220
## UpDown button customization
161221

162222
## UpDown button color
Loading
Loading

0 commit comments

Comments
 (0)