protected override void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); this.context = new SharpDXContext(); this.renderer = new SceneRenderer(this.context); this.context.BindToControl(this.SwapChainPanel); this.context.Render += context_Render; }
protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e) { base.OnNavigatedTo(e); this.context = new SharpDXContext(); this.renderer = new SceneRenderer(this.context); this.context.Render += context_Render; this.context.BindToControl(this.DrawingSurface); }
public SwapChainBackgroundPanelPage() { this.InitializeComponent(); this.context = new SharpDXContext(); this.renderer = new SceneRenderer(this.context); this.context.BindToControl(this.LayoutRoot); this.context.Render += context_Render; }