using System; using Windows.ApplicationModel.Core; using Urho.SharpReality; namespace Urho { public class UrhoAppViewSource : IFrameworkViewSource where T : StereoApplication { readonly ApplicationOptions opts; public event Action UrhoAppViewCreated; public UrhoAppViewSource() { } public UrhoAppViewSource(ApplicationOptions opts) { this.opts = opts; } public IFrameworkView CreateView() { var appView = UrhoAppView.Create(opts); UrhoAppViewCreated?.Invoke(appView); return appView; } } }