當前位置: 首頁>>代碼示例>>C#>>正文


C# ScaleTransform.set_ScaleY方法代碼示例

本文整理匯總了C#中System.Windows.Media.ScaleTransform.set_ScaleY方法的典型用法代碼示例。如果您正苦於以下問題:C# ScaleTransform.set_ScaleY方法的具體用法?C# ScaleTransform.set_ScaleY怎麽用?C# ScaleTransform.set_ScaleY使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在System.Windows.Media.ScaleTransform的用法示例。


在下文中一共展示了ScaleTransform.set_ScaleY方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: UserControl_Loaded


//.........這裏部分代碼省略.........
         this.FloatWRWPopup.HOriginOffset = 80.0;
         this.FloatWRWPopup.VOriginOffset = 80.0;
     }
     else if (this.screenHeight >= 600.0)
     {
         this.StartZoomLevel = 8.0;
         this.EndZoomLevel = 10.0;
         this.mapScale = 1.0;
     }
     this.Line1.set_Width(this.LineLength);
     this.Line2.set_Width(this.LineLength);
     this.Line3.set_Width(this.LineLength);
     this.Line4.set_Width(this.LineLength);
     this.ExpandButtonGrid.set_Width(this.LeftFrameWidth);
     this.LeftFrame.set_Width(this.LeftFrameWidth);
     this.ForecaseLeftTabItem.set_Width(new GridLength(this.ForecastTabItemWidth));
     this.ForecaseRightTabItem.set_Width(new GridLength(this.ForecastTabItemWidth));
     this.ActuallyLeftTabItem.set_Width(new GridLength(this.ForecastTabItemWidth));
     this.ActuallyRightTabItem.set_Width(new GridLength(this.ForecastTabItemWidth));
     this.QualityLeftTabItem.set_Width(new GridLength(this.ForecastTabItemWidth));
     this.QualityRightTabItem.set_Width(new GridLength(this.ForecastTabItemWidth));
     this.AQITabItemGrid.set_Width(this.ActuallyTabItemWidth + 1.0);
     this.WRWTabItemGrid.set_Width(this.ActuallyTabItemWidth);
     if ((Application.get_Current() as App).bLocalMapImage)
     {
         this.epbMapTileLayer.TileSources.Add(new LocalTiandituTileSource());
     }
     else
     {
         this.epbMapTileLayer.TileSources.Add(new TiandituTileSource());
     }
     ScaleTransform transform = new ScaleTransform();
     transform.set_ScaleX(this.mapScale);
     transform.set_ScaleY(this.mapScale);
     this.map.set_RenderTransform(transform);
     this.map.ViewChangeEnd += new EventHandler<MapEventArgs>(this.map_ViewChangeEnd);
     this.bsMapMode = new BSMapMode(new Range<double>(this.StartZoomLevel, this.EndZoomLevel));
     this.map.Mode = this.bsMapMode;
     this.bsMapMode.mapScale = this.mapScale;
     this.bsMapMode.LeftFrameWidth = this.LeftFrameWidth;
     this.bsMapMode.BeijingEast = this.BeijingEast;
     this.bsMapMode.BeijingSouth = this.BeijingSouth;
     this.bsMapMode.BeijingNorth = this.BeijingNorth;
     this.bsMapMode.BeijingWest = this.BeijingWest;
     this.bsMapMode.HomeLevel = this.StartZoomLevel;
     this.bsMapMode.HomeCenter = this.BeijingCenter;
     this.bsMapMode.airDataContext = this.airDataContext;
     this.bsMapMode.airDataContext.ZoomLevel = this.bsMapMode.ZoomLevel;
     this.bsMapMode.ZoomHome(false);
     this.NavigationCtrl.bsMapMode = this.bsMapMode;
     this.NavigationCtrl.ZoomMinLevel = this.StartZoomLevel;
     this.NavigationCtrl.ZoomMaxLevel = this.EndZoomLevel;
     this.NavigationCtrl.ZoomLevel = this.bsMapMode.airDataContext.ZoomLevel;
     DistrictsNameVisibilityConverter converter = base.get_Resources().get_Item("DistrictsNameVisibilityConverter") as DistrictsNameVisibilityConverter;
     converter.bsMapMode = this.bsMapMode;
     this.NorthEastText.set_FontSize(num);
     this.NorthWestText.set_FontSize(num);
     this.CityCenterText.set_FontSize(num);
     this.SouthEastText.set_FontSize(num);
     this.SouthWestText.set_FontSize(num);
     foreach (StationData data in (Application.get_Current() as App).StationsList)
     {
         StationPushpin pushpin = new StationPushpin();
         pushpin.set_Name(data.Station);
         pushpin.set_Content(data.Station);
         pushpin.Location = new Location(data.Lat, data.Lon);
開發者ID:guazipi,項目名稱:bjAirPollution,代碼行數:67,代碼來源:MainPage.cs


注:本文中的System.Windows.Media.ScaleTransform.set_ScaleY方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。