From 03959e785f635697fcdf0f99aad9454fafbf4e2e Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Thu, 14 Jun 2018 11:57:22 +0300 Subject: Improved UdpDiscoveryClient (I Think...). Improved PPC NavigationManager by providing a way to navigate by module/view paths.. --- .../ExtensionMethods/FrameworkElementExtensions.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'Software/Visual_Studio/Tango.SharedUI/ExtensionMethods') diff --git a/Software/Visual_Studio/Tango.SharedUI/ExtensionMethods/FrameworkElementExtensions.cs b/Software/Visual_Studio/Tango.SharedUI/ExtensionMethods/FrameworkElementExtensions.cs index 422b078a4..8bfc9149a 100644 --- a/Software/Visual_Studio/Tango.SharedUI/ExtensionMethods/FrameworkElementExtensions.cs +++ b/Software/Visual_Studio/Tango.SharedUI/ExtensionMethods/FrameworkElementExtensions.cs @@ -1,15 +1,28 @@ using System; +using System.Collections; using System.Collections.Generic; using System.Drawing.Imaging; using System.Linq; +using System.Reflection; using System.Text; using System.Threading.Tasks; using System.Windows; +using System.Windows.Controls; +using System.Windows.Markup; using System.Windows.Media.Imaging; +using Tango.SharedUI.Controls; using Tango.SharedUI.Rendering; public static class FrameworkElementExtensions { + /// + /// Renders the element to bitmap file. + /// + /// The element. + /// The file path. + /// The format. + /// Size of the render. + /// The quality. public static void RenderToFile(this FrameworkElement element, String filePath, ImageFormat format, Size renderSize, int quality) { RenderWindow renderer = new RenderWindow(element); -- cgit v1.3.1