Skip to content

Commit bdf4582

Browse files
Merge pull request #925 from telerik/didi/update-combobox
update combo images
2 parents 5dfbc86 + d7f965e commit bdf4582

25 files changed

+81
-99
lines changed

controls/combobox/configuration.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Here is an example of setting the `Placeholder` property:
2121

2222
The next image shows the result:
2323

24-
![ComboBox Placeholder](images/combobox-visual-structure.png)
24+
![ComboBox Placeholder](images/combobox-placeholder.png)
2525

2626
Here is an example of setting the `PlaceholderColor` property:
2727

@@ -57,6 +57,8 @@ and the result:
5757

5858
![ComboBox Clear Button Visibility](images/combobox-clearbuttonvisibility.png)
5959

60+
> For the ComboBox Configuration example, refer to the [SDKBrowser Demo Application]({%slug sdkbrowser-app%}) and navigate to the **ComboBox > Features** category.
61+
6062
## Drop-Down Behavior
6163

6264
To manage the drop-down of the ComboBox, use the following properties:
@@ -100,7 +102,7 @@ Here is an example with `OpenOnFocus` property set:
100102

101103
The `Keyboard` property of type `Microsoft.Maui.Keyboard` allows you to define the type of the keyboard that will be visualized by the device. The default value is Text.
102104

103-
>important The Configuration example can be found in our [SDK Browser Application]({%slug sdkbrowser-app%}). You can find the application in the **Examples** folder of your local **Telerik UI for .NET MAUI** installation or in the following [GitHub repo](https://github.com/telerik/maui-samples/tree/main/Samples/SdkBrowser).
105+
> For the ComboBox Drop-Down Configuration example, refer to the [SDKBrowser Demo Application]({%slug sdkbrowser-app%}) and navigate to the **ComboBox > Features** category.
104106
105107
## See Also
106108

controls/combobox/editmode-and-search.md

Lines changed: 19 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -28,29 +28,29 @@ ComboBox provides both case-sensitive and case-insensitive searching modes. The
2828
* `HighlightTextColor`(*Microsoft.Maui.Graphics.Color*)—Defines the color of the text that will be highlighted when searching is performed.
2929

3030
> Searching can be performed when `IsEditable` is `true`.
31+
> The ComboBox `DisplayMemberPath` property must be set when binding to complex objects. Also, when `IsEditable` is `true`, the `SearchTextPath` property must be set.
3132
32-
If you want the text to be highlighted when using custom ItemTemplate, you have to add a `RadHighlightLabel` inside the ItemTemplate.
33+
If you want the text to be highlighted when using a custom `ItemTemplate`, you have to add a `RadHighlightLabel` inside the `ItemTemplate`.
3334

34-
Here is an example:
35+
Here is the XAML definition of the ComboBox with `RadHighlightLabel` inside the `ItemTemplate`:
3536

3637
```XAML
3738
<telerik:RadComboBox x:Name="comboBox"
38-
ItemsSource="{Binding Items}"
39-
DisplayMemberPath="Name"
40-
Placeholder="Select City"
41-
AutomationId="comboBox"
42-
HighlightTextColor="Red"
43-
IsEditable="True">
39+
ItemsSource="{Binding Items}"
40+
DisplayMemberPath="Name"
41+
Placeholder="Select City"
42+
AutomationId="comboBox"
43+
HighlightTextColor="Red"
44+
IsEditable="True">
4445
<telerik:RadComboBox.ItemTemplate>
4546
<DataTemplate>
4647
<telerik:RadBorder BackgroundColor="LightYellow"
4748
MinimumWidthRequest="300">
4849

4950
<telerik:RadHighlightLabel TextColor="Black" Padding="10"
50-
HighlightTextColor="BlueViolet"
51-
UnformattedText="{Binding Name}"
52-
HighlightText="{Binding Source={x:Reference comboBox}, Path=Text}" />
53-
51+
HighlightTextColor="BlueViolet"
52+
UnformattedText="{Binding Name}"
53+
HighlightText="{Binding Source={x:Reference comboBox}, Path=Text}" />
5454
</telerik:RadBorder>
5555
</DataTemplate>
5656
</telerik:RadComboBox.ItemTemplate>
@@ -60,43 +60,21 @@ Here is an example:
6060
MinimumWidthRequest="300">
6161
<VerticalStackLayout>
6262
<Label Text="{Binding Name}"
63-
Padding="8, 7, 0, 7"
64-
TextColor="Black"/>
63+
Padding="8, 7, 0, 7"
64+
TextColor="Black"/>
6565
<Label Text="{Binding Population}"
66-
FontSize="12"
67-
Padding="8, 7, 0, 7"/>
66+
FontSize="12"
67+
Padding="8, 7, 0, 7"/>
6868
</VerticalStackLayout>
6969
</telerik:RadBorder>
7070
</DataTemplate>
7171
</telerik:RadComboBox.SelectedItemTemplate>
7272
</telerik:RadComboBox>
73-
```
74-
75-
## Example
76-
77-
Here is the ComboBox definition in XAML:
78-
79-
<snippet id='combobox-editing'/>
80-
81-
>note When binding to a complex objects, ComboBox `DisplayMemberPath` property needs to be set. Also when `IsEditable` is `true` `SearchTextPath` property needs be set.
82-
83-
In addition to this, you need to add the following namespace:
84-
85-
```XAML
86-
xmlns:telerik="http://schemas.telerik.com/2022/xaml/maui"
87-
```
88-
89-
the sample business model
90-
91-
<snippet id='combobox-city-businessmodel'/>
92-
93-
and the ViewModel used:
94-
95-
<snippet id='combobox-cities-viewmodel'/>
73+
```
9674

97-
Here is how the control looks in edit mode:
75+
> For a runnable demo with the ComboBox Search eamples with different scenarios, see the [SDKBrowser Demo Application]({%slug sdkbrowser-app%}) and go to the **ComboBox > Features** category.
9876
99-
![ComboBox Edit Mode](images/combobox-edit.png)
77+
![.NET MAUI ComboBox Edit Mode](images/combobox-edit.gif)
10078

10179
## See Also
10280

controls/combobox/getting-started.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ slug: combobox-getting-started
1010

1111
This guide provides the information you need to start using the [Telerik UI for .NET MAUI ComboBox]({%slug combobox-overview%}) by adding the control to your project.
1212

13-
At the end, you will achieve the following result.
14-
15-
![ComboBox Getting Started](images/combobox-getting-started.png)
16-
1713
## Prerequisites
1814

1915
Before adding the ComboBox, you need to:
@@ -36,7 +32,7 @@ When your .NET MAUI application is setup, you are ready to add a ComboBox contro
3632

3733
Here is the result:
3834

39-
![ComboBox Getting Started](images/combobox-getting-started.png)
35+
![.NET MAUI ComboBox Getting Started](images/combobox-getting-started.png)
4036

4137
### Binding to a Complex Object
4238

@@ -70,7 +66,7 @@ Here is the result:
7066

7167
![ComboBox Binding](images/combobox-getting-started-complex-data.png)
7268

73-
>important For the ComboBox Getting Started example, refer to the [SDKBrowser Demo Application]({%slug sdkbrowser-app%}) and navigate to the **ComboBox > Getting Started** category.
69+
> For the ComboBox Getting Started example, refer to the [SDKBrowser Demo Application]({%slug sdkbrowser-app%}) and navigate to the **ComboBox > Getting Started** category.
7470
7571
## Additional Resources
7672

controls/combobox/header-footer.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,23 @@ You can add Header and Footer to the drop-down list of the [.NET MAUI ComboBox](
1717
1818
## Example
1919

20-
Here is the ComboBox definition in XAML:
20+
**1.** Define the ComboBox in XAML:
2121

2222
<snippet id='combobox-header-footer-template'/>
2323

24-
the sample business model
24+
**2.** Add a sample business model:
2525

2626
<snippet id='combobox-city-businessmodel'/>
2727

28-
and the ViewModel used:
28+
**3.** Add the `ViewModel` used:
2929

3030
<snippet id='combobox-cities-viewmodel'/>
3131

32-
This is how the Header and Footer Templates look:
32+
This is how the Header and Footer Templates look on WinUI:
3333

34-
![ComboBox Header Footer Templates](images/combobox-header-footer.png)
34+
![.NET MAUI ComboBox Header Footer Templates](images/combobox-header-footer.png)
3535

36-
> For the ComboBox Header and Footer example, go to the [SDKBrowser Demo Application]({%slug sdkbrowser-app%}) and navigate to ComboBox -> Templates category.
36+
> For the ComboBox Header and Footer example, go to the [SDKBrowser Demo Application]({%slug sdkbrowser-app%}) and navigate to **ComboBox > Templates** category.
3737
3838
## See Also
3939

Loading
Loading
417 KB
Loading
-39.3 KB
Binary file not shown.
Loading
Loading
Loading
Loading
Loading
113 KB
Loading
Loading
Loading
-51.8 KB
Binary file not shown.
Loading
14.3 KB
Loading
Loading
Loading

controls/combobox/keyboard-support.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ The [Telerik UI for .NET MAUI ComboBox]({%slug combobox-overview%}) provides key
1414
1515
The following table lists the actions and keyboard combinations that are available in the ComboBox:
1616

17-
| Hotkey Combinations | Action |
18-
|----------------------|-------------------|
17+
| Hotkey Combinations | Action |
18+
| -------------------- | ------ |
1919
| `F4` | Shows the drop-down if it is closed. If the drop-down is opened pressing the F4 key will submit the selection and close the drop-down. |
2020
| `Up Arrow` / `Down Arrow` | If the drop-down is opened, pressing Up/Down Arrows will change the highlighted item in the drop-down list. If it is closed pressing Up/Down Arrows will change the SelectedItem.|
2121
| `Left Arrow` / `Right Arrow` | If the drop-down is opened, pressing Left/Right Arrows will change the highlighted item in the drop-down list. If it is closed pressing Left/Right Arrows will change the SelectedItem. They work only when `IsEditable` is `False`. |

controls/combobox/selection.md

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,48 +25,53 @@ ComboBox control has a support for single and multiple selection. You can specif
2525

2626
The default `SelectinMode`(enumeration of type `Telerik.Maui.Controls.ComboBoxSelectionMode`) of the ComboBox control is `Single`.
2727

28-
### Example with Single Selection and SelectedIndex set
28+
### Example with Single Selection and SelectedIndex Set
2929

30-
Here is the `RadComboBox` definition in XAML:
30+
**1.** Define the `RadComboBox` in XAML:
3131

3232
<snippet id='combobox-single-selection'/>
3333

34-
you need to add the following namespace:
34+
**2.** Add the `telerik` namespace:
3535

3636
```XAML
3737
xmlns:telerik="http://schemas.telerik.com/2022/xaml/maui"
3838
```
3939

40-
the sample business model
40+
**3.** Add a sample business model:
4141

4242
<snippet id='combobox-city-businessmodel'/>
4343

44-
and the ViewModel used:
44+
**4.** Add the `ViewModel`:
4545

4646
<snippet id='combobox-singleselection-viewmodel'/>
4747

48-
This is how single selection looks:
48+
This is how single selection looks on Android:
4949

50-
![ComboBox Single Selection](images/dropdown-single-selection.png)
50+
![. NET MAUI ComboBox Single Selection](images/dropdown-single-selection.png)
5151

5252
### Example with Multiple Selection and SelectedItems set
5353

54-
Here is the ComboBox definition in XAML:
54+
**1.** Define the ComboBox in XAML:
5555

5656
<snippet id='combobox-multiple-selection'/>
5757

58+
**2.** Add the `telerik` namespace:
5859

59-
the sample business model
60+
```XAML
61+
xmlns:telerik="http://schemas.telerik.com/2022/xaml/maui"
62+
```
63+
64+
**3.** Add a sample business model
6065

6166
<snippet id='combobox-city-businessmodel'/>
6267

63-
and the ViewModel used:
68+
**4.** Add the `ViewModel`:
6469

6570
<snippet id='combobox-multipleselection-viewmodel'/>
6671

67-
This is how multiple selection looks:
72+
This is how multiple selection looks on WinUI:
6873

69-
![ComboBox Multiple Selection](images/combobox-multiple-selection-selecteditems.png)
74+
![.NET MAUI ComboBox Multiple Selection](images/combobox-multiple-selection-selecteditems.png)
7075

7176
>important The Selection example can be found in our [SDK Browser Application]({%slug sdkbrowser-app%}). You can find the applications in the **Examples** folder of your local **Telerik UI for .NET MAUI** installation or in the following [GitHub repo](https://github.com/telerik/maui-samples/tree/main/Samples/SdkBrowser).
7277

controls/combobox/styling.md

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,41 +10,42 @@ slug: combobox-styling
1010

1111
The [Telerik UI for .NET MAUI ComboBox]({%slug combobox-overview%}) provides the following Style properties for customizing its look:
1212

13-
* `PlaceholderColor`(`Microsoft.Maui.Graphics.Color`)&mdash;Defines the color for the placeholder text.
14-
* `TextColor`(`Microsoft.Maui.Graphics.Color`)&mdash;Defines the color of the text when the control is editable and the color of the selected item when the control is not editable and the selection mode is single.
15-
* `BackgroundColor`(`Microsoft.Maui.Graphics.Color`)&mdash;Defines the background color of the control.
16-
* `BorderColor`(`Microsoft.Maui.Graphics.Color`)&mdash;Defines the color of the border.
17-
* `BorderThickness`(`Microsoft.Maui.Thickness`)&mdash;Defines the thickness of the border.
18-
* `ClearButtonStyle`(of type `Style` with target type `Telerik.Maui.Controls.RadButton`)&mdash;Defines the style for the clear button.
19-
* `Font Options`(`FontAttributes`, `FontFamily`, `FontSize`)&mdash;Define the font options to the text of the RadComboBox. It's applied to the Placeholder, Selected Text(for single selection) and when the control is in Editable Mode.
13+
* `PlaceholderColor` (`Microsoft.Maui.Graphics.Color`)&mdash;Defines the color for the placeholder text.
14+
* `TextColor` (`Microsoft.Maui.Graphics.Color`)&mdash;Defines the color of the text when the control is editable and the color of the selected item when the control is not editable and the selection mode is single.
15+
* `BackgroundColor` (`Microsoft.Maui.Graphics.Color`)&mdash;Defines the background color of the control.
16+
* `BorderColor` (`Microsoft.Maui.Graphics.Color`)&mdash;Defines the color of the border.
17+
* `BorderThickness` (`Microsoft.Maui.Thickness`)&mdash;Defines the thickness of the border.
18+
* `ClearButtonStyle` (of type `Style` with target type `Telerik.Maui.Controls.RadButton`)&mdash;Defines the style for the clear button.
19+
* `Font Options` (`FontAttributes`, `FontFamily`, `FontSize`)&mdash;Define the font options to the text of the RadComboBox. It's applied to the Placeholder, Selected Text (for single selection), and when the control is in Editable Mode.
20+
* `HighlightTextColor` (`Color`)&mdash;Specifies the color of the text that will be highlighted when searching (`IsEditable` must be `True`).
2021

2122
### Example for ComboBox Styling
2223

23-
Here is the ComboBox definition in XAML:
24+
**1.** Define the ComboBox in XAML:
2425

2526
<snippet id='combobox-styling'/>
2627

27-
in addition you will need to add the `telerik` namespace:
28+
**2.** Add the `telerik` namespace:
2829

2930
```XAML
3031
xmlns:telerik="http://schemas.telerik.com/2022/xaml/maui"
3132
```
3233

33-
the sample business model
34+
**3.** Add sample business model:
3435

3536
<snippet id='combobox-city-businessmodel'/>
3637

37-
and the ViewModel used:
38+
**4.** Add the `ViewModel`:
3839

3940
<snippet id='comobobox-editing-viewmodel'/>
4041

4142
Here is how the ComboBox looks when styling is applied:
4243

43-
![ComboBox Styling](images/combobox-styling.png)
44+
![.NET MAUI ComboBox Styling](images/combobox-styling.png)
4445

4546
Here is how the styling is applied when the control is focused and item is selected:
4647

47-
![ComboBox Styling on Selected Item](images/combobox-styling-focused.png)
48+
![.NET MAUI ComboBox Styling on Selected Item](images/combobox-styling-focused.png)
4849

4950
> For the ComboBox Styling example, go to the [SDKBrowser Demo Application]({%slug sdkbrowser-app%}) and navigate to the **ComboBox > Styling** category.
5051
@@ -60,27 +61,27 @@ The following properties styles the ComboBox Drop Down:
6061

6162
### Example for DropDown Styling
6263

63-
Here is the ComboBox definition in XAML:
64+
**1.** Define the ComboBox in XAML:
6465

6566
<snippet id='combobox-dropdown-styling'/>
6667

67-
add the following namespace:
68+
**2.** Add the `telerik` namespace:
6869

6970
<snippet id='xmlns-telerikinput'/>
7071

71-
The DropDown Button Style is defined in the Page's ResourceDictionary:
72+
**3.** Define the DropDown Button Style in the Page's ResourceDictionary:
7273

7374
<snippet id='combobox-dropdownbutton-style'/>
7475

75-
the sample business model
76+
**4.** Add sample business model:
7677

7778
<snippet id='combobox-city-businessmodel'/>
7879

79-
and the ViewModel used:
80+
**5.** Add the `ViewModel` used:
8081

8182
<snippet id='comobobox-editing-viewmodel'/>
8283

83-
Here is how the Drop Down Styling looks:
84+
Here is how the Drop Down Styling looks on Android:
8485

8586
![ComboBox Drop Down Style](images/combobox-drop-down-style.png)
8687

0 commit comments

Comments
 (0)