c# - A pop-up element containing a web-view with video -


is possible create pop-up element containing web-view uri source (for instance http://www.youtube.com/embed/z-m6ua9iqkg)? how make pop-up window appear after clicking on button, , in center of screen?

1) yes, searched internet, don't know how put web view element in pop-up, because after clicking shows blank white rectangle (5x10). 2) used flyout callipso, shows blank white rectangle (5x10) again :

        flyout flyout = new flyout();         flyout.placementtarget = sender uielement;         flyout.placement = placementmode.top;          webview web = new webview();         web.horizontalalignment=horizontalalignment.center;         web.verticalalignment = verticalalignment.center;         string html = "http://www.youtube.com/embed/z-m6ua9iqkg";          flyout.content = web;         web.navigatetostring(html);         flyout.isopen = true;          updatelayout(); 

finally, have (problem solved, sachin s msdn), hope helps someone:

popup popup = new popup();          grid panel = new grid();          panel.height = 250;         panel.width = 250;          panel.transitions = new transitioncollection();         panel.transitions.add(new popupthemetransition());         webview web = new webview();         //web.horizontalalignment = horizontalalignment.center;         //web.verticalalignment = verticalalignment.center;         web.navigate(item.playeruri);         popup.child = panel;         panel.children.add(web);         popup.horizontalalignment = horizontalalignment.center;         popup.verticalalignment = verticalalignment.center;           popup.horizontaloffset = (window.current.bounds.width / 2 - panel.width / 2);         popup.verticaloffset = (window.current.bounds.height / 2 - panel.height / 2);          popup.isopen = true;         updatelayout();  

finally, have (problem solved, sachin s msdn), hope helps someone:

popup popup = new popup();          grid panel = new grid();          panel.height = 250;         panel.width = 250;          panel.transitions = new transitioncollection();         panel.transitions.add(new popupthemetransition());         webview web = new webview();         //web.horizontalalignment = horizontalalignment.center;         //web.verticalalignment = verticalalignment.center;         web.navigate(item.playeruri);         popup.child = panel;         panel.children.add(web);         popup.horizontalalignment = horizontalalignment.center;         popup.verticalalignment = verticalalignment.center;           popup.horizontaloffset = (window.current.bounds.width / 2 - panel.width / 2);         popup.verticaloffset = (window.current.bounds.height / 2 - panel.height / 2);          popup.isopen = true;         updatelayout();  

Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -