Grial-UI-Kit-Support
Grial-UI-Kit-Support copied to clipboard
Change style of (Date)Picker
Hi,
I expected to style Picker in much the same way as Entry, however changing the border and placeholder colors does not work (Textcolor does work). Here is my style definition:
<Style x:Key ="WwPickerStyle"
TargetType="Picker">
<Setter Property="TextColor"
Value ="White" />
<Setter Property="artina:EntryProperties.BorderStyle
Value ="BottomLine" />
<Setter Property="artina:EntryProperties.BorderWidth
Value ="1" />
<Setter Property="artina:EntryProperties.BorderColor
Value ="{ StaticResource TranslucidWhite }" />
<Setter Property="artina:EntryProperties.PlaceholderColor
Value ="{ StaticResource PlaceholderColorEntry }" />
<Style.Triggers>
<Trigger TargetType="Picker"
Property ="IsFocused"
Value ="True">
<Setter Property="artina:EntryProperties.BorderColor
Value ="{StaticResource AccentColor}" />
</Trigger>
</Style.Triggers>
</Style>
```"""""
And this is how I use the style within my ContentPage:
<Picker Title ="{i18n:Translate Gender}" x:Name ="genderPicker" SelectedIndex="{Binding Gender, Mode=TwoWay}" Style ="{ StaticResource WwPickerStyle }" />
Am I doing something wrong or is this not currently implemented. If not implemented, I would love to see it added to the release 2.0.
Many thanks!
Hi @nijsf, This not currently available on Grial 1.5 but we will addin it to Grial 2.0.
Best, JP
Thanks. Much appreciated.
Op 23 aug. 2016 om 16:59 heeft jpbrocca [email protected] het volgende geschreven:
Hi @nijsf, This not currently available on Grial 1.5 but we will addin it to Grial 2.0.
Best, JP
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
was this ever fixed?
<Style x:Key="ArtinaPickerStyle" TargetType="Picker">
<Setter Property="artina:PickerProperties.BorderColor" Value="{StaticResource mycolor}" />
<Setter Property="artina:PickerProperties.BorderWidth" Value="1" />
</Style>
this code doesnt appear to work...'
thanks