Skip to content

Bug 动态切换主题后,Carousel的PageIndex未更新 #1744

@flydream3618

Description

@flydream3618

Describe the bug

Carousel控件UpdateItemsPosition()方法:动态切换主题时,Items.Count>0,但PageIndex未更新,闪退

Steps to reproduce the bug

动态切换主题后,当Items.Count=1,此时PageIndex并未更新,依然为-1,闪退,临时方案:额外的检查Items.Count大于0时:PageIndex = PageIndex < 0 ? 0 : PageIndex;

Expected behavior

No response

Screenshots

No response

NuGet package version

None

IDE

No response

Framework type

No response

Windows version

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions