MaterialDesignInXAML / MaterialDesignInXAML/MaterialDesignInXamlToolkit

DatePicker DPI Awareness Issue

Abierto
#1,714 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

bug up-for-grabs
Lenguaje dominante
C#
Estrellas
16.3k
Forks
3.5k
Merge medio
1 d 22 h
PR fusionados (30 d)
8

Descripción

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

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

Comienza con el reproductor WPF XAML proporcionado y compara el comportamiento del popup de DatePicker estándar y del popup de DatePicker con estilo material bajo PerMonitorV2 DPI awareness. Se considera terminado cuando el popup con estilo material se escala correctamente y deja de verse borroso; el issue no indica ningún archivo fuente ni ninguna prueba que ejecutar.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
csharp
Área
desktop
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
30/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.