MaterialDesignInXAML / MaterialDesignInXAML/MaterialDesignInXamlToolkit
DatePicker DPI Awareness Issue
Nadie ha tomado este issue todavía.
- 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:

WPF Style:

Material Style:

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
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- 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