how to get a drawingsession from a canvascontrol (win2d)
问题 In a win8 app,how to get a drawingsession from a canvascontrol (win2d),or ,how to draw image on canvascontrol out of the function:canvasControl_Draw. 回答1: You cannot - this is a key part of policy provided by CanvasControl. This ensures that: the drawingsession is created and closed at the appropriate time drawing isn't attempted before resources have been created handling device lost errors are handled If you want to force a redraw you can use CanvasControl.Invalidate(). Alternatively, you