Direct X from C# RRS feed

  • Question

  • Searching the forums there is a topic on this but it's dated 2013 so I thought I would see if things have changed.

    I have a UWP application written in c#.

    I am thinking of experimenting with Direct X with a view to adding some simple 3d models, we are not talking high frame rate or gaming here.

    I understand that direct x is a native c++ com technology but there are some wrappers to access it from c#.

    However the most popular of these SharpDX is no longer being developed so I don't want to start out using a technology that is obsolete.

    I don't actually want to expose DirectX api's to c# - my thinking was that the link between the c++ side and the c# side would be app specific command and data.  The C++ side would do all the directx api's itself - using only the application commands and data given to it from c# side so I don't need to start wrapping individual direct x functions.

    Is this possible?  My app is uwp c# and I make a lot of use of the xaml ui controls and I would want to render into a region of that.


    Sunday, June 21, 2020 10:28 AM


All replies

  • You can use SwapChainPanel

    as mentioned in this thread : [UWP][Xaml] 3d model loading

    Sunday, June 21, 2020 11:15 AM
  • Thank you - not noticed this before but looks exactly what I want.


    Sunday, June 21, 2020 2:36 PM
  • Hi,

    Has your issue been resolved?

    If so, please click on the "Mark as answer" option of the reply that solved your question, so that it will help other members to find the solution quickly if they face a similar issue.

    Best Regards,


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, July 7, 2020 8:22 AM