private async void butDoIt_Click(object sender, Windows.UI.Xaml.RoutedEventArgs e) { TileLayouts layout = new TileLayouts(); hiddenRenderingSurface.Children.Add(layout); await RenderUIElement(layout.FindName("tile310x310") as FrameworkElement, "tile310x310", 310, 310); await RenderUIElement(layout.FindName("tile310x150") as FrameworkElement, "tile310x150", 310, 150); hiddenRenderingSurface.Children.Remove(layout); layout = null; }