<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-25574972</id><updated>2025-10-31T10:34:00.289-05:00</updated><category term="WPF"/><category term="C#"/><category term="Spotfire"/><category term="Dispatcher"/><category term="Example"/><category term="IronPython"/><category term=".Net Browser Filters"/><category term=".Net C# Multi-Threading in C# Parallel PLINQ"/><category term=".Net Validate a URL Uri TryCreate Parse Url"/><category term="4.0"/><category term="ASP.Net"/><category term="ASP.Net Master Pages Content Pages"/><category term="AddCategoricalColorRule"/><category term="Always Visible Progress Indicator ASP.Net Ajax UpdateProgress AlwaysVisibleControlExtender"/><category term="Attached Property WPF TextBox clears Text Escape ESC key MVVM"/><category term="Axis Number Format"/><category term="BeginInvoke"/><category term="BitVector32"/><category term="Browser hacks"/><category term="C# Actions Exception Handling"/><category term="C# Windows Get Currently logged in user"/><category term="Cancel"/><category term="Chart"/><category term="Clairvoyant Web Accelerator Using Predictive n Adaptive Machine Learning Algorithm"/><category term="Common Active Directory Exceptions DirectorySearcher FindAll Exceptions"/><category term="ControlTemplate"/><category term="Create Generic List Dynamically"/><category term="Data Limiting - How to limit data using markings (C#"/><category term="Deep Copy WPF UIElement object"/><category term="DeploymentItem"/><category term="Detect Drag Start"/><category term="Detecting DROP WPF Drag and Drop"/><category term="Dispose"/><category term="Download File"/><category term="Drag  Drop"/><category term="Drag Drop"/><category term="Drag and Drop"/><category term="Dynamic"/><category term="Escape"/><category term="Exponential Curve"/><category term="Extreme or Test Driven Object Oriented Programming"/><category term="FallbackValue"/><category term="Find Ancestor"/><category term="Find Parent"/><category term="Firefox Hack"/><category term="Gaussian Curve"/><category term="Generic Class"/><category term="Generics"/><category term="GetType"/><category term="Hide"/><category term="Horizontal GridSplitter"/><category term="Horizontal scroll"/><category term="IE Hack"/><category term="IE8 Hack"/><category term="Images Spotfire JSViz"/><category term="InputBindings Example"/><category term="Ironpython)"/><category term="JQuery rel=nofollow"/><category term="JSVIz"/><category term="KeyBinding"/><category term="Logirithmic Curve"/><category term="MVC Master Title Meta ASP.Net"/><category term="MVVM"/><category term="Meta Tags"/><category term="Microsoft AJAX $addHandler problem Firefox"/><category term="ModelState.AddModelError NullReferenceException ASP.Net MVC Validations"/><category term="Polynomial Curve"/><category term="Reflection"/><category term="Right Click"/><category term="Run Launch .Exe .Bat Executables from Console WPF Windows C# Applications"/><category term="SEO"/><category term="Scroll on drag over"/><category term="Select Node"/><category term="Show"/><category term="ShutDownStarted"/><category term="Spotfire LayoutDefinition Example"/><category term="Static Main Method App.xaml ApplicationDefinition"/><category term="Style"/><category term="Style ControlTemplate"/><category term="SystemColors WPF Windows"/><category term="T"/><category term="TFS 2010 WCF WorkItemChangedEvent SOAP Event Subscription"/><category term="TFS API Microsoft.TeamFoundation.WorkItemTracking.Client.ClientException Access is denied"/><category term="TargetNullValue"/><category term="Telerik RadTreeView"/><category term="Title"/><category term="Unit Test"/><category term="Unit Test Deploy file Deploy container Folder"/><category term="UserControl"/><category term="Vertical GridSplitter"/><category term="Visual Studio The assembly used when compiling might be different than that used when loading and the type is missing."/><category term="VisualTreeHelper"/><category term="WPF C# Detect CTRL + A PreviewKeyDown"/><category term="WPF DataBinding Default Value"/><category term="WPF Expander ControlTemplate"/><category term="WPF Get ListBoxItem from ListBox.SelectedItem ItemContainerGenerator.ContainerFromItem"/><category term="WPF TextBox MVVM DataBinding UpdateSourceTrigger  PropertyChanged"/><category term="WPF XAML Escape Sequence {}"/><category term="Web Forms"/><category term="WindowHandle"/><category term="Windows Mobile 6 File IO"/><category term="XmlSerialize"/><category term="base64 encode css js"/><category term="image"/><category term="vertical scroll"/><category term="vertical scroll horizontal scroll css"/><title type='text'>Dot Net</title><subtitle type='html'>Web Application Development, Object Oriented Programming, Design Patterns, Test Driven Development, ASP.Net, WPF, .Net, C#, SQL Server 2005, Ajax, IIS, ADO.Net, Visual Studio Team Suite, HTML, XML, CSS, JavaScript</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://shrinandvyas.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://shrinandvyas.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>66</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-25574972.post-7255914348273277827</id><published>2022-02-08T08:13:00.002-06:00</published><updated>2022-02-08T08:13:28.754-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Exponential Curve"/><category scheme="http://www.blogger.com/atom/ns#" term="Gaussian Curve"/><category scheme="http://www.blogger.com/atom/ns#" term="IronPython"/><category scheme="http://www.blogger.com/atom/ns#" term="Logirithmic Curve"/><category scheme="http://www.blogger.com/atom/ns#" term="Polynomial Curve"/><category scheme="http://www.blogger.com/atom/ns#" term="Spotfire"/><title type='text'>Spotfire: How to add Gaussian Curve Fit to a chart using C# or IronPython code</title><content type='html'>&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&amp;nbsp;Here is a Spotfire ScatterPlot with a Gaussian Curve.&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiEWxqHdXDoJLO7NLsHTgONnQxiLXADNuP5-0pdj3nYaxBd9s5skvYK9GA_BchXqnpYoPz17u4ZAJFXfdYaM8FaztdDhj3dl7nEJu_RrR9dBrkEndnyUgMc8yDKb6oH81xWAcVckdcALW4HX-e9Rx2UwNWeFQZ7WpPOdACeBG8zBJFCaMIrYhs&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;289&quot; data-original-width=&quot;393&quot; height=&quot;235&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiEWxqHdXDoJLO7NLsHTgONnQxiLXADNuP5-0pdj3nYaxBd9s5skvYK9GA_BchXqnpYoPz17u4ZAJFXfdYaM8FaztdDhj3dl7nEJu_RrR9dBrkEndnyUgMc8yDKb6oH81xWAcVckdcALW4HX-e9Rx2UwNWeFQZ7WpPOdACeBG8zBJFCaMIrYhs&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&amp;nbsp;It is straightforward to add it from the UI by right clicking on the chart, opening up properties dialog and adding a Gaussian Curve Fir from the Lines &amp;amp; Curves section:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEj23UbFInX1w-7lkecooSH0YWAxXX7cuSQtY1AkDFYfeyj83yU651pWbcnNhJuQXBMgWgrLLoOQlzS7SjFufdlsQKLab7jfCT2IJhKy2SjQJmlhSfPMY3oBv4YeZ7L2ww0DAyT31xXPlQOOXjd1tFHhZ2VmEsuhPlxAPVJHlvT61peiQAdLkso&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;605&quot; data-original-width=&quot;729&quot; height=&quot;440&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEj23UbFInX1w-7lkecooSH0YWAxXX7cuSQtY1AkDFYfeyj83yU651pWbcnNhJuQXBMgWgrLLoOQlzS7SjFufdlsQKLab7jfCT2IJhKy2SjQJmlhSfPMY3oBv4YeZ7L2ww0DAyT31xXPlQOOXjd1tFHhZ2VmEsuhPlxAPVJHlvT61peiQAdLkso=w530-h440&quot; width=&quot;530&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;br /&gt;Here is how you would add it from the code:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: #fcff01; font-family: arial; font-size: large;&quot;&gt;&amp;nbsp;var gaussianFittingModel = scatterPlot.FittingModels.AddNew&amp;lt;GaussianFittingModel&amp;gt;();&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: #fcff01; font-family: arial; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;background-color: #fcff01; font-family: arial; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://shrinandvyas.blogspot.com/feeds/7255914348273277827/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shrinandvyas.blogspot.com/2022/02/spotfire-how-to-add-gaussian-curve-fit.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default/7255914348273277827'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default/7255914348273277827'/><link rel='alternate' type='text/html' href='http://shrinandvyas.blogspot.com/2022/02/spotfire-how-to-add-gaussian-curve-fit.html' title='Spotfire: How to add Gaussian Curve Fit to a chart using C# or IronPython code'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEiEWxqHdXDoJLO7NLsHTgONnQxiLXADNuP5-0pdj3nYaxBd9s5skvYK9GA_BchXqnpYoPz17u4ZAJFXfdYaM8FaztdDhj3dl7nEJu_RrR9dBrkEndnyUgMc8yDKb6oH81xWAcVckdcALW4HX-e9Rx2UwNWeFQZ7WpPOdACeBG8zBJFCaMIrYhs=s72-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25574972.post-608188288416005349</id><published>2021-12-21T14:58:00.005-06:00</published><updated>2021-12-21T14:58:38.691-06:00</updated><title type='text'>Spotfire: How to create Chart Categorical expression with Display Name? (C#, IronPython)</title><content type='html'>&lt;p&gt;&lt;span style=&quot;font-family: arial; font-size: large;&quot;&gt;&amp;nbsp;Example of Categorical Expression with Display Name&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial; font-size: medium;&quot;&gt;This works:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;$&quot;&amp;lt;LandQuality{duration} as [Land Quality]&amp;gt;&quot;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial; font-size: medium;&quot;&gt;This doesn&#39;t work:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;$&quot;&amp;lt;LandQuality{duration}&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;as [Land Quality]&lt;/span&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&quot;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;Example:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;BarChart.XAxis.Expression =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;$&quot;&amp;lt;LandQuality{duration} as [Land Quality]&amp;gt;&quot;;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;Let&#39;s compare this to Continuous Expression&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;BarChart.XAxis.Expression =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;$&quot;[LandQuality{duration}] as [Land Quality]&quot;;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://shrinandvyas.blogspot.com/feeds/608188288416005349/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shrinandvyas.blogspot.com/2021/12/spotfire-how-to-create-chart.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default/608188288416005349'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default/608188288416005349'/><link rel='alternate' type='text/html' href='http://shrinandvyas.blogspot.com/2021/12/spotfire-how-to-create-chart.html' title='Spotfire: How to create Chart Categorical expression with Display Name? (C#, IronPython)'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25574972.post-224917990215949801</id><published>2021-12-13T11:01:00.001-06:00</published><updated>2021-12-13T11:01:35.484-06:00</updated><title type='text'>Spotfire: How to set Combination Chart Series color? IronPython C#</title><content type='html'>&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;combinationChart.ColorAxis.Coloring.Clear();&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var categories = combinationChart.ColorAxis.Coloring.AddCategoricalColorRule().GetExplicitCategories();&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; foreach (var categoryKey in categories)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/p&gt;&lt;p&gt;// Your business rules here ...&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(categoryKey.ToString().Contains(&quot;completion&quot;))&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; combinationChart.ColorAxis.Coloring.SetColorForCategory(categoryKey, ColorTranslator.FromHtml(&quot;#17295f&quot;));&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else if(categoryKey.ToString().Contains(&quot;location&quot;))&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; combinationChart.ColorAxis.Coloring.SetColorForCategory(categoryKey, ColorTranslator.FromHtml(&quot;#f51908&quot;));&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; combinationChart.ColorAxis.Coloring.SetColorForCategory(categoryKey, ColorTranslator.FromHtml(&quot;#232323&quot;));&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shrinandvyas.blogspot.com/feeds/224917990215949801/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shrinandvyas.blogspot.com/2021/12/spotfire-how-to-set-combination-chart.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default/224917990215949801'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default/224917990215949801'/><link rel='alternate' type='text/html' href='http://shrinandvyas.blogspot.com/2021/12/spotfire-how-to-set-combination-chart.html' title='Spotfire: How to set Combination Chart Series color? IronPython C#'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25574972.post-1350048601145566080</id><published>2021-12-13T09:39:00.002-06:00</published><updated>2021-12-13T09:39:15.324-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Data Limiting - How to limit data using markings (C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Ironpython)"/><category scheme="http://www.blogger.com/atom/ns#" term="Spotfire"/><title type='text'>Spotfire Data Limiting - How to limit data using markings (C#, Ironpython)</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Code:&lt;/p&gt;&lt;p&gt;public static void LimitDataUsingMarking(this Visualization chart, Document document)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;background-color: #fcff01;&quot;&gt;chart.Data.Filterings.Add(document.Data.Markings[&quot;Marking&quot;]);&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwQYAvg13f8fE0XnKw9tNE2tYdyqnXZMP0ucGZ3yVK8hxK85s6Odok4vZx_AR9oYHJecacV8x-L7joAZqCk56ebRyrbkhTYMsRJx6ajJyuOUAm0_2pMxf5Yqa2mYfEK-SFSqgSPw/&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img data-original-height=&quot;451&quot; data-original-width=&quot;584&quot; height=&quot;494&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwQYAvg13f8fE0XnKw9tNE2tYdyqnXZMP0ucGZ3yVK8hxK85s6Odok4vZx_AR9oYHJecacV8x-L7joAZqCk56ebRyrbkhTYMsRJx6ajJyuOUAm0_2pMxf5Yqa2mYfEK-SFSqgSPw/w640-h494/image.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://shrinandvyas.blogspot.com/feeds/1350048601145566080/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shrinandvyas.blogspot.com/2021/12/spotfire-data-limiting-how-to-limit.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default/1350048601145566080'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default/1350048601145566080'/><link rel='alternate' type='text/html' href='http://shrinandvyas.blogspot.com/2021/12/spotfire-data-limiting-how-to-limit.html' title='Spotfire Data Limiting - How to limit data using markings (C#, Ironpython)'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwQYAvg13f8fE0XnKw9tNE2tYdyqnXZMP0ucGZ3yVK8hxK85s6Odok4vZx_AR9oYHJecacV8x-L7joAZqCk56ebRyrbkhTYMsRJx6ajJyuOUAm0_2pMxf5Yqa2mYfEK-SFSqgSPw/s72-w640-h494-c/image.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25574972.post-7218167831924300909</id><published>2021-12-10T08:50:00.002-06:00</published><updated>2021-12-10T08:50:27.374-06:00</updated><title type='text'>Spotfire CombinationChart Setting Series Type (Bar or Line) C# IronPython</title><content type='html'>&lt;p&gt;&amp;nbsp;IndexedCombinationChartSeriesType indexedSeriesType = combinationChart.IndexedSeriesType;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; indexedSeriesType[new CategoryKey(&quot;BOE (Mstb)&quot;)] = &lt;span style=&quot;background-color: #fff2cc;&quot;&gt;CombinationChartSeriesType.Line;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://shrinandvyas.blogspot.com/feeds/7218167831924300909/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shrinandvyas.blogspot.com/2021/12/spotfire-combinationchart-setting.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default/7218167831924300909'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default/7218167831924300909'/><link rel='alternate' type='text/html' href='http://shrinandvyas.blogspot.com/2021/12/spotfire-combinationchart-setting.html' title='Spotfire CombinationChart Setting Series Type (Bar or Line) C# IronPython'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25574972.post-5528743751915629419</id><published>2021-08-10T10:53:00.002-05:00</published><updated>2021-08-10T10:53:50.560-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Axis Number Format"/><category scheme="http://www.blogger.com/atom/ns#" term="Chart"/><category scheme="http://www.blogger.com/atom/ns#" term="Spotfire"/><title type='text'>Spotfire How to control number of decimals displayed on Value Axis?  How to apply number format to Chart axis?</title><content type='html'>&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;If you want to apply a specific number format to the Spotfire Chart Axis, here is how you can accomplish it using the C# code:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;if (DataType.Real.CreateLocalizedFormatter() is NumberFormatter realFormatter)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; realFormatter.DecimalDigits = 5; &lt;span style=&quot;background-color: #fcff01;&quot;&gt;// Number of decimals&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; barChart.YAxis.Scale.Formatting.RealFormatter = realFormatter;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWxh2be16JM0iyQYysMJS8JuTDL2CaPRTgdVeiVL9p4wkoo-TMdKRZLgP0_jTpaJxIyK_LWv_-lqz8QPZGqm543xiwz4jAGS8w0DM0_kRmtZdHdHZk_OhnplYsZe13Ok7-PJqG7A/&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;882&quot; data-original-width=&quot;724&quot; height=&quot;629&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWxh2be16JM0iyQYysMJS8JuTDL2CaPRTgdVeiVL9p4wkoo-TMdKRZLgP0_jTpaJxIyK_LWv_-lqz8QPZGqm543xiwz4jAGS8w0DM0_kRmtZdHdHZk_OhnplYsZe13Ok7-PJqG7A/w516-h629/image.png&quot; width=&quot;516&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;b&gt;Here is how you can apply this changes in Spotfire:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUSdLAkZ0Q-R23gabXceW0F3x5Sudyp6FGzBm4Ue0fNSqPvQ4wADGur4tQj4YK7o8jN2VEUtjUzt_cyfKRywDEptn7PazZvmN9TpNoos4BuLPu5MordvARUND7l8GNxIHU7vv7Mw/&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;452&quot; data-original-width=&quot;590&quot; height=&quot;350&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUSdLAkZ0Q-R23gabXceW0F3x5Sudyp6FGzBm4Ue0fNSqPvQ4wADGur4tQj4YK7o8jN2VEUtjUzt_cyfKRywDEptn7PazZvmN9TpNoos4BuLPu5MordvARUND7l8GNxIHU7vv7Mw/w456-h350/image.png&quot; width=&quot;456&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://shrinandvyas.blogspot.com/feeds/5528743751915629419/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shrinandvyas.blogspot.com/2021/08/spotfire-how-to-control-number-of.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default/5528743751915629419'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default/5528743751915629419'/><link rel='alternate' type='text/html' href='http://shrinandvyas.blogspot.com/2021/08/spotfire-how-to-control-number-of.html' title='Spotfire How to control number of decimals displayed on Value Axis?  How to apply number format to Chart axis?'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWxh2be16JM0iyQYysMJS8JuTDL2CaPRTgdVeiVL9p4wkoo-TMdKRZLgP0_jTpaJxIyK_LWv_-lqz8QPZGqm543xiwz4jAGS8w0DM0_kRmtZdHdHZk_OhnplYsZe13Ok7-PJqG7A/s72-w516-h629-c/image.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25574972.post-5683350078520469641</id><published>2021-07-27T11:47:00.003-05:00</published><updated>2021-08-10T10:55:22.310-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AddCategoricalColorRule"/><category scheme="http://www.blogger.com/atom/ns#" term="IronPython"/><category scheme="http://www.blogger.com/atom/ns#" term="Spotfire"/><title type='text'>Spotfire ScatterPlot Set Color By Category (C#, IronPython)</title><content type='html'>&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&amp;nbsp;var coloring = scatterPlot.ColorAxis.Coloring;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; coloring.Clear();&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; coloring.DefaultColor = Color.White;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var categoricalColorRule = coloring.AddCategoricalColorRule();&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var colorKeys = categoricalColorRule.GetExplicitCategories();&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; scatterPlot.ColorAxis.Coloring.SetColorForCategory(colorKeys[0], Color.ForestGreen);&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; scatterPlot.ColorAxis.Coloring.SetColorForCategory(colorKeys[1], Color.Blue);&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; scatterPlot.ColorAxis.Coloring.SetColorForCategory(colorKeys[2], Color.Orange);&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnWklMFy_d_hkIGULJEArnP97g4NAiFrjqyzbBdmYdMJIgH_ngqkw-Gh6NBD-dmSPAyx2HXqURo2oVlgCGcNN296eM2QzGnyKuWAobkoAv3wVRfugo9jB0LBb6tyKXuSSDXD0QoQ/&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;427&quot; data-original-width=&quot;813&quot; height=&quot;335&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnWklMFy_d_hkIGULJEArnP97g4NAiFrjqyzbBdmYdMJIgH_ngqkw-Gh6NBD-dmSPAyx2HXqURo2oVlgCGcNN296eM2QzGnyKuWAobkoAv3wVRfugo9jB0LBb6tyKXuSSDXD0QoQ/w638-h335/image.png&quot; width=&quot;638&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://shrinandvyas.blogspot.com/feeds/5683350078520469641/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shrinandvyas.blogspot.com/2021/07/spotfire-scatterplot-set-color-by.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default/5683350078520469641'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default/5683350078520469641'/><link rel='alternate' type='text/html' href='http://shrinandvyas.blogspot.com/2021/07/spotfire-scatterplot-set-color-by.html' title='Spotfire ScatterPlot Set Color By Category (C#, IronPython)'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnWklMFy_d_hkIGULJEArnP97g4NAiFrjqyzbBdmYdMJIgH_ngqkw-Gh6NBD-dmSPAyx2HXqURo2oVlgCGcNN296eM2QzGnyKuWAobkoAv3wVRfugo9jB0LBb6tyKXuSSDXD0QoQ/s72-w638-h335-c/image.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25574972.post-3850766155632503086</id><published>2021-06-22T10:52:00.002-05:00</published><updated>2021-08-10T10:56:52.316-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Images Spotfire JSViz"/><title type='text'>Images not showing up in Spotfire JSViz</title><content type='html'>&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;- Images with relative path will not show up in Spotfire JSViz&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;- Either use absolute path for the image or &lt;span class=&quot;tagcolor&quot; style=&quot;background-color: white; box-sizing: inherit; color: mediumblue; font-size: 15px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: brown; font-size: 15px;&quot;&gt;img&lt;/span&gt;&lt;span class=&quot;attributecolor&quot; style=&quot;background-color: white; box-sizing: inherit; color: red; font-size: 15px;&quot;&gt;&amp;nbsp;src&lt;span class=&quot;attributevaluecolor&quot; style=&quot;box-sizing: inherit; color: mediumblue;&quot;&gt;=&quot;https://www.w3schools.com/images/picture.jpg&quot;&lt;/span&gt;&amp;nbsp;alt&lt;span class=&quot;attributevaluecolor&quot; style=&quot;box-sizing: inherit; color: mediumblue;&quot;&gt;=&quot;Mountain&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;tagcolor&quot; style=&quot;background-color: white; box-sizing: inherit; color: mediumblue; font-size: 15px;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;- Base64 encode image data and use it&amp;nbsp; &lt;a href=&quot;https://css-tricks.com/data-uris/&quot;&gt;https://css-tricks.com/data-uris/&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://shrinandvyas.blogspot.com/feeds/3850766155632503086/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shrinandvyas.blogspot.com/2021/06/images-not-showing-up-in-spotfire-jsviz.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default/3850766155632503086'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default/3850766155632503086'/><link rel='alternate' type='text/html' href='http://shrinandvyas.blogspot.com/2021/06/images-not-showing-up-in-spotfire-jsviz.html' title='Images not showing up in Spotfire JSViz'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25574972.post-3214702684302974675</id><published>2021-06-21T13:14:00.002-05:00</published><updated>2021-08-10T10:57:36.764-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="base64 encode css js"/><category scheme="http://www.blogger.com/atom/ns#" term="image"/><title type='text'>How to base64 encode images for web pages?</title><content type='html'>&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;a href=&quot; https://css-tricks.com/data-uris/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;&amp;nbsp;https://css-tricks.com/data-uris/&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://shrinandvyas.blogspot.com/feeds/3214702684302974675/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shrinandvyas.blogspot.com/2021/06/how-to-base64-encode-images-for-web.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default/3214702684302974675'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default/3214702684302974675'/><link rel='alternate' type='text/html' href='http://shrinandvyas.blogspot.com/2021/06/how-to-base64-encode-images-for-web.html' title='How to base64 encode images for web pages?'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25574972.post-3090963053393381824</id><published>2021-06-10T15:32:00.004-05:00</published><updated>2022-01-11T12:28:51.563-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Spotfire LayoutDefinition Example"/><title type='text'>Spotfire LayoutDefinition Example</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxB7Ifipmd-KF-sHTHsUbIfjLx3WqD24-5Ngw9NqPegylSglCyOB4sQIkfGgNFoCJIEFhg7MCMHnaSzcckOWhT4F_FyJjzcw3XB4D_OL9DsYIi339T5qYW0NmieqAJp5g2_b-Nmw/&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img data-original-height=&quot;819&quot; data-original-width=&quot;377&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxB7Ifipmd-KF-sHTHsUbIfjLx3WqD24-5Ngw9NqPegylSglCyOB4sQIkfGgNFoCJIEFhg7MCMHnaSzcckOWhT4F_FyJjzcw3XB4D_OL9DsYIi339T5qYW0NmieqAJp5g2_b-Nmw/s16000/image.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;Reference: &lt;a href=&quot;https://docs.tibco.com/pub/doc_remote/sfire_dev/area/doc/api/TIB_sfire-analyst_api/?topic=html/T_Spotfire_Dxp_Application_Layout_LayoutDefinition.htm&amp;amp;_ga=2.25479037.1366466910.1641925636-2122471395.1610633842&amp;amp;_gac=1.127383039.1641400872.Cj0KCQiAoNWOBhCwARIsAAiHnEgmp0UtpetA_svOy5WK8M4-W-p68-mZkV8-HwSUZpmMXN4-qu3KFqMaAnTWEALw_wcB&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;Spotfire&amp;nbsp;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: arial;&quot;&gt;&lt;a href=&quot;https://docs.tibco.com/pub/doc_remote/sfire_dev/area/doc/api/TIB_sfire-analyst_api/?topic=html/T_Spotfire_Dxp_Application_Layout_LayoutDefinition.htm&amp;amp;_ga=2.25479037.1366466910.1641925636-2122471395.1610633842&amp;amp;_gac=1.127383039.1641400872.Cj0KCQiAoNWOBhCwARIsAAiHnEgmp0UtpetA_svOy5WK8M4-W-p68-mZkV8-HwSUZpmMXN4-qu3KFqMaAnTWEALw_wcB&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;LayoutDefinition Class&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://shrinandvyas.blogspot.com/feeds/3090963053393381824/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shrinandvyas.blogspot.com/2021/06/spotfire-layoutdefinition-example.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default/3090963053393381824'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default/3090963053393381824'/><link rel='alternate' type='text/html' href='http://shrinandvyas.blogspot.com/2021/06/spotfire-layoutdefinition-example.html' title='Spotfire LayoutDefinition Example'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxB7Ifipmd-KF-sHTHsUbIfjLx3WqD24-5Ngw9NqPegylSglCyOB4sQIkfGgNFoCJIEFhg7MCMHnaSzcckOWhT4F_FyJjzcw3XB4D_OL9DsYIi339T5qYW0NmieqAJp5g2_b-Nmw/s72-c/image.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25574972.post-4352137553246131432</id><published>2021-06-09T10:28:00.003-05:00</published><updated>2021-06-09T10:29:12.874-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Hide"/><category scheme="http://www.blogger.com/atom/ns#" term="JSVIz"/><category scheme="http://www.blogger.com/atom/ns#" term="Show"/><category scheme="http://www.blogger.com/atom/ns#" term="Spotfire"/><category scheme="http://www.blogger.com/atom/ns#" term="Title"/><title type='text'>Spotfire JSViz: How to Show or Hide Title of the visualization (C# extensions)</title><content type='html'>&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var jsVisual = document.ActivePageReference.Visuals.AddNew&amp;lt;JSVisualizationModel&amp;gt;();&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; jsVisual.LegendVisible = false;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;background-color: #fcff01;&quot;&gt;&amp;nbsp; &amp;nbsp; jsVisual.Visual.ShowTitle = false;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://shrinandvyas.blogspot.com/feeds/4352137553246131432/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shrinandvyas.blogspot.com/2021/06/spotfire-jsviz-how-to-show-or-hide.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default/4352137553246131432'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default/4352137553246131432'/><link rel='alternate' type='text/html' href='http://shrinandvyas.blogspot.com/2021/06/spotfire-jsviz-how-to-show-or-hide.html' title='Spotfire JSViz: How to Show or Hide Title of the visualization (C# extensions)'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25574972.post-3091444922393353161</id><published>2021-06-08T10:53:00.003-05:00</published><updated>2021-06-08T10:53:47.382-05:00</updated><title type='text'>Updating Angular Version in your Project (i.e. from 10 to 12)</title><content type='html'>&lt;p&gt;&lt;a href=&quot;https://update.angular.io/?v=10.0-12.0&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;&amp;nbsp;https://update.angular.io/?v=10.0-12.0&lt;/a&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://shrinandvyas.blogspot.com/feeds/3091444922393353161/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shrinandvyas.blogspot.com/2021/06/updating-angular-version-in-your.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default/3091444922393353161'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default/3091444922393353161'/><link rel='alternate' type='text/html' href='http://shrinandvyas.blogspot.com/2021/06/updating-angular-version-in-your.html' title='Updating Angular Version in your Project (i.e. from 10 to 12)'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25574972.post-2276647532704980438</id><published>2021-03-22T11:39:00.003-05:00</published><updated>2021-03-22T11:39:50.974-05:00</updated><title type='text'>WPF Telerik RadGridView Two Way DataBound CheckBox column</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;code style=&quot;background-color: white; font-size: 16px;&quot;&gt;&amp;lt;&lt;/code&gt;&lt;code style=&quot;background-color: white; color: #006699; font-size: 16px; font-weight: bold;&quot;&gt;telerik:GridViewColumn&amp;nbsp;&lt;/code&gt;&lt;code style=&quot;background-color: white; color: grey; font-size: 16px;&quot;&gt;Header&lt;/code&gt;&lt;code style=&quot;background-color: white; font-size: 16px;&quot;&gt;=&lt;/code&gt;&lt;code style=&quot;background-color: white; color: blue; font-size: 16px;&quot;&gt;&quot;Update on PropertyChanged&quot;&amp;nbsp;&lt;/code&gt;&lt;code style=&quot;background-color: white; color: grey; font-size: 16px;&quot;&gt;Width&lt;/code&gt;&lt;code style=&quot;background-color: white; font-size: 16px;&quot;&gt;=&lt;/code&gt;&lt;code style=&quot;background-color: white; color: blue; font-size: 16px;&quot;&gt;&quot;60&quot;&amp;nbsp;&lt;/code&gt;&lt;code style=&quot;background-color: white; color: grey; font-size: 16px;&quot;&gt;IsReadOnly&lt;/code&gt;&lt;code style=&quot;background-color: white; font-size: 16px;&quot;&gt;=&lt;/code&gt;&lt;code style=&quot;background-color: white; color: blue; font-size: 16px;&quot;&gt;&quot;True&quot;&lt;/code&gt;&lt;code style=&quot;background-color: white; font-size: 16px;&quot;&gt;&amp;gt;&lt;/code&gt;&lt;/p&gt;&lt;div style=&quot;background-color: #f8f8f8; color: #555555; font-family: Arial, Helvetica, sans-serif; font-size: 16px;&quot;&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;span style=&quot;margin-left: 12px !important;&quot;&gt;&lt;code style=&quot;color: black;&quot;&gt;&amp;lt;&lt;/code&gt;&lt;code style=&quot;color: #006699; font-weight: bold;&quot;&gt;telerik:GridViewColumn.CellTemplate&lt;/code&gt;&lt;code style=&quot;color: black;&quot;&gt;&amp;gt;&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Helvetica, sans-serif; font-size: 16px;&quot;&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;span style=&quot;margin-left: 24px !important;&quot;&gt;&lt;code style=&quot;color: black;&quot;&gt;&amp;lt;&lt;/code&gt;&lt;code style=&quot;color: #006699; font-weight: bold;&quot;&gt;DataTemplate&lt;/code&gt;&lt;code style=&quot;color: black;&quot;&gt;&amp;gt;&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #f8f8f8; color: #555555; font-family: Arial, Helvetica, sans-serif; font-size: 16px;&quot;&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;span style=&quot;margin-left: 36px !important;&quot;&gt;&lt;code style=&quot;color: black;&quot;&gt;&amp;lt;&lt;/code&gt;&lt;code style=&quot;color: #006699; font-weight: bold;&quot;&gt;CheckBox&amp;nbsp;&lt;/code&gt;&lt;code style=&quot;color: grey;&quot;&gt;HorizontalAlignment&lt;/code&gt;&lt;code style=&quot;color: black;&quot;&gt;=&lt;/code&gt;&lt;code style=&quot;color: blue;&quot;&gt;&quot;Center&quot;&amp;nbsp;&lt;/code&gt;&lt;code style=&quot;color: grey;&quot;&gt;IsChecked&lt;/code&gt;&lt;code style=&quot;color: black;&quot;&gt;=&lt;/code&gt;&lt;code style=&quot;color: blue;&quot;&gt;&quot;{Binding IsSelected, Mode=TwoWay}&quot;&lt;/code&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #f8f8f8; color: #555555; font-family: Arial, Helvetica, sans-serif; font-size: 16px;&quot;&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;span style=&quot;margin-left: 24px !important;&quot;&gt;&lt;code style=&quot;color: black;&quot;&gt;&amp;lt;/&lt;/code&gt;&lt;code style=&quot;color: #006699; font-weight: bold;&quot;&gt;DataTemplate&lt;/code&gt;&lt;code style=&quot;color: black;&quot;&gt;&amp;gt;&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #555555; font-family: Arial, Helvetica, sans-serif; font-size: 16px;&quot;&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;span style=&quot;margin-left: 12px !important;&quot;&gt;&lt;code style=&quot;color: black;&quot;&gt;&amp;lt;/&lt;/code&gt;&lt;code style=&quot;color: #006699; font-weight: bold;&quot;&gt;telerik:GridViewColumn.CellTemplate&lt;/code&gt;&lt;code style=&quot;color: black;&quot;&gt;&amp;gt;&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #f8f8f8; color: #555555; font-family: Arial, Helvetica, sans-serif; font-size: 16px;&quot;&gt;&lt;span style=&quot;margin-left: 0px !important;&quot;&gt;&lt;code style=&quot;color: black;&quot;&gt;&amp;lt;/&lt;/code&gt;&lt;code style=&quot;color: #006699; font-weight: bold;&quot;&gt;telerik:GridViewColumn&lt;/code&gt;&lt;code style=&quot;color: black;&quot;&gt;&amp;gt;&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shrinandvyas.blogspot.com/feeds/2276647532704980438/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shrinandvyas.blogspot.com/2021/03/wpf-telerik-radgridview-two-way.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default/2276647532704980438'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default/2276647532704980438'/><link rel='alternate' type='text/html' href='http://shrinandvyas.blogspot.com/2021/03/wpf-telerik-radgridview-two-way.html' title='WPF Telerik RadGridView Two Way DataBound CheckBox column'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25574972.post-1811228643428908186</id><published>2020-10-28T15:58:00.000-05:00</published><updated>2020-10-28T15:58:04.472-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="Download File"/><category scheme="http://www.blogger.com/atom/ns#" term="Web Forms"/><title type='text'>ASP.Net Web Forms: How to download a file? How to save string to a file?</title><content type='html'>&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;nbsp;private void SaveFile(string featureKey)&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-family: verdana; white-space: pre;&quot;&gt;		&lt;/span&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: verdana; white-space: pre;&quot;&gt;			&lt;/span&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;Response.ContentType = &quot;text/plain&quot;;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: verdana; white-space: pre;&quot;&gt;			&lt;/span&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;Response.AppendHeader(&quot;Content-Disposition&quot;, &quot;attachment; &lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;filename=FeatureKey.txt&quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: verdana; white-space: pre;&quot;&gt;			&lt;/span&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;if (Response.IsClientConnected)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: verdana; white-space: pre;&quot;&gt;			&lt;/span&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: verdana; white-space: pre;&quot;&gt;				&lt;/span&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;var buffer = Encoding.ASCII.GetBytes(featureKey);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: verdana; white-space: pre;&quot;&gt;				&lt;/span&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;var length = featureKey.Length;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: verdana; white-space: pre;&quot;&gt;				&lt;/span&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;Response.OutputStream.Write(buffer, 0, length);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: verdana; white-space: pre;&quot;&gt;			&lt;/span&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: verdana; white-space: pre;&quot;&gt;			&lt;/span&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;Response.Flush();&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: verdana; white-space: pre;&quot;&gt;			&lt;/span&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;Response.End();&lt;/span&gt;&lt;br /&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;}&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://shrinandvyas.blogspot.com/feeds/1811228643428908186/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shrinandvyas.blogspot.com/2020/10/aspnet-web-forms-how-to-download-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default/1811228643428908186'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default/1811228643428908186'/><link rel='alternate' type='text/html' href='http://shrinandvyas.blogspot.com/2020/10/aspnet-web-forms-how-to-download-file.html' title='ASP.Net Web Forms: How to download a file? How to save string to a file?'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25574972.post-1969486454549591919</id><published>2020-10-08T13:24:00.004-05:00</published><updated>2020-12-28T15:16:57.112-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="MVVM"/><category scheme="http://www.blogger.com/atom/ns#" term="WindowHandle"/><category scheme="http://www.blogger.com/atom/ns#" term="WPF"/><title type='text'>WPF: How to pass WindowHandle to ViewModel using MVVM pattern</title><content type='html'>&lt;p&gt;&lt;b&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;Create a Behavior with dependency property as shown below:&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;using System;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;using System.Diagnostics.CodeAnalysis;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;using System.Windows;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;using System.Windows.Interactivity;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;using System.Windows.Interop;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;namespace My.Windows.Controls.Behaviors&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;nbsp; &amp;nbsp; [ExcludeFromCodeCoverage]&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;public class WindowHandleMVVMBehavior : Behavior&amp;lt;Window&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;public IntPtr WindowHandle&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;get { return (IntPtr)GetValue(WindowHandleProperty); }&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;set { SetValue(WindowHandleProperty, value); }&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;public static readonly DependencyProperty WindowHandleProperty =&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;DependencyProperty.Register(&quot;WindowHandle&quot;, typeof(IntPtr), typeof(WindowHandleMVVMBehavior),&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;				&lt;/span&gt;new FrameworkPropertyMetadata(IntPtr.Zero, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault));&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;protected override void OnAttached()&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;base.OnAttached();&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;if (AssociatedObject != null)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;				&lt;/span&gt;AssociatedObject.Loaded += OnWindowLoaded;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;private void OnWindowLoaded(object sender, RoutedEventArgs e)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;var window = sender as Window;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;var windowHandle = GetWindowHandle(window);&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;WindowHandle = windowHandle;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;protected override void OnDetaching()&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;base.OnDetaching();&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;if (AssociatedObject != null)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;				&lt;/span&gt;AssociatedObject.Loaded -= OnWindowLoaded;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;private IntPtr GetWindowHandle(Window window)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;			&lt;/span&gt;return window is null ? IntPtr.Zero : new WindowInteropHelper(window).Handle;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;}&lt;/span&gt;&lt;/p&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;Use the Behavior in XAML like this:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;lt;Window x:Class=&quot;Applications.Views.MainView&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xmlns=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xmlns:x=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xmlns:i=&quot;http://schemas.microsoft.com/expression/2010/interactivity&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;span style=&quot;background-color: #fcff01;&quot;&gt; &amp;lt;i:Interaction.Behaviors&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #fcff01;&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;&amp;lt;behaviors:WindowHandleMVVMBehavior WindowHandle=&quot;{Binding WindowHandle, Mode=TwoWay}&quot;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/i:Interaction.Behaviors&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;lt;/Window&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;Create Property in your ViewModel (DataContext of MainView) similar to this one:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;private IntPtr _windowHandle;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public IntPtr WindowHandle&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; get { return _windowHandle; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _windowHandle = value;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shrinandvyas.blogspot.com/feeds/1969486454549591919/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shrinandvyas.blogspot.com/2020/10/wpf-how-to-pass-windowhandle-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default/1969486454549591919'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default/1969486454549591919'/><link rel='alternate' type='text/html' href='http://shrinandvyas.blogspot.com/2020/10/wpf-how-to-pass-windowhandle-to.html' title='WPF: How to pass WindowHandle to ViewModel using MVVM pattern'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25574972.post-1861349247483041713</id><published>2013-06-14T14:19:00.000-05:00</published><updated>2013-06-14T14:19:46.176-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="BitVector32"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="XmlSerialize"/><title type='text'>C# How to Serialize/Deserialize BitVector32</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;I have a class with a property of type BitVector32, when I Serialize it, I noticed the property was not getting serialized because the BitVector32 is not [Serializable].&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;After thinking about how can I serialize this property and looking into the implementation of BitVector32 it became clear that I need to approach this from a different angle.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;BitVector32 class has a property called Data where the information is stored, this property is of type Int and Int is obviously [Serializable].&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: #ffd966; font-family: Verdana, sans-serif;&quot;&gt;Here is my approach:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre style=&quot;font-family: Consolas; font-size: 15px;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;[&lt;span style=&quot;color: #2b91af;&quot;&gt;Serializable&lt;/span&gt;]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;class&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;TreeItem&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//&amp;nbsp;Serializable&amp;nbsp;requires&amp;nbsp;an&amp;nbsp;empty&amp;nbsp;constructor&amp;nbsp;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt;&amp;nbsp;TreeItem()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;&amp;nbsp;Id&amp;nbsp;{&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;get&lt;/span&gt;;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;set&lt;/span&gt;;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;&amp;nbsp;ObjectType&amp;nbsp;{&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;get&lt;/span&gt;;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;set&lt;/span&gt;;&amp;nbsp;}
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[&lt;span style=&quot;color: #2b91af;&quot;&gt;XmlIgnore&lt;/span&gt;]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;BitVector32&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffd966;&quot;&gt;Properties&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;{&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;get&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;set&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;;&amp;nbsp;}
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2b91af;&quot;&gt;XmlElement&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #ffd966; color: #a31515;&quot;&gt;&quot;Properties&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;)]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2b91af;&quot;&gt;Int32&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;Data
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;get&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;{&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;Properties.Data;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;set&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;{&amp;nbsp;Properties&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2b91af;&quot;&gt;BitVector32&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;);&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: #ffd966; font-family: Verdana, sans-serif;&quot;&gt;Here is how the serialized class looks like:&lt;/span&gt;

&lt;br /&gt;
&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQRXEU_wNuPPur1CRICEV12y9CNm-HkCED9j5fjGvfUw0ZQ9bSsMgDXhgWK9H7XAiwjnRyY1rjPx6iMzB9oAxYXayKkzQUjKa1Gtg2fAZH0b2I1ja3iIr3D8dfeY8LYM-MC7-FUQ/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt; &amp;lt;TreeItem xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot;&amp;gt;  
  &amp;lt;Id&amp;gt;1&amp;lt;/Id&amp;gt;  
  &amp;lt;ObjectType&amp;gt;2&amp;lt;/ObjectType&amp;gt;  
  &amp;lt;Properties&amp;gt;3&amp;lt;/Properties&amp;gt;  
 &amp;lt;/TreeItem&amp;gt;  
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: #ffd966; font-family: Verdana, sans-serif;&quot;&gt;Here is the test class:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 15px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;using&lt;/span&gt;&amp;nbsp;System.Collections.Specialized;
&lt;span style=&quot;color: blue;&quot;&gt;using&lt;/span&gt;&amp;nbsp;System.IO;
&lt;span style=&quot;color: blue;&quot;&gt;using&lt;/span&gt;&amp;nbsp;System.Linq;
&lt;span style=&quot;color: blue;&quot;&gt;using&lt;/span&gt;&amp;nbsp;ComplexSerialization.IO;
&lt;span style=&quot;color: blue;&quot;&gt;using&lt;/span&gt;&amp;nbsp;ComplexSerialization.Model;
&lt;span style=&quot;color: blue;&quot;&gt;using&lt;/span&gt;&amp;nbsp;Microsoft.VisualStudio.TestTools.UnitTesting;
 
&lt;span style=&quot;color: blue;&quot;&gt;namespace&lt;/span&gt;&amp;nbsp;Serialization.Tests
{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[&lt;span style=&quot;color: #2b91af;&quot;&gt;TestClass&lt;/span&gt;]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;class&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;TreeItemTest&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;TestContext&lt;/span&gt;&amp;nbsp;TestContext&amp;nbsp;{&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;get&lt;/span&gt;;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;set&lt;/span&gt;;&amp;nbsp;}
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;private&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;XmlSerializer&lt;/span&gt;&amp;lt;&lt;span style=&quot;color: #2b91af;&quot;&gt;TreeItem&lt;/span&gt;&amp;gt;&amp;nbsp;_subject;
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;private&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;&amp;nbsp;_filePath;
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[&lt;span style=&quot;color: #2b91af;&quot;&gt;TestInitialize&lt;/span&gt;]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt;&amp;nbsp;TestInitialize()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;_subject&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;XmlSerializer&lt;/span&gt;&amp;lt;&lt;span style=&quot;color: #2b91af;&quot;&gt;TreeItem&lt;/span&gt;&amp;gt;();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;_filePath&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;Path&lt;/span&gt;.Combine(TestContext.TestDeploymentDir,&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;TreeItem.xml&quot;&lt;/span&gt;);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[&lt;span style=&quot;color: #2b91af;&quot;&gt;TestMethod&lt;/span&gt;]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt;&amp;nbsp;Serialize()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//&amp;nbsp;Arrange&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;var&lt;/span&gt;&amp;nbsp;treeItem&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;TreeItem&lt;/span&gt;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Id&amp;nbsp;=&amp;nbsp;1,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ObjectType&amp;nbsp;=&amp;nbsp;2,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Properties&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;BitVector32&lt;/span&gt;(3)&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;};
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//&amp;nbsp;Act&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;_subject.Serialize(treeItem,&amp;nbsp;_filePath);
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//&amp;nbsp;Assert&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;Assert&lt;/span&gt;.AreEqual(1,&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;Directory&lt;/span&gt;.GetFiles(TestContext.TestDeploymentDir).ToList().Count(x=&amp;gt;x.Contains(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;TreeItem.xml&quot;&lt;/span&gt;)));
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
}&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://shrinandvyas.blogspot.com/feeds/1861349247483041713/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shrinandvyas.blogspot.com/2013/06/c-how-to-serializedeserialize.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default/1861349247483041713'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default/1861349247483041713'/><link rel='alternate' type='text/html' href='http://shrinandvyas.blogspot.com/2013/06/c-how-to-serializedeserialize.html' title='C# How to Serialize/Deserialize BitVector32'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25574972.post-2285036091705743432</id><published>2013-05-13T15:02:00.000-05:00</published><updated>2013-05-13T15:02:06.506-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Right Click"/><category scheme="http://www.blogger.com/atom/ns#" term="Select Node"/><category scheme="http://www.blogger.com/atom/ns#" term="Telerik RadTreeView"/><title type='text'>WPF Telerik RadTreeView Select Node on right click</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;In an application that we are working on, we want to select the Telerik RadTreeViewItem node the user is right clicking on and display context menu for the selected node.&lt;/span&gt;&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;This is not supported out of the box by Telerik, so I wrote an attached property to accomplish this. Please take a look at the code snippet below.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: yellow; font-family: Verdana, sans-serif;&quot;&gt;Full Visual Studio 2010 solution is also uploaded on my &lt;a href=&quot;https://docs.google.com/file/d/0Bw72YL7u1Bpmd3JhNUVhSzZEX2c/edit?usp=sharing&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;google drive here&lt;/a&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre style=&quot;font-family: Consolas; font-size: 15px;&quot;&gt;&lt;pre style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Window&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;x&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;Class&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;RadTreeViewExtensions.MainWindow&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;xmlns&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;xmlns&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;xmlns&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;Telerik&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;http://schemas.telerik.com/2008/xaml/presentation&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;xmlns&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;RadTreeViewExtensions&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;clr-namespace:RadTreeViewExtensions&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Title&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;Telerik&amp;nbsp;RadTreeView&amp;nbsp;Behavior:&amp;nbsp;Select&amp;nbsp;Node&amp;nbsp;on&amp;nbsp;right&amp;nbsp;click&amp;nbsp;&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Height&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;350&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Width&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;525&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Grid&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Grid.Resources&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;HierarchicalDataTemplate&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;x&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;Key&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;ChildrenTemplate&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;ItemsSource&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&quot;{&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Binding&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Path&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;Children&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;StackPanel&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;TextBlock&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Text&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&quot;{&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Binding&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Name&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;nbsp;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;StackPanel&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;HierarchicalDataTemplate&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Grid.Resources&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Telerik&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;RadTreeView&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;ItemsSource&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&quot;{&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Binding&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Items&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;ItemTemplate&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&quot;{&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;StaticResource&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;ChildrenTemplate&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;SelectionMode&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;Single&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;RadTreeViewExtensions&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;RadTreeViewBehavior.RightClickSelectsNode&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;True&quot;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Grid&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Window&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;font-family: Consolas;&quot;&gt;
&lt;/pre&gt;
&lt;pre style=&quot;font-family: Consolas;&quot;&gt;&lt;pre style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas;&quot;&gt;&lt;/pre&gt;
&lt;/pre&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://shrinandvyas.blogspot.com/feeds/2285036091705743432/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shrinandvyas.blogspot.com/2013/05/wpf-telerik-radtreeview-select-node-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default/2285036091705743432'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default/2285036091705743432'/><link rel='alternate' type='text/html' href='http://shrinandvyas.blogspot.com/2013/05/wpf-telerik-radtreeview-select-node-on.html' title='WPF Telerik RadTreeView Select Node on right click'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25574972.post-1916029416939213630</id><published>2013-04-10T09:27:00.002-05:00</published><updated>2013-04-10T09:27:26.500-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="BeginInvoke"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Dispatcher"/><category scheme="http://www.blogger.com/atom/ns#" term="Unit Test"/><title type='text'>C# How to unit test Dispatcher</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Dispatcher provides services for managing the queue of work items for a thread. Sometimes to execute a task on a background thread.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Any task executed by calling Dispatcher.BeginInvoke(...) in unit test does not get executed until you do some wire-up.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;This is how you would unit test code with Dispatcher.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;pre style=&quot;font-family: Consolas; font-size: 15px;&quot;&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;System;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;System.Windows.Threading;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;Microsoft.VisualStudio.TestTools.UnitTesting;
 
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;namespace&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;UnitTesting.Tests
{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2b91af;&quot;&gt;TestClass&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2b91af;&quot;&gt;DispatcherUtilTest&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;private&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2b91af;&quot;&gt;ClassThatUsesDispatcher&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;_subject;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2b91af;&quot;&gt;TestInitialize&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;TestInitialize()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;_subject&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2b91af;&quot;&gt;ClassThatUsesDispatcher&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2b91af;&quot;&gt;TestMethod&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;UseDispatcher()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: green;&quot;&gt;//&amp;nbsp;Arrange&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;backgroundWorkDone&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;_subject.BackgroungWorkAction&amp;nbsp;=&amp;nbsp;()&amp;nbsp;=&amp;gt;&amp;nbsp;{&amp;nbsp;backgroundWorkDone&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;;&amp;nbsp;};
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: green;&quot;&gt;//&amp;nbsp;Act&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;_subject.DoWork();
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: green;&quot;&gt;//&amp;nbsp;Assert&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;/&amp;nbsp;Without&amp;nbsp;calling&amp;nbsp;DispatcherUtil.DoEvents()&amp;nbsp;the&amp;nbsp;test&amp;nbsp;will&amp;nbsp;fail&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;color: #2b91af;&quot;&gt;DispatcherUtil&lt;/span&gt;.DoEvents();&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2b91af;&quot;&gt;Assert&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;.IsTrue(backgroundWorkDone);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2b91af;&quot;&gt;TestMethod&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;DontUseDispatcher()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: green;&quot;&gt;//&amp;nbsp;Arrange&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;backgroundWorkDone&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;_subject.BackgroungWorkAction&amp;nbsp;=&amp;nbsp;()&amp;nbsp;=&amp;gt;&amp;nbsp;{&amp;nbsp;backgroundWorkDone&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;;&amp;nbsp;};
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: green;&quot;&gt;//&amp;nbsp;Act&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;_subject.DoWork();
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: green;&quot;&gt;//&amp;nbsp;Assert&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2b91af;&quot;&gt;Assert&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;.IsFalse(backgroundWorkDone);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;internal&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2b91af;&quot;&gt;ClassThatUsesDispatcher&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;internal&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2b91af;&quot;&gt;Action&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;BackgroungWorkAction;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;readonly&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2b91af;&quot;&gt;Dispatcher&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;_dispatcher;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;internal&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;ClassThatUsesDispatcher()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;_dispatcher&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2b91af;&quot;&gt;Dispatcher&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;.CurrentDispatcher;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;BackgroungWorkAction&amp;nbsp;=&amp;nbsp;DoSomeBackgroundWork;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;DoWork()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;_dispatcher.BeginInvoke(BackgroungWorkAction,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2b91af;&quot;&gt;DispatcherPriority&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;.Background,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;object&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;[]{});
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;internal&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;DoSomeBackgroundWork()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: green;&quot;&gt;//&amp;nbsp;Make&amp;nbsp;a&amp;nbsp;web-service&amp;nbsp;call&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: green;&quot;&gt;//&amp;nbsp;Read&amp;nbsp;data&amp;nbsp;from&amp;nbsp;file-system&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: green;&quot;&gt;//&amp;nbsp;Wait&amp;nbsp;for&amp;nbsp;a&amp;nbsp;resource&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: green;&quot;&gt;//&amp;nbsp;etc.&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
}&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: yellow; font-family: Verdana, sans-serif;&quot;&gt;**** This is the class you would need to unit test Dispatcher ****&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 15px;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;///&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;&amp;nbsp;This&amp;nbsp;class&amp;nbsp;helps&amp;nbsp;UnitTest&amp;nbsp;Dispatcher.&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;///&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;&amp;nbsp;Dispatcher&amp;nbsp;does&amp;nbsp;not&amp;nbsp;automatically&amp;nbsp;process&amp;nbsp;its&amp;nbsp;queue,&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: grey;&quot;&gt;///&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;&amp;nbsp;DoEvents&amp;nbsp;method&amp;nbsp;here&amp;nbsp;will&amp;nbsp;tell&amp;nbsp;the&amp;nbsp;Dispatcher&amp;nbsp;to&amp;nbsp;process&amp;nbsp;its&amp;nbsp;queue&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 15px;&quot;&gt;&lt;pre style=&quot;background-position: initial initial; background-repeat: initial initial; font-family: Consolas;&quot;&gt;&lt;pre style=&quot;background-position: initial initial; background-repeat: initial initial; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;using&lt;/span&gt;&amp;nbsp;System.Security.Permissions;
&lt;span style=&quot;color: blue;&quot;&gt;using&lt;/span&gt;&amp;nbsp;System.Windows.Threading;
 
&lt;span style=&quot;color: blue;&quot;&gt;namespace&lt;/span&gt;&amp;nbsp;UnitTesting
{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;static&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;class&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;DispatcherUtil&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[&lt;span style=&quot;color: #2b91af;&quot;&gt;SecurityPermissionAttribute&lt;/span&gt;(&lt;span style=&quot;color: #2b91af;&quot;&gt;SecurityAction&lt;/span&gt;.Demand,&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Flags&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;SecurityPermissionFlag&lt;/span&gt;.UnmanagedCode)]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;static&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt;&amp;nbsp;DoEvents()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;var&lt;/span&gt;&amp;nbsp;frame&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;DispatcherFrame&lt;/span&gt;();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;Dispatcher&lt;/span&gt;.CurrentDispatcher.BeginInvoke(&lt;span style=&quot;color: #2b91af;&quot;&gt;DispatcherPriority&lt;/span&gt;.Background,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;DispatcherOperationCallback&lt;/span&gt;(ExitFrame),&amp;nbsp;frame);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;Dispatcher&lt;/span&gt;.PushFrame(frame);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;private&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;static&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;object&lt;/span&gt;&amp;nbsp;ExitFrame(&lt;span style=&quot;color: blue;&quot;&gt;object&lt;/span&gt;&amp;nbsp;frame)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;((&lt;span style=&quot;color: #2b91af;&quot;&gt;DispatcherFrame&lt;/span&gt;)&amp;nbsp;frame).Continue&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;false&lt;/span&gt;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;return&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;null&lt;/span&gt;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
}&lt;/pre&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/pre&gt;
&lt;pre style=&quot;background-position: initial initial; background-repeat: initial initial; font-family: Consolas;&quot;&gt;
&lt;/pre&gt;
&lt;pre style=&quot;background-position: initial initial; background-repeat: initial initial; font-family: Consolas;&quot;&gt;
&lt;/pre&gt;
&lt;pre style=&quot;background-position: initial initial; background-repeat: initial initial; font-family: Consolas;&quot;&gt;
&lt;/pre&gt;
&lt;pre style=&quot;background-position: initial initial; background-repeat: initial initial; font-family: Consolas;&quot;&gt;
&lt;/pre&gt;
&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://shrinandvyas.blogspot.com/feeds/1916029416939213630/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shrinandvyas.blogspot.com/2013/04/c-how-to-unit-test-dispatcher.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default/1916029416939213630'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default/1916029416939213630'/><link rel='alternate' type='text/html' href='http://shrinandvyas.blogspot.com/2013/04/c-how-to-unit-test-dispatcher.html' title='C# How to unit test Dispatcher'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25574972.post-1862524484911060636</id><published>2013-03-01T14:36:00.001-06:00</published><updated>2013-03-01T14:36:29.644-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Dispatcher"/><category scheme="http://www.blogger.com/atom/ns#" term="Dispose"/><category scheme="http://www.blogger.com/atom/ns#" term="ShutDownStarted"/><category scheme="http://www.blogger.com/atom/ns#" term="UserControl"/><category scheme="http://www.blogger.com/atom/ns#" term="WPF"/><title type='text'>WPF How to Dispose ViewModel when the associated UserControl (Not Window) closes?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Helvetica Neue, Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Note:&lt;/b&gt; If your WPF UserControl is hosted in MFC Window, you
may want to clean-up the ViewModel that is DataContext of your UserControl. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Helvetica Neue, Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Helvetica Neue, Arial, Helvetica, sans-serif;&quot;&gt;Since Unloaded event is not called reliably for the
UserControl when the hosting MFC Window closes, there is a need for another solution.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Helvetica Neue, Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Helvetica Neue, Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;XAML:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;pre style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 15px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;UserControl&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;x&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;Class&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;Views.MyUserControl&quot;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;xmlns&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;xmlns&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;xmlns&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;mc&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;http://schemas.openxmlformats.org/markup-compatibility/2006&quot;&lt;/span&gt;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;xmlns&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;d&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;http://schemas.microsoft.com/expression/blend/2008&quot;&lt;/span&gt;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;mc&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;Ignorable&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;d&quot;&lt;/span&gt;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;d&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;DesignHeight&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;300&quot;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;d&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;DesignWidth&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;300&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Grid&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Grid&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;UserControl&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 15px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Helvetica Neue, Arial, Helvetica, sans-serif;&quot;&gt;Code Behind:&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 15px;&quot;&gt;&lt;pre style=&quot;background-position: initial initial; background-repeat: initial initial; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;using&lt;/span&gt;&amp;nbsp;System;
&lt;span style=&quot;color: blue;&quot;&gt;using&lt;/span&gt;&amp;nbsp;ViewModels;
 
&lt;span style=&quot;color: blue;&quot;&gt;namespace&lt;/span&gt;&amp;nbsp;Views
{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;partial&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;class&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;MyUserControl&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt;&amp;nbsp;MyUserControl()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DataContext&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;MyUserControlViewModel&lt;/span&gt;();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;InitializeComponent();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Dispatcher.ShutdownStarted&amp;nbsp;+=&amp;nbsp;OnDispatcherShutDownStarted;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;private&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt;&amp;nbsp;OnDispatcherShutDownStarted(&lt;span style=&quot;color: blue;&quot;&gt;object&lt;/span&gt;&amp;nbsp;sender,&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;EventArgs&lt;/span&gt;&amp;nbsp;e)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;var&lt;/span&gt;&amp;nbsp;disposable&amp;nbsp;=&amp;nbsp;DataContext&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;as&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;IDisposable&lt;/span&gt;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt;&amp;nbsp;(!ReferenceEquals(&lt;span style=&quot;color: blue;&quot;&gt;null&lt;/span&gt;,&amp;nbsp;disposable))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;disposable.Dispose();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
}
&lt;/pre&gt;
&lt;pre style=&quot;background-position: initial initial; background-repeat: initial initial; font-family: Consolas;&quot;&gt;
&lt;/pre&gt;
&lt;pre style=&quot;background-position: initial initial; background-repeat: initial initial; font-family: Consolas;&quot;&gt;&lt;b&gt;ViewModel:&lt;/b&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-position: initial initial; background-repeat: initial initial; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;using&lt;/span&gt;&amp;nbsp;System;
 
&lt;span style=&quot;color: blue;&quot;&gt;namespace&lt;/span&gt;&amp;nbsp;ViewModels
{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;class&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;MyUserControlViewModel&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;IDisposable&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt;&amp;nbsp;Dispose()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//&amp;nbsp;Cleanup&amp;nbsp;code&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//&amp;nbsp;SettingsRepository.Save();&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//&amp;nbsp;WebServiceConnection.Close();&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//&amp;nbsp;etc.&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
}&lt;/pre&gt;
&lt;/pre&gt;
&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://shrinandvyas.blogspot.com/feeds/1862524484911060636/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shrinandvyas.blogspot.com/2013/03/wpf-how-to-dispose-viewmodel-when.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default/1862524484911060636'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default/1862524484911060636'/><link rel='alternate' type='text/html' href='http://shrinandvyas.blogspot.com/2013/03/wpf-how-to-dispose-viewmodel-when.html' title='WPF How to Dispose ViewModel when the associated UserControl (Not Window) closes?'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25574972.post-6238817812629012864</id><published>2013-02-27T08:52:00.000-06:00</published><updated>2013-02-27T08:52:41.893-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Create Generic List Dynamically"/><category scheme="http://www.blogger.com/atom/ns#" term="Dynamic"/><category scheme="http://www.blogger.com/atom/ns#" term="Generics"/><title type='text'>C# How to create generic List with dynamic type</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: white; font-size: 15px;&quot;&gt;&lt;span style=&quot;font-family: Helvetica Neue, Arial, Helvetica, sans-serif;&quot;&gt; Given the Type typeof(&lt;span style=&quot;color: #3d85c6;&quot;&gt;Item&lt;/span&gt;) (defined below), how would you create a list of Items using Reflection in C#?&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 15px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 15px;&quot;&gt;&lt;pre style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;var&lt;/span&gt;&amp;nbsp;type&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;typeof&lt;/span&gt;(&lt;span style=&quot;color: #2b91af;&quot;&gt;Item&lt;/span&gt;);
&lt;span style=&quot;color: #2b91af;&quot;&gt;IList&lt;/span&gt;&amp;nbsp;listOfItems&amp;nbsp;=&amp;nbsp;(&lt;span style=&quot;color: #2b91af;&quot;&gt;IList&lt;/span&gt;)&lt;span style=&quot;color: #2b91af;&quot;&gt;Activator&lt;/span&gt;.CreateInstance(&lt;span style=&quot;color: blue;&quot;&gt;typeof&lt;/span&gt;(&lt;span style=&quot;color: #2b91af;&quot;&gt;List&lt;/span&gt;&amp;lt;&amp;gt;).MakeGenericType(type));&lt;/pre&gt;
&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 15px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;   &amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 15px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;class&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;Item&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 15px;&quot;&gt;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;&amp;nbsp;Name&amp;nbsp;{&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;get&lt;/span&gt;;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;set&lt;/span&gt;;&amp;nbsp;}
}&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 15px;&quot;&gt;    &lt;/pre&gt;
&lt;pre style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 15px;&quot;&gt;    &lt;/pre&gt;
&lt;pre style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 15px;&quot;&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 15px;&quot;&gt;&lt;pre style=&quot;background-position: initial initial; background-repeat: initial initial; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/pre&gt;
&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://shrinandvyas.blogspot.com/feeds/6238817812629012864/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shrinandvyas.blogspot.com/2013/02/c-how-to-create-generic-list-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default/6238817812629012864'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default/6238817812629012864'/><link rel='alternate' type='text/html' href='http://shrinandvyas.blogspot.com/2013/02/c-how-to-create-generic-list-with.html' title='C# How to create generic List with dynamic type'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25574972.post-9129557609975881519</id><published>2013-02-08T10:53:00.002-06:00</published><updated>2013-02-10T18:04:07.194-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="4.0"/><category scheme="http://www.blogger.com/atom/ns#" term="Example"/><category scheme="http://www.blogger.com/atom/ns#" term="InputBindings Example"/><category scheme="http://www.blogger.com/atom/ns#" term="KeyBinding"/><category scheme="http://www.blogger.com/atom/ns#" term="WPF"/><title type='text'>WPF InputBindings KeyBinding Command Example .Net 4.0</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipOFRV6jdHEahrE_Cm9PSS9TAvEj5uxBOJWe_vM4rP5_GVpvN_-R5AaKLykq3HIVULzRIdL8MvTofuMgljEdqwnX7zipmDbWcX26lK472iYkf82aY_Wlm4l63B6UV-y4iRsO2vyQ/s1600/InputKeyBindings_Example.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;316&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipOFRV6jdHEahrE_Cm9PSS9TAvEj5uxBOJWe_vM4rP5_GVpvN_-R5AaKLykq3HIVULzRIdL8MvTofuMgljEdqwnX7zipmDbWcX26lK472iYkf82aY_Wlm4l63B6UV-y4iRsO2vyQ/s320/InputKeyBindings_Example.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Helvetica Neue, Arial, Helvetica, sans-serif;&quot;&gt;WPF starting from .Net Framework 4.0 allows developers to bind commands directly to the KeyBindings as shown in the example below:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Helvetica Neue, Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Helvetica Neue, Arial, Helvetica, sans-serif;&quot;&gt;A complete solution is posted here on my Google Drive:&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000ee; font-family: Helvetica Neue, Arial, Helvetica, sans-serif;&quot;&gt;&lt;u&gt;&lt;a href=&quot;https://docs.google.com/file/d/0Bw72YL7u1BpmaFdsSng1N3Rqbnc/edit?usp=sharing&quot;&gt;https://docs.google.com/file/d/0Bw72YL7u1BpmaFdsSng1N3Rqbnc/edit?usp=sharing&lt;/a&gt;&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;pre style=&quot;font-family: Consolas; font-size: 15px;&quot;&gt;&lt;pre style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Window&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;x&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;Class&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;WPF_InputBindings_Keybinding.MainWindow&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;xmlns&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;xmlns&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Title&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;WPF&amp;nbsp;InputBindings&amp;nbsp;KeyBindings&amp;nbsp;Example&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Height&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;400&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Width&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;400&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Focusable&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;True&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Window.InputBindings&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;&lt;!--&amp;nbsp;CopyCommand&amp;nbsp;&amp;amp;&amp;nbsp;PasteCommand&amp;nbsp;are&amp;nbsp;implemented&amp;nbsp;in&amp;nbsp;the&amp;nbsp;DataContext&amp;nbsp;MainWindowViewModel--&gt;&lt;/span&gt;
&lt;span style=&quot;color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;KeyBinding&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;Key&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;C&quot;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;Modifiers&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;Control&quot;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;Command&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;{&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Binding&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;CopyCommand&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;/&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;KeyBinding&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;Key&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;V&quot;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;Modifiers&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;Control&quot;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;Command&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;{&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Binding&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;PasteCommand&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;/&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Window.InputBindings&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Window&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://shrinandvyas.blogspot.com/feeds/9129557609975881519/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shrinandvyas.blogspot.com/2013/02/wpf-inputbindings-keybinding-command.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default/9129557609975881519'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default/9129557609975881519'/><link rel='alternate' type='text/html' href='http://shrinandvyas.blogspot.com/2013/02/wpf-inputbindings-keybinding-command.html' title='WPF InputBindings KeyBinding Command Example .Net 4.0'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipOFRV6jdHEahrE_Cm9PSS9TAvEj5uxBOJWe_vM4rP5_GVpvN_-R5AaKLykq3HIVULzRIdL8MvTofuMgljEdqwnX7zipmDbWcX26lK472iYkf82aY_Wlm4l63B6UV-y4iRsO2vyQ/s72-c/InputKeyBindings_Example.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25574972.post-7795625192051561369</id><published>2013-02-01T09:09:00.003-06:00</published><updated>2013-02-04T08:50:47.196-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Example"/><category scheme="http://www.blogger.com/atom/ns#" term="Horizontal GridSplitter"/><category scheme="http://www.blogger.com/atom/ns#" term="Style ControlTemplate"/><category scheme="http://www.blogger.com/atom/ns#" term="WPF"/><title type='text'>WPF: How to Style Horizontal GridSplitter</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKv2Vns6vQYmMAsx8TrSEwESQAtp3HLKZ-ZW_F2tvMqCBiHXJGpW3arbsv3Xv5kHnY4_5hKFOmTjyLKroQ9N98iib2te5lhptpPZB4l_D46-Hphw48toBXaIpRdNqX8FdfRrZYGw/s1600/HorizontalGridSplitter.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKv2Vns6vQYmMAsx8TrSEwESQAtp3HLKZ-ZW_F2tvMqCBiHXJGpW3arbsv3Xv5kHnY4_5hKFOmTjyLKroQ9N98iib2te5lhptpPZB4l_D46-Hphw48toBXaIpRdNqX8FdfRrZYGw/s320/HorizontalGridSplitter.png&quot; width=&quot;319&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;pre style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 15px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 15px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;font-family: Consolas; font-size: 15px;&quot;&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Window&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;x&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;Class&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;HorizontalGridSplitterExample&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;xmlns&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;xmlns&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Title&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;HorizontalGridSplitter&amp;nbsp;Example&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Height&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;300&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Width&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;300&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Window.Resources&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: green;&quot;&gt;&lt;!--&amp;nbsp;Horizontal&amp;nbsp;Grid&amp;nbsp;Splitter&amp;nbsp;Style&amp;nbsp;--&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Style&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;x&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;Key&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;GridSplitterHorizontalGripStyle&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;TargetType&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&quot;{&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Type&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;GridSplitter&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Setter&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Property&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;HorizontalAlignment&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Value&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;Stretch&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;nbsp;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Setter&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Property&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;FocusVisualStyle&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Value&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&quot;{&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Null&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;nbsp;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Setter&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Property&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;Cursor&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Value&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;SizeNS&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;nbsp;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Setter&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Property&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;FocusVisualStyle&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Value&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&quot;{&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Null&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;nbsp;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Setter&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Property&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;Background&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Value&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&quot;{&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;DynamicResource&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;nbsp;{&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Static&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;SystemColors&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;ControlBrushKey&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;}}&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;nbsp;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Setter&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Property&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;Template&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Setter.Value&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;ControlTemplate&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;TargetType&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&quot;{&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Type&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;GridSplitter&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Border&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;BorderBrush&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&quot;{&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;TemplateBinding&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;BorderBrush&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;BorderThickness&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&quot;{&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;TemplateBinding&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;BorderThickness&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Background&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&quot;{&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;TemplateBinding&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Background&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Height&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&quot;{&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;TemplateBinding&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Height&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Border&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Width&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;50&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Height&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;4&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;HorizontalAlignment&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;Center&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;BorderThickness&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;0&amp;nbsp;1&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Background&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;White&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;BorderBrush&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;#A0A0A0&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Border&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Border&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;ControlTemplate&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Setter.Value&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Setter&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Style&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
 
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Style&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;x&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;Key&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;HorizontalGridSplitter&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;TargetType&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&quot;{&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Type&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;GridSplitter&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;BasedOn&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&quot;{&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;StaticResource&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;GridSplitterHorizontalGripStyle&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Setter&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Property&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;Height&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Value&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;6&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;nbsp;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Setter&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Property&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;Margin&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Value&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;0&amp;nbsp;15&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;nbsp;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Setter&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Property&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;HorizontalAlignment&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Value&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;Stretch&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;nbsp;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Style&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Window.Resources&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Grid&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Grid.RowDefinitions&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;RowDefinition&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;nbsp;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;RowDefinition&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Height&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;Auto&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;nbsp;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;RowDefinition&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;nbsp;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Grid.RowDefinitions&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Grid&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Border&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Background&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;LightBlue&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;nbsp;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Grid&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: green;&quot;&gt;&lt;!--&amp;nbsp;HorizontalGridSplitter&amp;nbsp;--&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;GridSplitter&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;Grid.Row&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;1&quot;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;Style&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;{&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;StaticResource&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;HorizontalGridSplitter&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Grid&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Grid.Row&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;2&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Border&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Background&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;LightBlue&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;nbsp;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Grid&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Grid&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Window&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://shrinandvyas.blogspot.com/feeds/7795625192051561369/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shrinandvyas.blogspot.com/2013/02/wpf-how-to-use-style-horizontal.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default/7795625192051561369'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default/7795625192051561369'/><link rel='alternate' type='text/html' href='http://shrinandvyas.blogspot.com/2013/02/wpf-how-to-use-style-horizontal.html' title='WPF: How to Style Horizontal GridSplitter'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKv2Vns6vQYmMAsx8TrSEwESQAtp3HLKZ-ZW_F2tvMqCBiHXJGpW3arbsv3Xv5kHnY4_5hKFOmTjyLKroQ9N98iib2te5lhptpPZB4l_D46-Hphw48toBXaIpRdNqX8FdfRrZYGw/s72-c/HorizontalGridSplitter.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25574972.post-8460660449579363361</id><published>2013-02-01T09:04:00.003-06:00</published><updated>2013-02-04T08:50:31.961-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ControlTemplate"/><category scheme="http://www.blogger.com/atom/ns#" term="Style"/><category scheme="http://www.blogger.com/atom/ns#" term="Vertical GridSplitter"/><category scheme="http://www.blogger.com/atom/ns#" term="WPF"/><title type='text'>WPF: How to Style Vertical GridSplitter</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;pre style=&quot;font-family: Consolas; font-size: 15px;&quot;&gt;&lt;pre style=&quot;font-family: Consolas;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRgy9GPnGs2QWpFnr7AnX1RX3HVlWqiNNgtlZkS0vc6DYWRa_mveVJlqblMTOmnH-chyD29gEN8-fXglHhgrjanG7V2aEIp4N7gVCb5ps-XVSPgARUdNF0Lm53vCsk-tXyeNKYOg/s1600/VerticalGridSplitter.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;316&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRgy9GPnGs2QWpFnr7AnX1RX3HVlWqiNNgtlZkS0vc6DYWRa_mveVJlqblMTOmnH-chyD29gEN8-fXglHhgrjanG7V2aEIp4N7gVCb5ps-XVSPgARUdNF0Lm53vCsk-tXyeNKYOg/s320/VerticalGridSplitter.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;pre style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Window&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;x&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;Class&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;VerticalGridSplitterExample&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;xmlns&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;xmlns&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Title&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;VerticalGridSplitter&amp;nbsp;Example&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Height&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;300&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Width&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;300&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Window.Resources&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: green;&quot;&gt;&lt;!--&amp;nbsp;Vertical&amp;nbsp;Grid&amp;nbsp;Splitter&amp;nbsp;Style&amp;nbsp;&amp;amp;&amp;nbsp;Control&amp;nbsp;Template&amp;nbsp;--&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Style&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;x&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;Key&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;GridSplitterVerticalGripStyle&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;TargetType&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&quot;{&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Type&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;GridSplitter&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Setter&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Property&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;VerticalAlignment&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Value&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;Stretch&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;nbsp;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Setter&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Property&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;FocusVisualStyle&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Value&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&quot;{&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Null&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;nbsp;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Setter&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Property&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;Cursor&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Value&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;SizeWE&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;nbsp;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Setter&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Property&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;FocusVisualStyle&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Value&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&quot;{&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Null&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;nbsp;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Setter&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Property&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;Background&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Value&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&quot;{&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;DynamicResource&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;nbsp;{&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Static&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;SystemColors&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;ControlBrushKey&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;}}&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;nbsp;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Setter&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Property&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;Template&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Setter.Value&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;ControlTemplate&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;TargetType&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&quot;{&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Type&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;GridSplitter&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Border&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;BorderBrush&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&quot;{&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;TemplateBinding&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;BorderBrush&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;BorderThickness&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&quot;{&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;TemplateBinding&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;BorderThickness&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Background&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&quot;{&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;TemplateBinding&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Background&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Width&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&quot;{&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;TemplateBinding&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Width&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Border&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Height&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;50&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Width&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;4&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;VerticalAlignment&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;Center&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;HorizontalAlignment&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;Center&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;BorderThickness&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;1&amp;nbsp;0&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Background&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;White&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;BorderBrush&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;#A0A0A0&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Border&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Border&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;ControlTemplate&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Setter.Value&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Setter&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Style&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
 
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Style&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;x&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;Key&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;VerticalGridSplitter&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;TargetType&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&quot;{&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Type&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;GridSplitter&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;BasedOn&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&quot;{&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;StaticResource&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;GridSplitterVerticalGripStyle&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Setter&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Property&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;Width&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Value&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;6&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;nbsp;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Setter&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Property&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;Margin&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Value&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;15&amp;nbsp;0&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;nbsp;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Setter&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Property&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;VerticalAlignment&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Value&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;Stretch&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;nbsp;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Setter&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Property&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;HorizontalAlignment&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Value&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;Center&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;nbsp;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Style&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Window.Resources&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: green;&quot;&gt;&lt;!--&amp;nbsp;How&amp;nbsp;to&amp;nbsp;use&amp;nbsp;Vertical&amp;nbsp;GridSplitter&amp;nbsp;--&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Grid&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Grid.ColumnDefinitions&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;ColumnDefinition&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;nbsp;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;ColumnDefinition&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Width&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;Auto&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;nbsp;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;ColumnDefinition&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;nbsp;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Grid.ColumnDefinitions&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Grid&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Border&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Background&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;LightBlue&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;nbsp;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Grid&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;GridSplitter&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;Grid.Column&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;1&quot;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;Style&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;{&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;StaticResource&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;VerticalGridSplitter&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Grid&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Grid.Column&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;2&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Border&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Background&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;LightBlue&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;nbsp;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Grid&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Grid&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Window&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;/pre&gt;
&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://shrinandvyas.blogspot.com/feeds/8460660449579363361/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shrinandvyas.blogspot.com/2013/02/wpf-how-to-use-style-vertical.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default/8460660449579363361'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default/8460660449579363361'/><link rel='alternate' type='text/html' href='http://shrinandvyas.blogspot.com/2013/02/wpf-how-to-use-style-vertical.html' title='WPF: How to Style Vertical GridSplitter'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRgy9GPnGs2QWpFnr7AnX1RX3HVlWqiNNgtlZkS0vc6DYWRa_mveVJlqblMTOmnH-chyD29gEN8-fXglHhgrjanG7V2aEIp4N7gVCb5ps-XVSPgARUdNF0Lm53vCsk-tXyeNKYOg/s72-c/VerticalGridSplitter.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25574972.post-8964064459487277694</id><published>2013-01-24T10:26:00.000-06:00</published><updated>2013-02-10T18:02:54.136-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Detect Drag Start"/><category scheme="http://www.blogger.com/atom/ns#" term="Drag Drop"/><category scheme="http://www.blogger.com/atom/ns#" term="WPF"/><title type='text'>WPF Drag &amp; Drop: How to detect when drag is started</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Helvetica Neue, Arial, Helvetica, sans-serif;&quot;&gt;This article will explain how to detect when drag is started in WPF Applications.&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Helvetica Neue, Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Helvetica Neue, Arial, Helvetica, sans-serif;&quot;&gt;Features:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Helvetica Neue, Arial, Helvetica, sans-serif;&quot;&gt;1) Reliably detect drag &amp;amp; drop&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Helvetica Neue, Arial, Helvetica, sans-serif;&quot;&gt;2) Don&#39;t confuse double clicks as drag start&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Helvetica Neue, Arial, Helvetica, sans-serif;&quot;&gt;3) Don&#39;t confuse scrolling as drag event&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Helvetica Neue, Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Helvetica Neue, Arial, Helvetica, sans-serif;&quot;&gt;Notes:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Helvetica Neue, Arial, Helvetica, sans-serif;&quot;&gt;- WPF is very powerful, but one thing i find missing is an event telling developers when drag is started&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Helvetica Neue, Arial, Helvetica, sans-serif;&quot;&gt;- The solution here involves handling Left Button Down, Mouse Move &amp;amp; Left Button Up event combinations to detect when drag &amp;amp; drop is started and when it ended&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Helvetica Neue, Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Helvetica Neue, Arial, Helvetica, sans-serif;&quot;&gt;Important:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Helvetica Neue, Arial, Helvetica, sans-serif;&quot;&gt;Even though the code posted here uses code-behind, I highly recommend using MVVM way of handling drag &amp;amp; drop using attached properties on controls to detect drag &amp;amp; drop, show visual feedback and transfer data. (I will post a WPF MVVM Drag &amp;amp; Drop Framework soon)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Helvetica Neue, Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: yellow; font-family: Helvetica Neue, Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Complete Visual Studio 2010 Solution&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0000ee; font-family: Helvetica Neue, Arial, Helvetica, sans-serif;&quot;&gt;&lt;u&gt;&lt;a href=&quot;https://docs.google.com/file/d/0Bw72YL7u1BpmQkl3Q3BleDgzR1E/edit?usp=sharing&quot;&gt;https://docs.google.com/file/d/0Bw72YL7u1BpmQkl3Q3BleDgzR1E/edit?usp=sharing&lt;/a&gt;&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Helvetica Neue, Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; font-family: Helvetica Neue, Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;XAML:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre style=&quot;font-family: Consolas; font-size: 15px;&quot;&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Window&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;x&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;Class&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;DragAndDropDragStart.MainWindow&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;xmlns&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;xmlns&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Title&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;WPF&amp;nbsp;Drag&amp;nbsp;and&amp;nbsp;Drop:&amp;nbsp;detect&amp;nbsp;when&amp;nbsp;drag&amp;nbsp;is&amp;nbsp;started&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Height&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;200&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Width&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;200&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Grid&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;TextBlock&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Text&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;Drag&amp;nbsp;me!&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;HorizontalAlignment&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;Center&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;VerticalAlignment&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;Center&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;FontSize&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;25&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&amp;nbsp;Foreground&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&quot;RoyalBlue&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;MouseLeftButtonDown&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;OnDragSourceMouseLeftButtonDown&quot;&lt;/span&gt;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;MouseLeftButtonUp&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;OnDragSourceMouseLeftButtonUp&quot;&lt;/span&gt;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;MouseMove&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;OnDragSourceMouseMove&quot;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Grid&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;Window&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;font-family: Consolas; font-size: 15px;&quot;&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;font-family: Consolas; font-size: 15px;&quot;&gt;&lt;b&gt;Code-Behind:&lt;/b&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQRXEU_wNuPPur1CRICEV12y9CNm-HkCED9j5fjGvfUw0ZQ9bSsMgDXhgWK9H7XAiwjnRyY1rjPx6iMzB9oAxYXayKkzQUjKa1Gtg2fAZH0b2I1ja3iIr3D8dfeY8LYM-MC7-FUQ/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt; using System;  
 using System.Windows;  
 using System.Windows.Controls.Primitives;  
 using System.Windows.Input;  
 using System.Windows.Media;  
 namespace DragAndDropDragStart  
 {  
   /// &amp;lt;summary&amp;gt;  
   /// Interaction logic for MainWindow.xaml  
   /// &amp;lt;/summary&amp;gt;  
   public partial class MainWindow  
   {  
     private Point _dragStartPoint;  
     private bool _isMouseDown;  
     public MainWindow()  
     {  
       InitializeComponent();  
     }  
     private void OnDragSourceMouseLeftButtonDown(object sender,   
       MouseButtonEventArgs e)  
     {  
       if (e.ClickCount != 1)  
       {  
         return;  
       }  
       _dragStartPoint = e.GetPosition(e.Source as FrameworkElement);  
       _isMouseDown = true;  
     }  
     private void OnDragSourceMouseMove(object sender, MouseEventArgs e)  
     {  
       if (_isMouseDown &amp;amp;&amp;amp;   
         IsDragGesture(e.GetPosition(e.Source as FrameworkElement)))  
       {  
         if (ReferenceEquals(null,   
           FindAncestor&amp;lt;ScrollBar&amp;gt;((DependencyObject)e.OriginalSource)))  
         {  
           // Drag Started  
           _isMouseDown = false;  
           Mouse.Capture(sender as UIElement);  
           MessageBox.Show(&quot;Drag Started&quot;);  
         }  
       }  
     }  
     private void OnDragSourceMouseLeftButtonUp(object sender,   
       MouseButtonEventArgs e)  
     {  
       _isMouseDown = false;  
       Mouse.Capture(null);  
     }  
     private bool IsDragGesture(Point point)  
     {  
       var horizontalMove = Math.Abs(point.X - _dragStartPoint.X);  
       var verticalMove = Math.Abs(point.Y - _dragStartPoint.Y);  
       var hGesture = horizontalMove &amp;gt;  
               SystemParameters.MinimumHorizontalDragDistance;  
       var vGesture = verticalMove &amp;gt;  
               SystemParameters.MinimumVerticalDragDistance;  
       return (hGesture | vGesture);  
     }  
     private static T FindAncestor&amp;lt;T&amp;gt;(DependencyObject dependencyObject)  
       where T : DependencyObject  
     {  
       var parent = VisualTreeHelper.GetParent(dependencyObject);  
       if (parent == null) return null;  
       var parentT = parent as T;  
       return parentT ?? FindAncestor&amp;lt;T&amp;gt;(parent);  
     }  
   }  
 }  
&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBWXzqI1KdXXTcPnz6Rm44cHHDgy85_0KDXgCSNK7SPxR6mCXWNXjzZVYrxQSBEasbSeKXjg9yIvNKsvTuY5MC23Q0XfPFPxlln1qzIwguXBMX5UHx6mdmIys4_q3C0d_ce5Dxjg/s1600/DragDrop.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBWXzqI1KdXXTcPnz6Rm44cHHDgy85_0KDXgCSNK7SPxR6mCXWNXjzZVYrxQSBEasbSeKXjg9yIvNKsvTuY5MC23Q0XfPFPxlln1qzIwguXBMX5UHx6mdmIys4_q3C0d_ce5Dxjg/s320/DragDrop.PNG&quot; width=&quot;317&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://shrinandvyas.blogspot.com/feeds/8964064459487277694/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shrinandvyas.blogspot.com/2013/01/wpf-drag-drop-how-to-detect-when-drag.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default/8964064459487277694'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default/8964064459487277694'/><link rel='alternate' type='text/html' href='http://shrinandvyas.blogspot.com/2013/01/wpf-drag-drop-how-to-detect-when-drag.html' title='WPF Drag &amp; Drop: How to detect when drag is started'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBWXzqI1KdXXTcPnz6Rm44cHHDgy85_0KDXgCSNK7SPxR6mCXWNXjzZVYrxQSBEasbSeKXjg9yIvNKsvTuY5MC23Q0XfPFPxlln1qzIwguXBMX5UHx6mdmIys4_q3C0d_ce5Dxjg/s72-c/DragDrop.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-25574972.post-5749707176106018847</id><published>2013-01-21T08:06:00.000-06:00</published><updated>2013-01-21T08:06:36.962-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Generic Class"/><category scheme="http://www.blogger.com/atom/ns#" term="GetType"/><category scheme="http://www.blogger.com/atom/ns#" term="Reflection"/><category scheme="http://www.blogger.com/atom/ns#" term="T"/><title type='text'>C# how to get type of generic class using reflection</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;pre style=&quot;font-family: Consolas; font-size: 15px;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;In the following example, given an instance of SystemFolder, how would you find the generic type 
&lt;/span&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;Folder &lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;given that&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2b91af;&quot;&gt;SystemFolder&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;:&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2b91af;&quot;&gt;IDropTarget&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: yellow; color: #2b91af;&quot;&gt;Folder&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;gt;?&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 15px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 15px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;using&lt;/span&gt;&amp;nbsp;System;
&lt;span style=&quot;color: blue;&quot;&gt;using&lt;/span&gt;&amp;nbsp;System.Collections.ObjectModel;
&lt;span style=&quot;color: blue;&quot;&gt;using&lt;/span&gt;&amp;nbsp;System.Diagnostics;
&lt;span style=&quot;color: blue;&quot;&gt;using&lt;/span&gt;&amp;nbsp;System.Linq;
 
&lt;span style=&quot;color: blue;&quot;&gt;namespace&lt;/span&gt;&amp;nbsp;CSharpGenerics
{&lt;/pre&gt;
&lt;pre style=&quot;font-family: Consolas; font-size: 15px;&quot;&gt;&lt;pre style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2b91af;&quot;&gt;GenericUtilities&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: yellow; color: green;&quot;&gt;//&amp;nbsp;Example&amp;nbsp;Type&amp;nbsp;type&amp;nbsp;=&amp;nbsp;GenericUtilities.GetGenericType(new&amp;nbsp;SystemFolder());&amp;nbsp;will&amp;nbsp;return&amp;nbsp;Folder&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;static&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2b91af;&quot;&gt;Type&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;GetGenericType(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;object&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;@object)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;type&amp;nbsp;=&amp;nbsp;@object.GetType();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;iDropTargetObject&amp;nbsp;=&amp;nbsp;type.GetInterfaces().
FirstOrDefault(x&amp;nbsp;=&amp;gt;&amp;nbsp;x.IsGenericType&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;x.GetGenericTypeDefinition()&amp;nbsp;==&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;typeof&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2b91af;&quot;&gt;IDropTarget&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;lt;&amp;gt;));
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2b91af;&quot;&gt;Debug&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;.Assert(iDropTargetObject&amp;nbsp;!=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;iDropTargetObject.GetGenericArguments()[0];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2b91af;&quot;&gt;SystemFolder&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;:&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2b91af;&quot;&gt;IDropTarget&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2b91af;&quot;&gt;Folder&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;SystemFolder()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Items&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2b91af;&quot;&gt;Collection&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2b91af;&quot;&gt;Folder&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;gt;();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2b91af;&quot;&gt;Collection&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2b91af;&quot;&gt;Folder&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;gt;&amp;nbsp;Items&amp;nbsp;{&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;get&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;set&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;;&amp;nbsp;}
 
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#region&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;IDropTarget&lt;t&gt;&amp;nbsp;Members
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/t&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;Name
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;get&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;{&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a31515;&quot;&gt;&quot;My&amp;nbsp;Drop&amp;nbsp;Target&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;Add(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2b91af;&quot;&gt;Folder&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;item)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Items.Add(item);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
 
&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#endregion&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;IDropTarget&lt;t&gt;&amp;nbsp;Members
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/t&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2b91af;&quot;&gt;Folder&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;interface&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2b91af;&quot;&gt;IDropTarget&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;t&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/t&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;Name&amp;nbsp;{&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;get&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;;&amp;nbsp;}
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;Add(T&amp;nbsp;item);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
}&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 15px;&quot;&gt;
&lt;/pre&gt;
&lt;pre style=&quot;font-family: Consolas; font-size: 15px;&quot;&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;Test Class&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 15px;&quot;&gt;&lt;pre style=&quot;background-position: initial initial; background-repeat: initial initial; font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;using&lt;/span&gt;&amp;nbsp;Microsoft.VisualStudio.TestTools.UnitTesting;
 
&lt;span style=&quot;color: blue;&quot;&gt;namespace&lt;/span&gt;&amp;nbsp;CSharpGenerics.Tests
{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[&lt;span style=&quot;color: #2b91af;&quot;&gt;TestClass&lt;/span&gt;]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;class&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;SystemFolderTest&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[&lt;span style=&quot;color: #2b91af;&quot;&gt;TestMethod&lt;/span&gt;]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt;&amp;nbsp;GetGenericType()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//&amp;nbsp;Act&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;var&lt;/span&gt;&amp;nbsp;genericType&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;GenericUtilities&lt;/span&gt;.GetGenericType(&lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;SystemFolder&lt;/span&gt;());
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//&amp;nbsp;Assert&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;Assert&lt;/span&gt;.AreEqual(genericType,&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;typeof&lt;/span&gt;(&lt;span style=&quot;color: #2b91af;&quot;&gt;Folder&lt;/span&gt;));
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
}&lt;/pre&gt;
&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://shrinandvyas.blogspot.com/feeds/5749707176106018847/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shrinandvyas.blogspot.com/2013/01/c-how-to-get-type-of-generic-class.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default/5749707176106018847'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25574972/posts/default/5749707176106018847'/><link rel='alternate' type='text/html' href='http://shrinandvyas.blogspot.com/2013/01/c-how-to-get-type-of-generic-class.html' title='C# how to get type of generic class using reflection'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>