HandyControl icon indicating copy to clipboard operation
HandyControl copied to clipboard

ListClock错误显示为Clock的样式

Open hdzs opened this issue 2 years ago • 0 comments

Describe the bug

在ListBox或ItemsControl中使用 TimePicker,并将 TimePicker.Clock设置为ListClock时,运行后显示的是圆形表盘(Clock),在ListBox之外使用同样的代码,则可以正常显示。需要注意的是,虽然ListClock启动时显示错误,但热重载修改TimePicker的属性值,则ListClock显示正常。 HandyControl版本3.3.0,.net 5.0环境。

Steps to reproduce the bug

1.ItemsControl中重写ItemTemplate,TimePicker代码如下 <hc:TimePicker ShowClearButton="True" Style="{StaticResource TimePickerPlus}" hc:TimePicker.Clock <hc:ListClock /> </hc:TimePicker.Clock> </hc:TimePicker> 2.设置数据绑定,新增子项,编辑时间时,弹出的选择窗口为Clock圆盘样式

Expected behavior

Uploading 1648884529(1).png…

Screenshots

No response

NuGet package version

No response

IDE

Visual Studio 2022

Framework type

.Net 5.0

Windows version

October 2020 Update (19042)

Additional context

No response

hdzs avatar Apr 02 '22 07:04 hdzs