{"id":1046,"date":"2013-04-20T05:30:28","date_gmt":"2013-04-19T19:30:28","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=1046"},"modified":"2013-04-20T05:30:28","modified_gmt":"2013-04-19T19:30:28","slug":"creating-a-drawing-c-application-by-using-wpf-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/creating-a-drawing-c-application-by-using-wpf-tutorial\/","title":{"rendered":"Creating a Drawing C# Application by Using WPF Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/CHash\/WPFApplication\/\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Creating a Drawing C# Application by Using WPF Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/CHash\/WPFApplication\/CHash_WPF_Browser-25of.jpg\" title=\"Creating a Drawing C# Application by Using WPF Tutorial\"  style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">Creating a Drawing C# Application by Using WPF Tutorial<\/p><\/div>\n<p>You might ask &#8220;What is WPF?&#8221; &#8230; so &#8230; go on &#8230;<\/p>\n<p>.<br \/>\n.<br \/>\n.<br \/>\n.<br \/>\n.<br \/>\n.<\/p>\n<p style=\"font-size:8px; color: lightgray;\">What is WPF?<\/p>\n<p style=\"font-size:18px; color: red;\">Glad you asked &#8230;<\/p>\n<blockquote><p>Developed by Microsoft, the Windows Presentation Foundation (or WPF) is a computer-software graphical subsystem for rendering user interfaces in Windows-based applications. WPF, previously known as &#8220;Avalon&#8221;, was initially released as part of .NET Framework 3.0. Rather than relying on the older GDI subsystem, WPF uses DirectX. WPF attempts to provide a consistent programming model for building applications and separates the user interface from business logic. It resembles similar XML-oriented object models, such as those implemented in XUL and SVG.<\/p>\n<p>WPF employs XAML, an XML-based language, to define and link various UI elements.[1] WPF applications can also be deployed as standalone desktop programs, or hosted as an embedded object in a website. WPF aims to unify a number of common user interface elements, such as 2D\/3D rendering, fixed and adaptive documents, typography, vector graphics, runtime animation, and pre-rendered media. These elements can then be linked and manipulated based on various events, user interactions, and data bindings.<\/p>\n<p>WPF runtime libraries are included with all versions of Microsoft Windows since Windows Vista and Windows Server 2008. Users of Windows XP SP2\/SP3 and Windows Server 2003 can optionally install the necessary libraries.[2][3]<\/p>\n<p>Microsoft has released five major WPF versions: WPF 3.0 (Nov 2006), WPF 3.5 (Nov 2007), WPF 3.5sp1 (Aug 2008), WPF 4 (April 2010), and WPF 4.5 (August 2012).<\/p>\n<p>Microsoft Silverlight provides functionality that is mostly a subset of WPF to provide embedded web controls comparable to Adobe Flash. 3D runtime rendering is supported in Silverlight since Silverlight 5.[4]<\/p><\/blockquote>\n<p>So, as you will have gathered, using WPF library within Microsoft Visual Studio C# (here, but could just as easily have used VB.Net &#8230; in fact you&#8217;ll see that the instructions followed were for Microsoft Visual Studio 2008 VB.Net, while we are using Microsoft Visual Studio 2010 C# &#8230; not bad, huh &#8230; that is the advantage of a mature product!).<\/p>\n<p>\nClick <a target=_blank title='click picture' href='http:\/\/www.rjmprogramming.com.au\/CHash\/WPFApplication\/'>on picture above<\/a> to see this tutorial where you can see the creation of an InkPad simple Windows desktop drawing application.<\/p>\n<p>Link to WPF more information &#8230; <a target=_blank href='http:\/\/en.wikipedia.org\/wiki\/Windows_Presentation_Foundation' title='Link to WPF more information'>via Wikipedia, from where quote above came<\/a>.<br \/>\nLink to Microsoft Visual Studio home page &#8230; <a target=_blank href='http:\/\/www.microsoft.com\/visualstudio\/eng' title='Microsoft Visual Studio home page, from where you can peruse Microsoft Visual Studio Products'>via Microsoft<\/a>.<br \/>\nLink to Microsoft Visual Studio WPF Drawing Application Tutorial &#8230; tried to exactly follow it &#8230; <a target=_blank title='Link to Microsoft Visual Studio WPF Drawing Application Tutorial' href='http:\/\/msdn.microsoft.com\/en-us\/library\/bb531278%28v=vs.90%29.aspx'>here<\/a>.\n<\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d1046' onclick='var dv=document.getElementById(\"d1046\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?s=C%23\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d1046' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>You might ask &#8220;What is WPF?&#8221; &#8230; so &#8230; go on &#8230; . . . . . . What is WPF? Glad you asked &#8230; Developed by Microsoft, the Windows Presentation Foundation (or WPF) is a computer-software graphical subsystem for &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/creating-a-drawing-c-application-by-using-wpf-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,17,37,39],"tags":[176,319,549,1319,1383,1435,1462],"class_list":["post-1046","post","type-post","status-publish","format-standard","hentry","category-elearning","category-gui","category-tutorials","category-visual-studio","tag-c","tag-desktop","tag-gui","tag-tutorial","tag-visual-studio","tag-windows","tag-wpf"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/1046"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=1046"}],"version-history":[{"count":0,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/1046\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=1046"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=1046"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=1046"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}