Grial-UI-Kit-Support icon indicating copy to clipboard operation
Grial-UI-Kit-Support copied to clipboard

Change style of (Date)Picker

Open nijsf opened this issue 8 years ago • 3 comments

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!

nijsf avatar Aug 22 '16 19:08 nijsf

Hi @nijsf, This not currently available on Grial 1.5 but we will addin it to Grial 2.0.

Best, JP

jpbrocca avatar Aug 23 '16 14:08 jpbrocca

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.

nijsf avatar Aug 23 '16 21:08 nijsf

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

Zoso221 avatar May 30 '17 16:05 Zoso221