本文整理汇总了C#中System.Windows.Media.ScaleTransform.set_ScaleX方法的典型用法代码示例。如果您正苦于以下问题:C# ScaleTransform.set_ScaleX方法的具体用法?C# ScaleTransform.set_ScaleX怎么用?C# ScaleTransform.set_ScaleX使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Media.ScaleTransform
的用法示例。
在下文中一共展示了ScaleTransform.set_ScaleX方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: UserControl_Loaded
//.........这里部分代码省略.........
this.FloatAQIPopup.VOriginOffset = 80.0;
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);