2013-03-25 2 views
0

내 메트로 앱에서 설정 패널을 만들고 싶습니다. 왜 내 웹보기가 메트로 앱의 팝업을 덮었습니까?

는이 같은 웹보기로 메인 페이지를 추가 :

<Page 
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
xmlns:local="using:App" 
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
x:Class="App.MainPage" 
mc:Ignorable="d"> 

<Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}"> 
    <WebView x:Name="MainWebView"/> 
</Grid> 

내 popip 창을

_settingsPopup = new Popup(); 
     _settingsPopup.Closed += OnPopupClosed; 
     Window.Current.Activated += OnWindowActivated; 
     _settingsPopup.IsLightDismissEnabled = true; 
     _settingsPopup.Width = _settingsWidth; 
     _settingsPopup.Height = _windowBounds.Height; 

     SettingsPanel mypane = new SettingsPanel(); 
     mypane.Width = _settingsWidth; 
     mypane.Height = _windowBounds.Height; 

     _settingsPopup.Child = mypane; 
     _settingsPopup.SetValue(Canvas.LeftProperty, _windowBounds.Width - _settingsWidth); 
     _settingsPopup.SetValue(Canvas.TopProperty, 0); 
     _settingsPopup.IsOpen = true; 

를 표시하려면이 코드를 사용하지만, 마지막으로 팝업이 될 수 없다 표시되고 내가 숨길 수있는 webview를 설정할 때, 나는 webview 뒤에 팝업을 발견했다.

zindex 또는 sth와 같이 zindex를 설정하는 기능이나 속성을 찾을 수 없으므로 팝업을 앞쪽으로 가져갈 수 있습니다.

어떻게 수정할 수 있습니까?

답변

1

WebView은 항상 최상위 위치를 차지하므로 의도적으로 설계된 동작입니다. 권장 해결책은 팝업으로 WebView을 숨기거나 팝업이 표시 될 때 WebViewBrush을 자리 표시 자로 사용하는 것입니다. How to display charms on a top of the WebView

:

웹 자습서 많이있다, 나는 개인적으로이 기사를 추천합니다

관련 문제