<output id="qn6qe"></output>

    1. <output id="qn6qe"><tt id="qn6qe"></tt></output>
    2. <strike id="qn6qe"></strike>

      亚洲 日本 欧洲 欧美 视频,日韩中文字幕有码av,一本一道av中文字幕无码,国产线播放免费人成视频播放,人妻少妇偷人无码视频,日夜啪啪一区二区三区,国产尤物精品自在拍视频首页,久热这里只有精品12

      【高德地圖API】Pivot控件中加載地圖并禁止Pivot手勢

      如題,解決方案,參考【Windows phone應用開發[20]-禁止Pivot手勢】http://www.rzrgm.cn/chenkai/p/3408658.html

      xaml代碼清單

       
      <phone:PhoneApplicationPage
          x:Class="PhoneApp2.Samples.MapPage"
          xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
          xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
          xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
          xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
          FontFamily="{StaticResource PhoneFontFamilyNormal}"
          FontSize="{StaticResource PhoneFontSizeNormal}"
          Foreground="{StaticResource PhoneForegroundBrush}"
          SupportedOrientations="Portrait" Orientation="Portrait"
          mc:Ignorable="d"
          shell:SystemTray.IsVisible="True">
       
          <!--LayoutRoot 是包含所有頁面內容的根網格-->
          <Grid x:Name="LayoutRoot" Background="Transparent">
              <Grid.RowDefinitions>
                  <RowDefinition Height="Auto"/>
                  <RowDefinition Height="*"/>
              </Grid.RowDefinitions>
       
              <!--TitlePanel 包含應用程序的名稱和頁標題-->
              <StackPanel Grid.Row="0" Margin="12,17,0,28">
                  <TextBlock Text="我的應用程序" Style="{StaticResource PhoneTextNormalStyle}"/>
                  <TextBlock Text="頁面名稱" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
              </StackPanel>
       
              <!--ContentPanel - 在此處放置其他內容-->
              <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
                  <phone:Pivot x:Name="pivot1" Grid.Row="1" Title="pivot" >
                      <phone:PivotItem x:Name="pivot" CacheMode="{x:Null}" Header="item1" >
                          <Grid x:Name="mapLayer">
                          </Grid>
                      </phone:PivotItem>
                      <phone:PivotItem CacheMode="{x:Null}" Header="item2">
                          <Grid x:Name="mapLayer2">
                              <Button  Content="button" Margin="116,232,108,132"/>
                              <TextBlock Text="item2" Margin="150,174,124,244"/>
                          </Grid>
                      </phone:PivotItem>
                      <phone:PivotItem CacheMode="{x:Null}" Header="item2">
                          <Grid x:Name="mapLayer3">
                              <Button  Content="button" Margin="116,232,152,132"/>
                          <TextBlock Text="item2" Margin="150,174,124,244"/>
                           
                          </Grid>
                      </phone:PivotItem>
                  </phone:Pivot>
              </Grid>
          </Grid>
       
      </phone:PhoneApplicationPage>
       

      cs代碼清單


      AMap amap;
      AMapMarker marker;

      //private Point currentPoint;
      //private Point oldPoint;

      public MapPage()
      {
      InitializeComponent();

      this.mapLayer.Children.Add(amap = new AMap());
      Touch.FrameReported += (s, e) =>
      {
      if (e.GetPrimaryTouchPoint(amap).Action == TouchAction.Up)
      {
      //this.pivot1.IsLocked = false;
      }
      };
      //amap.ManipulationStarted += (s, e) =>
      // {
      // this.pivot1.IsLocked = true;
      // };



      //amap.Loaded += amap_Loaded;
      this.Loaded += MapPage_Loaded;
      }

      void MapPage_Loaded(object sender, RoutedEventArgs e)
      {
      Events();
      }

      private void Events()
      {
      this.pivot.UseOptimizedManipulationRouting = false;
      this.pivot.AddHandler(PivotItem.ManipulationStartedEvent, new EventHandler<ManipulationStartedEventArgs>(pivot_ManipulationStarted), true);
      this.pivot.AddHandler(PivotItem.ManipulationDeltaEvent, new EventHandler<ManipulationDeltaEventArgs>(pivot_ManipulationCompleted), true);
      }



      Point startPoint;
      private void pivot_ManipulationStarted(object sender, ManipulationStartedEventArgs e)
      {
      startPoint = e.ManipulationOrigin;
      }


      private void pivot_ManipulationCompleted(object sender, ManipulationDeltaEventArgs e)
      {
      Point endPoint = e.ManipulationOrigin;
      if (endPoint.X - startPoint.X >= 0)
      {
      #region Control Right Side
      e.Complete();
      e.Handled = true;
      #endregion
      }
      if (endPoint.X - startPoint.X < 0)
      {
      #region Control Left Side
      e.Complete();
      e.Handled = true;
      #endregion
      }
      }
      }


       
       
      posted @ 2013-12-05 11:21  十一_x  閱讀(950)  評論(0)    收藏  舉報
      主站蜘蛛池模板: 国产av一区二区三区精品| 亚洲一区二区三区在线| 粉嫩一区二区三区精品视频| 亚洲综合一区二区三区不卡| 宜宾县| a男人的天堂久久a毛片| 另类国产精品一区二区| 欧美深度肠交惨叫| 亚洲国产高清第一第二区| 亚洲av免费成人精品区| 精品人妻少妇一区二区三区在线 | 精品一区二区亚洲国产| 亚洲日韩成人无码不卡网站| 麻豆国产va免费精品高清在线 | 国产一区精品在线免费看| 麻豆一区二区中文字幕| 亚洲欧洲精品一区二区| 日本丶国产丶欧美色综合| 亚洲天堂av在线一区| 熟女一区| av无码精品一区二区三区四区 | 少妇无码一区二区三区免费| 精品亚洲精品日韩精品| 日韩中文字幕国产精品| 玩弄漂亮少妇高潮白浆| 亚洲中文字幕无码爆乳app| 中文精品无码中文字幕无码专区| 亚洲av激情久久精品人| 无套内谢少妇毛片aaaa片免费| 亚洲综合av男人的天堂| 男人又大又硬又粗视频| 国产午夜福利在线视频| 亚日韩精品一区二区三区| 亚洲中文字幕一区二区| 好看的国产精品自拍视频| 国产精品无码不卡在线播放| 日本亚洲色大成网站www久久| 精品久久久久久亚洲综合网 | 人人妻人人插视频| 男女爽爽无遮挡午夜视频| 午夜大片免费男女爽爽影院|