Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RatingControl Lightweight Styling not working for RatingControlSelectedForeground #1349

Closed
kazo0 opened this issue Feb 7, 2024 · 0 comments · Fixed by #1350
Closed

RatingControl Lightweight Styling not working for RatingControlSelectedForeground #1349

kazo0 opened this issue Feb 7, 2024 · 0 comments · Fixed by #1350
Assignees
Labels
kind/bug Something isn't working

Comments

@kazo0
Copy link
Collaborator

kazo0 commented Feb 7, 2024

Discussion: unoplatform/uno#15394

Given the following XAML:

<Grid VerticalAlignment="Center">
    <Grid.RowDefinitions>
        <RowDefinition Height="Auto" />
        <RowDefinition Height="Auto" />
    </Grid.RowDefinitions>
    <RatingControl VerticalAlignment="Center"
                    HorizontalAlignment="Center"
                    Value="3">
        <RatingControl.Resources>
            <SolidColorBrush x:Key="RatingControlSelectedForeground"
                                Color="Red" />
            <SolidColorBrush x:Key="RatingControlUnselectedForeground"
                                Color="Orange" />
        </RatingControl.Resources>
    </RatingControl>
    <Border Grid.Row="1">
        <Border.Resources>
            <MaterialTheme xmlns="using:Uno.Material" />
        </Border.Resources>
        <RatingControl VerticalAlignment="Center"
                        HorizontalAlignment="Center"
                        Value="3">
            <RatingControl.Resources>
                <SolidColorBrush x:Key="RatingControlSelectedForeground"
                                    Color="Red" />
                <SolidColorBrush x:Key="RatingControlUnselectedForeground"
                                    Color="Orange" />
            </RatingControl.Resources>
        </RatingControl>
    </Border>
</Grid>

Current behavior

image

Expected behavior

image

Sample app

ratingcontrolapp.zip

@kazo0 kazo0 added the kind/bug Something isn't working label Feb 7, 2024
@kazo0 kazo0 self-assigned this Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant