Windows Phone 8 Direct3D + Xaml application, WriteableBitmap.Render bug - by Seznam cz

Status : 


Sign in
to vote
ID 785537 Comments
Status Active Workarounds
Type Bug Repros 0
Opened 4/25/2013 12:15:14 AM
Access Restriction Public



I have a problem with WriteableBitmap class in an application that combines the Direct3D (DrawingSurfaceBackgroundGrid) with Xaml. In my application I use Direct3D to draw map and Xaml to draw UI. Now I need create some popup pinned to the map. So I need texture of the popup. I want use WriteableBitmap.Render() + Invalidate() method to draw UI and then I will copy pixels to my texture in Direct3D render. 

The problem is that WriteableBitmap.Render in this case does not work properly and the render results are more or less random. First timeWriteableBitmap.Render generates the correct bitmap. Second time generates an empty bitmap and third time it  generates data that are neither UI nor empty. But when I "disconnect" Direct3Dfrom a page (DrawingSurfaceBackground.SetBackgroundContentProvider(nullptr)) andthe page looks line normal Xaml page without Direct3D, everithing works OK. 

Important: This behavior occurs only when the application is running without debugger attached.
Sign in to post a comment.
Posted by Paul [MSFT] on 4/29/2013 at 3:09 PM
Thank you for submitting this Connect issue. The issue you reported appears to be on a released Windows Phone Product. As we only accept feedback on Visual Studio & .Net Framework through this site, we have notified the Windows Phone team and are closing this issue. If this issue is severe, causing critical business situations or blocking your product development or deployment, please go to for assistance. To post a question or receive community support for developing Windows Phone apps, consider posting your question or concern on the Windows Phone Development forum.
Posted by Microsoft on 4/25/2013 at 8:05 PM
Thank you for submitting feedback on Visual Studio and .NET Framework. Your issue has been routed to the appropriate VS development team for investigation. We will contact you if we require any additional information.
Posted by Macy [MSFT] on 4/25/2013 at 12:50 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(