MaterialDesignInXAML / MaterialDesignInXAML/MaterialDesignInXamlToolkit

Shadows and appearances improvements

Đang mở
#2,377 1 bình luận 2 reaction 1 người được giao Xem trên GitHub

@Keboo đang làm issue này rồi.

Từ ngày 16/7/2021.

enhancement up-for-grabs
Ngôn ngữ chính
C#
Star
16.3k
Fork
3.5k
Merge trung bình
1 ngày 22 giờ
Pull request đã merge (30 ngày)
8

Mô tả

Hello to all!
I want to suggest some performance improvements for animations for MaterialDesignInXamlToolkit library and resolve some issues, I faced with.

So, the first one: don't use BitmapCache for Shadows and for animations. I suggest to use FastShadow (https://stackoverflow.com/questions/961875/wpf-animation-ui-features-performance-and-benchmarking) with the same appearance. Why don't use BitmapCache (and related ShadowAssist with default set for CacheMode)? BitmapCache invokes some problems on WPF, for example when user has multiple windows. And if those shadows are not static (for example when animate them in DrawerHost or other controls) I explained it in #2260 and https://stackoverflow.com/questions/66471514/wpf-rendering-issue-on-any-machine-related-to-bitmapcache. But if you want to test on your machine, please test this repo - https://github.com/Erapchu/GhostWindows
And please, just use one ShadowAssist instance instead of directly BitmapCache when coding in XAML.
Additionally, may be resolve issue with graphic artifacts? I remember one artifact related to #2125 issue.

This is just suggestions, and if maintainers don't want to rewrite some code, I'll understand it. Because it's may be hard work to rewrite controls and handle all of situations.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.