Using the XAML StaticResource brush color for DirectX drawing in C++? RRS feed

  • Question

  • Hi!

    Is it possible to use or get the Color, for example from the ApplicationPageBackgroundThemeBrush, for my DirectX brush?

    Something like the following pseudocode:

    ApplicationPageBackgroundThemeBrush.Color -> D2D1::ColorF::ApplicationPageBackgroundThemeColor

    Saturday, June 9, 2012 1:40 PM

All replies




    I think you can write a function to map them, with XAML brush input and Direct X output.


    Best regards,


    Jesse Jiang [MSFT]
    MSDN Community Support | Feedback to us

    Monday, June 11, 2012 11:21 AM
  • Hello Johannes,

    Was Jesse's answer helpful or do you still need more help with this?


    Windows Media SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/

    Saturday, June 16, 2012 12:23 AM
  • Hi James,

    it wasn't really helpful, because i wanted to know what i have to put into the function to convert it :-).


    Tuesday, June 19, 2012 5:40 PM