diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-06-14 11:57:22 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-06-14 11:57:22 +0300 |
| commit | 03959e785f635697fcdf0f99aad9454fafbf4e2e (patch) | |
| tree | dbaf0350a9fbf7502057f01a9b34fd2ff15df9fd /Software/Visual_Studio/Tango.SharedUI/ExtensionMethods | |
| parent | cc08947f9bc9f1f98ab8835200fb7cda0494cff2 (diff) | |
| download | Tango-03959e785f635697fcdf0f99aad9454fafbf4e2e.tar.gz Tango-03959e785f635697fcdf0f99aad9454fafbf4e2e.zip | |
Improved UdpDiscoveryClient (I Think...).
Improved PPC NavigationManager by providing a way to navigate by module/view paths..
Diffstat (limited to 'Software/Visual_Studio/Tango.SharedUI/ExtensionMethods')
| -rw-r--r-- | Software/Visual_Studio/Tango.SharedUI/ExtensionMethods/FrameworkElementExtensions.cs | 13 |
1 files changed, 13 insertions, 0 deletions
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 { + /// <summary> + /// Renders the element to bitmap file. + /// </summary> + /// <param name="element">The element.</param> + /// <param name="filePath">The file path.</param> + /// <param name="format">The format.</param> + /// <param name="renderSize">Size of the render.</param> + /// <param name="quality">The quality.</param> public static void RenderToFile(this FrameworkElement element, String filePath, ImageFormat format, Size renderSize, int quality) { RenderWindow renderer = new RenderWindow(element); |
