Example #1
0
        async void _webControl_Loaded(object sender, EventArgs e)
        {
            var width  = Math.Max(WebControl.Width, WebControl.Height);
            var height = Math.Min(WebControl.Width, WebControl.Height);

#if WINDOWS_PHONE_APP
            var ui = await GenerateUi((int)(width / 2), (int)(height / 2));
#else
            var ui = await GenerateUi((int)(width), (int)(height));
#endif
            _contentView.InitializeDisplay(ui.ToArray());
            _contentView.PageLoaded        += _contentView_PageLoaded;
            _contentView.DisplayEventFired += _contentView_DisplayEventFired;
        }