MaterialDesignInXAML / MaterialDesignInXAML/MaterialDesignInXamlToolkit

DatePicker DPI Awareness Issue

オープン
#1,714 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

bug up-for-grabs
主要言語
C#
スター
16.3k
フォーク
3.5k
平均マージ
1日 22時間
マージ済み PR(30日)
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. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

提供された WPF XAML 再現用コードから始め、PerMonitorV2 DPI awareness 下での標準 DatePicker ポップアップと material スタイルの DatePicker ポップアップの動作を比較します。material スタイルのポップアップが正しくスケーリングされ、ぼやけなくなれば完了です。この issue では、対象のソースファイルも実行するテストも指定されていません。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
csharp
領域
desktop
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
30/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。