本文整理汇总了C#中System.Windows.Controls.Image.UpdateLayout方法的典型用法代码示例。如果您正苦于以下问题:C# System.Windows.Controls.Image.UpdateLayout方法的具体用法?C# System.Windows.Controls.Image.UpdateLayout怎么用?C# System.Windows.Controls.Image.UpdateLayout使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Controls.Image
的用法示例。
在下文中一共展示了System.Windows.Controls.Image.UpdateLayout方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Main
static void Main(string[] args)
{
XYPoint point = new XYPoint(715281.56, 6189341.78);
double dx = 5000;
double dy = 5000;
actual = Map.GetImagery(point, dx, dy);
actual.DownloadCompleted += new EventHandler(actual_DownloadCompleted);
System.Windows.Controls.Image im = new System.Windows.Controls.Image();
im.Source = actual;
im.SourceUpdated += new EventHandler<System.Windows.Data.DataTransferEventArgs>(im_SourceUpdated);
im.UpdateLayout();
Console.WriteLine(DateTime.Now.Second);
Console.ReadLine();
}
示例2: Main
static void Main(string[] args)
{
double area = 0;
using (ShapeReader sr = new ShapeReader(@"D:/Dropbox/ProjektData/Øvre Suså Ålav/skov2.shp"))
{
foreach (var gd in sr.GeoData)
{
area += ((IXYPolygon)gd.Geometry).GetArea();
}
}
double ha = area / 10000;
XYPoint point = new XYPoint(715281.56, 6189341.78);
double dx = 5000;
double dy = 5000;
actual = Map.GetImagery(point, dx, dy);
actual.DownloadCompleted += new EventHandler(actual_DownloadCompleted);
System.Windows.Controls.Image im = new System.Windows.Controls.Image();
im.Source = actual;
im.SourceUpdated += new EventHandler<System.Windows.Data.DataTransferEventArgs>(im_SourceUpdated);
im.UpdateLayout();
Console.WriteLine(DateTime.Now.Second);
Console.ReadLine();
}