/// <summary>Creates a new Corona surface adapter which wraps the given DrawingSurface Xaml control.</summary> public DotNetBackgroundSurfaceAdapter() { // Initialize member variables. fPageAdapter = new UI.DotNetPageAdapter(); fDispatcher = new Corona.WinRT.Phone.Interop.UI.DotNetDispatcher(); fLastReceivedOrientation = Corona.WinRT.Interop.UI.PageOrientation.Unknown; fDirect3DSurfaceAdapter = new Direct3DSurfaceAdapter(this); // Add event handlers. fPageAdapter.OrientationChanged += OnOrientationChanged; }
/// <summary>Creates a new adapter used to wrap a .NET "DrawingSurface" Xaml control.</summary> /// <remarks> /// This adapter does not reference a DrawingSurface upon creation. The caller is expected to assign this /// adapter a reference to an existing surface via its "DrawingSurface" property after creation. /// </remarks> public DotNetDrawingSurfaceAdapter() { fDrawingSurface = null; fDispatcher = new Corona.WinRT.Phone.Interop.UI.DotNetDispatcher(); fDirect3DSurfaceAdapter = new Direct3DSurfaceAdapter(this); }