-
-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Dropdown | ||
The Dropdown component is a button that, when clicked, displays a list of options for the user to choose from. It's similar to Picker from MAUI but with a different user experience. The Dropdown component is a good choice when you have a small number of options to choose from. | ||
|
||
## Usage | ||
|
||
`Dropdown` is defined in the `UraniumUI.Controls` namespace. | ||
|
||
You can access it in XAML with default UraniumUI namespace like this: | ||
|
||
```xml | ||
xmlns:uranium="http://schemas.enisn-projects.io/dotnet/maui/uraniumui" | ||
``` | ||
|
||
Then you can use it like this: | ||
|
||
```xml | ||
<uranium:Dropdown ItemsSource="{Binding Items}" SelectedItem="{Binding SelectedItem}" Placeholder="Choose" /> | ||
``` | ||
|
||
| Windows | Android | iOS & Mac | | ||
| --- | --- | --- | | ||
| ![Dropdown](../../images/dropdown-win.gif) | ![Dropdown](../../images/dropdown-android.gif) | ![Dropdown](../../images/dropdown-ios.gif) | | ||
|
||
## Properties | ||
|
||
| Property | Description | | ||
| --- | --- | | ||
| `ItemsSource` | The collection of items to display in the dropdown. | | ||
| `SelectedItem` | The selected item in the dropdown. | | ||
| `Placeholder` | The text to display when no item is selected. | | ||
| `PlaceholderColor` | The color of the placeholder text. | | ||
| `TextColor` | The color of the text in the dropdown. | | ||
| `HorizontalTextAlignment` | The horizontal alignment of the text in the dropdown. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.