当前位置: 首页>>代码示例>>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;未经允许,请勿转载。