MaterialDesignInXAML / MaterialDesignInXAML/MaterialDesignInXamlToolkit

DatePicker DPI Awareness Issue

未关闭
#1,714 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

bug up-for-grabs
主要语言
C#
星标
16.3k
派生
3.5k
平均合并
1 天 22 小时
30 天内合并 PR
8

描述

Hello,

I'm using the lib in a WPF app with PerMonitorV2 DPI awareness enabled. Things all seem fine, until I use the DatePicker control.

The popup appears blurry and has not been scaled properly. The textbox on the main page displays fine.

I have two DatePickers. I've set the first one to use the standard WPF style, and the second one to use the material style. The standard one is fine, the material style is not.

My code is:

`
<Grid.ColumnDefinitions>




</Grid.ColumnDefinitions>

                    <TextBlock Grid.Column="0" Text="From:" VerticalAlignment="Center" Margin="0 5 5 6" />
                    <DatePicker Style="{x:Null}" Grid.Column="1" Width="85" FirstDayOfWeek="Monday" IsTodayHighlighted="False" SelectedDate="{Binding FilterStartDate}" DisplayDateStart="{Binding DatePickerMin}" DisplayDateEnd="{Binding DatePickerMax}" />

                    <TextBlock Grid.Column="2" Text="To:" VerticalAlignment="Center" Margin="8 5 5 6"  />
                    <DatePicker Grid.Column="3" Width="85" FirstDayOfWeek="Monday" IsTodayHighlighted="False" SelectedDate="{Binding FilterFinishDate}" DisplayDateStart="{Binding DatePickerMin}" DisplayDateEnd="{Binding DatePickerMax}" />
                </Grid>`

Without the popups open:

image

WPF Style:

image

Material Style:

image

Please forgive me, I don't know if this is something I've done, or is a bug in the theme!

Thanks

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从提供的 WPF XAML 复现程序开始,并比较 PerMonitorV2 DPI awareness 下标准 DatePicker 弹出窗口和 material 样式弹出窗口的行为。完成的标准是 material 样式弹出窗口能够正确缩放且不再模糊;该 issue 没有指定源文件或要运行的测试。

由索引模型根据 Issue 内容生成。

评估

技术栈
csharp
领域
desktop
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
30/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。