C# Windows 8 Metro等同于System.Windows.Media.DrawingGroup和ImageDrawing?

C# Windows 8 Metro等同于System.Windows.Media.DrawingGroup和ImageDrawing?,c#,.net,wpf,windows-8,microsoft-metro,C#,.net,Wpf,Windows 8,Microsoft Metro,我有一个WPF.NET3.5应用程序,它使用ImageDrawing和DrawingGroup在一个透明的瓷砖层上绘制 我正在尝试使用Metro将其转换为Windows 8 Microsoft在上的移植概述建议更改System.Windows命名空间对Windows.UI.Xaml的引用。这对大多数事情都有帮助,但我还没有找到ImageDrawing和DrawingGroup,也没有在Windows.UI.Xaml中找到任何提及它们的内容 地铁里有吗?如果是,在哪里,或者如果不是,我可以用什么来

我有一个WPF.NET3.5应用程序,它使用ImageDrawing和DrawingGroup在一个透明的瓷砖层上绘制

我正在尝试使用Metro将其转换为Windows 8

Microsoft在上的移植概述建议更改System.Windows命名空间对Windows.UI.Xaml的引用。这对大多数事情都有帮助,但我还没有找到ImageDrawing和DrawingGroup,也没有在Windows.UI.Xaml中找到任何提及它们的内容

地铁里有吗?如果是,在哪里,或者如果不是,我可以用什么来完成同等的任务

下面是我正在使用的示例代码:

    Windows.UI.Xaml.Controls.Image img = mapGrid.Children.Cast<Windows.UI.Xaml.Controls.Image>().First(e => Grid.GetRow(e) == 2 && Grid.GetColumn(e) == 4);

    if (img != null)
    {
        Uri back = new Uri("tiles/green.png", UriKind.RelativeOrAbsolute);
        Windows.UI.Xaml.Media.ImageDrawing background = new Windows.UI.Xaml.Media.ImageDrawing(new Windows.UI.Xaml.Media.Imaging.BitmapImage(back), new Rect(0, 0, 32, 32));
        Windows.UI.Xaml.Media.DrawingGroup myDrawingGroup = new Windows.UI.Xaml.Media.DrawingGroup();
        myDrawingGroup.Children.Add(background);
        // Add one or more foreground tiles here, removed for brevity.
    }
Windows.UI.Xaml.Controls.Image img=mapGrid.Children.Cast().First(e=>Grid.GetRow(e)==2&&Grid.GetColumn(e)==4);
如果(img!=null)
{
Uri back=新Uri(“tiles/green.png”,UriKind.RelativeOrAbsolute);
Windows.UI.Xaml.Media.ImageDrawing background=新的Windows.UI.Xaml.Media.ImageDrawing(新的Windows.UI.Xaml.Media.Imaging.BitmapImage(返回),新的Rect(0,0,32,32));
Windows.UI.Xaml.Media.DrawingGroup myDrawingGroup=新建Windows.UI.Xaml.Media.DrawingGroup();
myDrawingGroup.Children.Add(后台);
//在此处添加一个或多个前景平铺,为简洁起见已删除。
}

完全限定名称空间,以清晰(我希望)。

Nope。MetroAny中没有ImageDrawing、DrawingGroups或许多其他功能推荐在同一位置渲染彼此堆叠的透明图像的方法?如果这就是您所需要的,那么只需在网格中放置多个图像控件即可。