locked
AllowsTransparency="True" is main reason of wpf performance ? RRS feed

  • Question

  • Hi!

    I tried to improve performance of wpf for couple of days.

    I finally found that AllowsTransparency="True" is the main reason to affect performance.

    When I don't use AllowsTransparency property, CPU usage decreased a lot more.

    But I really want to use that property cause of customized window and resizing.

    The question is.

    1. Is there any way to improve performance when i use AllowsTransparency = "True" ?

    2. If I don't use that property, no way to make window to round with image?

    Please Help Me!!

    Thank you.

     

    Friday, December 2, 2011 2:15 PM

Answers

All replies

  • Hey Adam, good day to you.

    I've done a little Google job to find another way of customizing a window without using the AllowTransparency way but found nothing. I've also found a list of performance tips to help improving your WPF app:

    http://www.wpftutorial.net/10PerformanceTips.html

    Good luck to you.


    Please, mark my reply as Answer if it helps or vote it up if it gives a key to the solution.
    Thanks in advance and good luck.
    Ahmed M. Gamil
    "It is not titles that honor men, but men that honor titles."
    • Proposed as answer by Sheldon _Xiao Wednesday, December 14, 2011 6:05 AM
    Saturday, December 3, 2011 10:57 AM
  • Hi AdamWorld,

    You could follow this article to improve your WPF application performance:

    http://msdn.microsoft.com/en-us/library/aa970683.aspx

    there is a performance tool:

    http://msdn.microsoft.com/en-us/library/aa969767.aspx

     

    best regards,


    Sheldon _Xiao[MSFT]
    MSDN Community Support | Feedback to us
    Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by Sheldon _Xiao Wednesday, December 14, 2011 6:05 AM
    Tuesday, December 6, 2011 8:28 AM
  • Hi AdamWorld,

    I am marking your issue as "Answered", if you have new findings about your issue, please let me know.

     

    Best regards,


    Sheldon _Xiao[MSFT]
    MSDN Community Support | Feedback to us
    Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Wednesday, December 14, 2011 6:05 AM