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

CheckBox's VisualState is not work #8596

Closed
kashin777 opened this issue Jul 7, 2022 · 3 comments
Closed

CheckBox's VisualState is not work #8596

kashin777 opened this issue Jul 7, 2022 · 3 comments
Assignees
Labels
area-controls-checkbox CheckBox fixed-in-6.0.541 Look for this fix in 6.0.541! fixed-in-7.0.0-rc.2.6866 Look for this fix in 7.0.0-rc.2.6866! platform/android 🤖 platform/windows 🪟 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Milestone

Comments

@kashin777
Copy link

Description

I copied docs sample.
but, on Windows and Android app not work.

Steps to Reproduce

SubPage.xaml

<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:localModel="clr-namespace:MauiAppDemo.Models"
             x:Class="MauiAppDemo.Pages.SubPage">
    <HorizontalStackLayout>
        <CheckBox Margin="5" Color="Red" />
        <CheckBox Margin="5">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="CommonStates">
                    <VisualState x:Name="Normal">
                        <VisualState.Setters>
                            <Setter Property="Color"
                            Value="Red" />
                        </VisualState.Setters>
                    </VisualState>

                    <VisualState x:Name="IsChecked">
                        <VisualState.Setters>
                            <Setter Property="Color"
                            Value="Green" />
                        </VisualState.Setters>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
        </CheckBox>
    </HorizontalStackLayout>
</ContentPage>

expected CheckBox Color is Red, but was default style color.

image

Version with bug

6.0.400 (current)

Last version that worked well

Unknown/Other

Affected platforms

Android, Windows

Affected platform versions

6.0.400-preview.22301.10

Did you find any workaround?

No response

Relevant log output

No response

@kashin777 kashin777 added s/needs-verification Indicates that this issue needs initial verification before further triage will happen t/bug Something isn't working labels Jul 7, 2022
@Eilon Eilon added the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label Jul 7, 2022
@jsuarezruiz jsuarezruiz added platform/windows 🪟 platform/android 🤖 s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed and removed s/needs-verification Indicates that this issue needs initial verification before further triage will happen labels Jul 8, 2022
@jsuarezruiz jsuarezruiz self-assigned this Jul 8, 2022
@jsuarezruiz jsuarezruiz added this to the 6.0-servicing milestone Jul 11, 2022
@Redth Redth modified the milestones: 6.0-servicing, Backlog Aug 30, 2022
@ghost
Copy link

ghost commented Aug 30, 2022

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

@jsuarezruiz
Copy link
Contributor

This issue will be fixed by #8605

rmarinho pushed a commit that referenced this issue Sep 12, 2022
* Propagate CheckBox Color property changes to handlers

* Added device test
@rmarinho
Copy link
Member

fixed by #8605

@ghost ghost locked as resolved and limited conversation to collaborators Oct 12, 2022
@samhouts samhouts added fixed-in-6.0.541 Look for this fix in 6.0.541! fixed-in-7.0.0-rc.2.6866 Look for this fix in 7.0.0-rc.2.6866! labels Feb 17, 2023
@Eilon Eilon added area-controls-checkbox CheckBox and removed legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor labels May 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-checkbox CheckBox fixed-in-6.0.541 Look for this fix in 6.0.541! fixed-in-7.0.0-rc.2.6866 Look for this fix in 7.0.0-rc.2.6866! platform/android 🤖 platform/windows 🪟 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants