Pickers let users select an option.
<material3:MaterialPicker x:Name="pckColors"
AnimateError="True"
PlaceholderColor="{StaticResource PlaceholderColor}"
ItemsSource="{Binding ItemsSourceColors}"
AnimatePlaceholder="True"
Placeholder="Select a Color"
SelectedItem="{Binding SelectedItemColor}" />
This property is to set the corner radius for the control. This is used only when you set HasBorder as true.
CornerRadius supports a uniform radius to the four corners or you can set a different corner radius for each corner:
- CornerRadius="10"
- CornerRadius="0,10,10,10"
This property is to set the if you want or not animate the control on error.
This property is to set the horizontal text alignment.
- Start
- Center
- End
This property is to set the text color.
This property is to set the focused text color.
This property is to set the disabled text color.
This property is to set the font size.
This property is to set the font family.
This property is to set the placeholder of the material picker.
This property is to set the placeholder color of the material picker.
If you set this property to true the placeholder will be translated to label place. you mustn't set Label Text
This property is to set the label of the material picker.
This property is to set the label color of the material picker.
This property is to set the focused label color.
This property is to set the disabled label color.
This property is to set the label size of the material picker.
This property is to set the label font family of the material picker.
This property is to set the label margin family of the material picker. By default uses (16,0,16,0).
This property is to set the supporting text of the material picker.
This property is to set the supporting text color of the material picker.
This property is to set the supporting text size of the material picker.
This property is to set the supporting text font family of the material picker.
This property is to set the supporting text margin of the material picker. By default uses (16,4,16,0).
This property is to set the border color. This is enabled when you set the property HasBorder equals true.
This property is to set the focused border color. This is enabled when you set the property HasBorder equals true.
This property is to set the border color. This is enabled when you set the property HasBorder equals true.
This property is to set if this control has border or not.
This property is to set the border width.
This property is to set the indicator color.
This property is to set the background color.
This property is to set the leading icon. This can be png or jpg.
This property is to set the leading icon with support to svg.
This property is to set the leading icon command.
This property is to set the leading icon command parameter.
This property is to set the trailing icon. This can be png or jpg.
This property is to set the trailing icon with support to svg.
This property is to set the trailing icon command.
This property is to set the trailing icon command parameter.
This property is to set the items source
If you use a custom object, we recommend set PropertyPath property with the name of the property that you want to show its value in the picker list. In other case you must override ToString method (use by default) or use a string list.
This property is to set the selected item.
This property is to set name of the property that you want to show its value in the picker list.
This property is to set the Label Line Break Mode
- NoWrap,
- WordWrap,
- CharacterWrap,
- HeadTruncation,
- TailTruncation,
- MiddleTruncation
This property is to set the Supporting LineBreakMode.
- NoWrap,
- WordWrap,
- CharacterWrap,
- HeadTruncation,
- TailTruncation,
- MiddleTruncation
This property is to set the Multiline Enabled
This property is to set the picker row height.
This property is to get the selected index
This property is to set the padding of the control. By default uses (16, 8).