SilverlightShow: Basic customizations of the DataGrid Comments http://www.silverlightshow.net/ Silverlight articles, Silverlight tutorials, Silverlight videos, Silverlight samples SilverlightShow.net http://www.rssboard.org/rss-specification Argotic Syndication Framework 2008.0.2.0, http://www.codeplex.com/Argotic en-US estoychev@completit.com (Emil Stoychev) RE: Basic customizations of the DataGrid <p>Is there a way to display the columns and resulting rows the following way ?  Meaning to display the gridview in "rows" rather than in columns by selecting for example only a single row of the complete gridview.</p> <p>My wished display (row 0 selected for example)</p> <p>Group        Carbohydrates</p> <p>Name        Total carbohydrates</p> <p>Quantity    27.3</p> <p>Thanks in advance</p> <p> </p> http://www.silverlightshow.net/items/Basic-customizations-of-the-DataGrid.aspx#comment3871 derfez http://www.silverlightshow.net/items/Basic-customizations-of-the-DataGrid.aspx Thu, 24 Jun 2010 14:50:39 GMT RE: Basic customizations of the DataGrid <p>I am trying to develop a skin for a Silverlight 2 datagrid using expression blend, I can change everything in the template (located in app.xaml) except for the column headings.</p> <p>I tried using the above example but it doesnt appear to work for me, probably something totally basic that I am overlooking but I am a Silverlight 2 noob when it comes to the skinning side of things...</p> <p>Any assistance would be much appreciated. :)</p> http://www.silverlightshow.net/items/Basic-customizations-of-the-DataGrid.aspx#comment927 nathanp812 http://www.silverlightshow.net/items/Basic-customizations-of-the-DataGrid.aspx Sun, 18 Jan 2009 20:42:45 GMT RE: Basic customizations of the DataGrid <p>Remove " SelectionMode="" " code in Page.xaml for develop with Silverlight 2.</p> <p> :)</p> <p>Thank you and Best Regards</p> http://www.silverlightshow.net/items/Basic-customizations-of-the-DataGrid.aspx#comment922 Aong http://www.silverlightshow.net/items/Basic-customizations-of-the-DataGrid.aspx Sat, 17 Jan 2009 00:24:26 GMT RE: Basic customizations of the DataGrid <p>move " SelectionMode="" " code in Page.xaml for develop with Silverlight 2.</p> <p> </p> <p>Thank you and Best Regards,</p> <p> </p> http://www.silverlightshow.net/items/Basic-customizations-of-the-DataGrid.aspx#comment921 Aong http://www.silverlightshow.net/items/Basic-customizations-of-the-DataGrid.aspx Sat, 17 Jan 2009 00:18:42 GMT RE: Basic customizations of the DataGrid <p>To modify the column header you have to set the <em><strong>ColumnHeaderStyle </strong></em>property to an appropriate style. The default style is:</p> <div style="border: 1px solid gray; margin: 20px 0px 10px; padding: 4px; overflow: auto; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; cursor: text; max-height: 200px; width: 97.5%;"> <div style="border-style: none; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;"><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">Style</span> <span style="color: rgb(255, 0, 0);">TargetType</span><span style="color: rgb(0, 0, 255);">="prefix:DataGridColumnHeader"</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">Setter</span> <span style="color: rgb(255, 0, 0);">Property</span><span style="color: rgb(0, 0, 255);">="Foreground"</span> <span style="color: rgb(255, 0, 0);">Value</span><span style="color: rgb(0, 0, 255);">="#FF444444"</span> <span style="color: rgb(0, 0, 255);">/></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">Setter</span> <span style="color: rgb(255, 0, 0);">Property</span><span style="color: rgb(0, 0, 255);">="HorizontalContentAlignment"</span> <span style="color: rgb(255, 0, 0);">Value</span><span style="color: rgb(0, 0, 255);">="Center"</span> <span style="color: rgb(0, 0, 255);">/></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">Setter</span> <span style="color: rgb(255, 0, 0);">Property</span><span style="color: rgb(0, 0, 255);">="VerticalContentAlignment"</span> <span style="color: rgb(255, 0, 0);">Value</span><span style="color: rgb(0, 0, 255);">="Center"</span> <span style="color: rgb(0, 0, 255);">/></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">Setter</span> <span style="color: rgb(255, 0, 0);">Property</span><span style="color: rgb(0, 0, 255);">="FontSize"</span> <span style="color: rgb(255, 0, 0);">Value</span><span style="color: rgb(0, 0, 255);">="10.5"</span> <span style="color: rgb(0, 0, 255);">/></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">Setter</span> <span style="color: rgb(255, 0, 0);">Property</span><span style="color: rgb(0, 0, 255);">="FontWeight"</span> <span style="color: rgb(255, 0, 0);">Value</span><span style="color: rgb(0, 0, 255);">="Bold"</span> <span style="color: rgb(0, 0, 255);">/></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">Setter</span> <span style="color: rgb(255, 0, 0);">Property</span><span style="color: rgb(0, 0, 255);">="IsTabStop"</span> <span style="color: rgb(255, 0, 0);">Value</span><span style="color: rgb(0, 0, 255);">="False"</span> <span style="color: rgb(0, 0, 255);">/></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">Setter</span> <span style="color: rgb(255, 0, 0);">Property</span><span style="color: rgb(0, 0, 255);">="SeparatorBrush"</span> <span style="color: rgb(255, 0, 0);">Value</span><span style="color: rgb(0, 0, 255);">="#FFC9CACA"</span> <span style="color: rgb(0, 0, 255);">/></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">Setter</span> <span style="color: rgb(255, 0, 0);">Property</span><span style="color: rgb(0, 0, 255);">="Padding"</span> <span style="color: rgb(255, 0, 0);">Value</span><span style="color: rgb(0, 0, 255);">="4,4,5,4"</span> <span style="color: rgb(0, 0, 255);">/></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">Setter</span> <span style="color: rgb(255, 0, 0);">Property</span><span style="color: rgb(0, 0, 255);">="Template"</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">Setter.Value</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">ControlTemplate</span> <span style="color: rgb(255, 0, 0);">TargetType</span><span style="color: rgb(0, 0, 255);">="prefix:DataGridColumnHeader"</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">Grid</span> <span style="color: rgb(255, 0, 0);">Name</span><span style="color: rgb(0, 0, 255);">="Root"</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">vsm:VisualStateManager.VisualStateGroups</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">vsm:VisualStateGroup</span> <span style="color: rgb(255, 0, 0);">x:Name</span><span style="color: rgb(0, 0, 255);">="CommonStates"</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">vsm:VisualStateGroup.Transitions</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">vsm:VisualTransition</span> <span style="color: rgb(255, 0, 0);">GeneratedDuration</span><span style="color: rgb(0, 0, 255);">="00:00:0.1"</span> <span style="color: rgb(0, 0, 255);">/></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> <span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">vsm:VisualStateGroup.Transitions</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">vsm:VisualState</span> <span style="color: rgb(255, 0, 0);">x:Name</span><span style="color: rgb(0, 0, 255);">="Normal"</span> <span style="color: rgb(0, 0, 255);">/></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">vsm:VisualState</span> <span style="color: rgb(255, 0, 0);">x:Name</span><span style="color: rgb(0, 0, 255);">="MouseOver"</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">Storyboard</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">ColorAnimationUsingKeyFrames</span> <span style="color: rgb(255, 0, 0);">BeginTime</span><span style="color: rgb(0, 0, 255);">="0"</span> <span style="color: rgb(255, 0, 0);">Duration</span><span style="color: rgb(0, 0, 255);">="0"</span> <span style="color: rgb(255, 0, 0);">Storyboard</span>.<span style="color: rgb(255, 0, 0);">TargetName</span><span style="color: rgb(0, 0, 255);">="BackgroundRectangle"</span> <span style="color: rgb(255, 0, 0);">Storyboard</span>.<span style="color: rgb(255, 0, 0);">TargetProperty</span><span style="color: rgb(0, 0, 255);">="(Shape.Fill).(SolidColorBrush.Color)"</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">SplineColorKeyFrame</span> <span style="color: rgb(255, 0, 0);">KeyTime</span><span style="color: rgb(0, 0, 255);">="0"</span> <span style="color: rgb(255, 0, 0);">Value</span><span style="color: rgb(0, 0, 255);">="#FF448DCA"</span><span style="color: rgb(0, 0, 255);">/></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> <span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">ColorAnimationUsingKeyFrames</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">ColorAnimationUsingKeyFrames</span> <span style="color: rgb(255, 0, 0);">BeginTime</span><span style="color: rgb(0, 0, 255);">="0"</span> <span style="color: rgb(255, 0, 0);">Duration</span><span style="color: rgb(0, 0, 255);">="0"</span> <span style="color: rgb(255, 0, 0);">Storyboard</span>.<span style="color: rgb(255, 0, 0);">TargetName</span><span style="color: rgb(0, 0, 255);">="BackgroundGradient"</span> <span style="color: rgb(255, 0, 0);">Storyboard</span>.<span style="color: rgb(255, 0, 0);">TargetProperty</span><span style="color: rgb(0, 0, 255);">="(Shape.Fill).(GradientBrush.GradientStops)[3].(GradientStop.Color)"</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">SplineColorKeyFrame</span> <span style="color: rgb(255, 0, 0);">KeyTime</span><span style="color: rgb(0, 0, 255);">="0"</span> <span style="color: rgb(255, 0, 0);">Value</span><span style="color: rgb(0, 0, 255);">="#7FFFFFFF"</span><span style="color: rgb(0, 0, 255);">/></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;"> <span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">ColorAnimationUsingKeyFrames</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">ColorAnimationUsingKeyFrames</span> <span style="color: rgb(255, 0, 0);">BeginTime</span><span style="color: rgb(0, 0, 255);">="0"</span> <span style="color: rgb(255, 0, 0);">Duration</span><span style="color: rgb(0, 0, 255);">="0"</span> <span style="color: rgb(255, 0, 0);">Storyboard</span>.<span style="color: rgb(255, 0, 0);">TargetName</span><span style="color: rgb(0, 0, 255);">="BackgroundGradient"</span> <span style="color: rgb(255, 0, 0);">Storyboard</span>.<span style="color: rgb(255, 0, 0);">TargetProperty</span><span style="color: rgb(0, 0, 255);">="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)"</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">SplineColorKeyFrame</span> <span style="color: rgb(255, 0, 0);">KeyTime</span><span style="color: rgb(0, 0, 255);">="0"</span> <span style="color: rgb(255, 0, 0);">Value</span><span style="color: rgb(0, 0, 255);">="#CCFFFFFF"</span><span style="color: rgb(0, 0, 255);">/></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> <span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">ColorAnimationUsingKeyFrames</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">ColorAnimationUsingKeyFrames</span> <span style="color: rgb(255, 0, 0);">BeginTime</span><span style="color: rgb(0, 0, 255);">="0"</span> <span style="color: rgb(255, 0, 0);">Duration</span><span style="color: rgb(0, 0, 255);">="0"</span> <span style="color: rgb(255, 0, 0);">Storyboard</span>.<span style="color: rgb(255, 0, 0);">TargetName</span><span style="color: rgb(0, 0, 255);">="BackgroundGradient"</span> <span style="color: rgb(255, 0, 0);">Storyboard</span>.<span style="color: rgb(255, 0, 0);">TargetProperty</span><span style="color: rgb(0, 0, 255);">="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)"</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">SplineColorKeyFrame</span> <span style="color: rgb(255, 0, 0);">KeyTime</span><span style="color: rgb(0, 0, 255);">="0"</span> <span style="color: rgb(255, 0, 0);">Value</span><span style="color: rgb(0, 0, 255);">="#F2FFFFFF"</span><span style="color: rgb(0, 0, 255);">/></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;"> <span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">ColorAnimationUsingKeyFrames</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> <span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">Storyboard</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;"> <span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">vsm:VisualState</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> <span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">vsm:VisualStateGroup</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">vsm:VisualStateGroup</span> <span style="color: rgb(255, 0, 0);">x:Name</span><span style="color: rgb(0, 0, 255);">="SortStates"</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">vsm:VisualStateGroup.Transitions</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">vsm:VisualTransition</span> <span style="color: rgb(255, 0, 0);">GeneratedDuration</span><span style="color: rgb(0, 0, 255);">="00:00:0.1"</span> <span style="color: rgb(0, 0, 255);">/></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> <span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">vsm:VisualStateGroup.Transitions</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">vsm:VisualState</span> <span style="color: rgb(255, 0, 0);">x:Name</span><span style="color: rgb(0, 0, 255);">="Unsorted"</span> <span style="color: rgb(0, 0, 255);">/></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">vsm:VisualState</span> <span style="color: rgb(255, 0, 0);">x:Name</span><span style="color: rgb(0, 0, 255);">="SortAscending"</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">Storyboard</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">DoubleAnimation</span> <span style="color: rgb(255, 0, 0);">Storyboard</span>.<span style="color: rgb(255, 0, 0);">TargetName</span><span style="color: rgb(0, 0, 255);">="SortIcon"</span> <span style="color: rgb(255, 0, 0);">Storyboard</span>.<span style="color: rgb(255, 0, 0);">TargetProperty</span><span style="color: rgb(0, 0, 255);">="Opacity"</span> <span style="color: rgb(255, 0, 0);">Duration</span><span style="color: rgb(0, 0, 255);">="0"</span> <span style="color: rgb(255, 0, 0);">To</span><span style="color: rgb(0, 0, 255);">="1.0"</span><span style="color: rgb(0, 0, 255);">/></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;"> <span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">Storyboard</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> <span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">vsm:VisualState</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">vsm:VisualState</span> <span style="color: rgb(255, 0, 0);">x:Name</span><span style="color: rgb(0, 0, 255);">="SortDescending"</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">Storyboard</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">DoubleAnimation</span> <span style="color: rgb(255, 0, 0);">Storyboard</span>.<span style="color: rgb(255, 0, 0);">TargetName</span><span style="color: rgb(0, 0, 255);">="SortIcon"</span> <span style="color: rgb(255, 0, 0);">Storyboard</span>.<span style="color: rgb(255, 0, 0);">TargetProperty</span><span style="color: rgb(0, 0, 255);">="Opacity"</span> <span style="color: rgb(255, 0, 0);">Duration</span><span style="color: rgb(0, 0, 255);">="0"</span> <span style="color: rgb(255, 0, 0);">To</span><span style="color: rgb(0, 0, 255);">="1.0"</span><span style="color: rgb(0, 0, 255);">/></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">DoubleAnimation</span> <span style="color: rgb(255, 0, 0);">Storyboard</span>.<span style="color: rgb(255, 0, 0);">TargetName</span><span style="color: rgb(0, 0, 255);">="SortIconTransform"</span> <span style="color: rgb(255, 0, 0);">Storyboard</span>.<span style="color: rgb(255, 0, 0);">TargetProperty</span><span style="color: rgb(0, 0, 255);">="ScaleY"</span> <span style="color: rgb(255, 0, 0);">Duration</span><span style="color: rgb(0, 0, 255);">="0"</span> <span style="color: rgb(255, 0, 0);">To</span><span style="color: rgb(0, 0, 255);">="-.9"</span><span style="color: rgb(0, 0, 255);">/></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;"> <span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">Storyboard</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> <span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">vsm:VisualState</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;"> <span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">vsm:VisualStateGroup</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> <span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">vsm:VisualStateManager.VisualStateGroups</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;">  </pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">Grid.RowDefinitions</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">RowDefinition</span> <span style="color: rgb(255, 0, 0);">Height</span><span style="color: rgb(0, 0, 255);">="*"</span> <span style="color: rgb(0, 0, 255);">/></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">RowDefinition</span> <span style="color: rgb(255, 0, 0);">Height</span><span style="color: rgb(0, 0, 255);">="*"</span> <span style="color: rgb(0, 0, 255);">/></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">RowDefinition</span> <span style="color: rgb(255, 0, 0);">Height</span><span style="color: rgb(0, 0, 255);">="Auto"</span> <span style="color: rgb(0, 0, 255);">/></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> <span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">Grid.RowDefinitions</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">Grid.ColumnDefinitions</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">ColumnDefinition</span> <span style="color: rgb(255, 0, 0);">Width</span><span style="color: rgb(0, 0, 255);">="Auto"</span> <span style="color: rgb(0, 0, 255);">/></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">ColumnDefinition</span> <span style="color: rgb(255, 0, 0);">Width</span><span style="color: rgb(0, 0, 255);">="*"</span> <span style="color: rgb(0, 0, 255);">/></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">ColumnDefinition</span> <span style="color: rgb(255, 0, 0);">Width</span><span style="color: rgb(0, 0, 255);">="Auto"</span> <span style="color: rgb(0, 0, 255);">/></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;"> <span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">Grid.ColumnDefinitions</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;">  </pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">Rectangle</span> <span style="color: rgb(255, 0, 0);">x:Name</span><span style="color: rgb(0, 0, 255);">="BackgroundRectangle"</span> <span style="color: rgb(255, 0, 0);">Stretch</span><span style="color: rgb(0, 0, 255);">="Fill"</span> <span style="color: rgb(255, 0, 0);">Fill</span><span style="color: rgb(0, 0, 255);">="#FF1F3B53"</span> <span style="color: rgb(255, 0, 0);">Grid</span>.<span style="color: rgb(255, 0, 0);">ColumnSpan</span><span style="color: rgb(0, 0, 255);">="2"</span> <span style="color: rgb(255, 0, 0);">Grid</span>.<span style="color: rgb(255, 0, 0);">RowSpan</span><span style="color: rgb(0, 0, 255);">="2"</span><span style="color: rgb(0, 0, 255);">/></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> </pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">Rectangle</span> <span style="color: rgb(255, 0, 0);">x:Name</span><span style="color: rgb(0, 0, 255);">="BackgroundGradient"</span> <span style="color: rgb(255, 0, 0);">Stretch</span><span style="color: rgb(0, 0, 255);">="Fill"</span> <span style="color: rgb(255, 0, 0);">Grid</span>.<span style="color: rgb(255, 0, 0);">ColumnSpan</span><span style="color: rgb(0, 0, 255);">="2"</span> <span style="color: rgb(255, 0, 0);">Grid</span>.<span style="color: rgb(255, 0, 0);">RowSpan</span><span style="color: rgb(0, 0, 255);">="2"</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">Rectangle.Fill</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">LinearGradientBrush</span> <span style="color: rgb(255, 0, 0);">StartPoint</span><span style="color: rgb(0, 0, 255);">=".7,0"</span> <span style="color: rgb(255, 0, 0);">EndPoint</span><span style="color: rgb(0, 0, 255);">=".7,1"</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">GradientStop</span> <span style="color: rgb(255, 0, 0);">Color</span><span style="color: rgb(0, 0, 255);">="#FFFFFFFF"</span> <span style="color: rgb(255, 0, 0);">Offset</span><span style="color: rgb(0, 0, 255);">="0.015"</span> <span style="color: rgb(0, 0, 255);">/></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">GradientStop</span> <span style="color: rgb(255, 0, 0);">Color</span><span style="color: rgb(0, 0, 255);">="#F9FFFFFF"</span> <span style="color: rgb(255, 0, 0);">Offset</span><span style="color: rgb(0, 0, 255);">="0.375"</span> <span style="color: rgb(0, 0, 255);">/></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">GradientStop</span> <span style="color: rgb(255, 0, 0);">Color</span><span style="color: rgb(0, 0, 255);">="#E5FFFFFF"</span> <span style="color: rgb(255, 0, 0);">Offset</span><span style="color: rgb(0, 0, 255);">="0.6"</span> <span style="color: rgb(0, 0, 255);">/></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">GradientStop</span> <span style="color: rgb(255, 0, 0);">Color</span><span style="color: rgb(0, 0, 255);">="#C6FFFFFF"</span> <span style="color: rgb(255, 0, 0);">Offset</span><span style="color: rgb(0, 0, 255);">="1"</span> <span style="color: rgb(0, 0, 255);">/></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> <span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">LinearGradientBrush</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;"> <span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">Rectangle.Fill</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> <span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">Rectangle</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;">  </pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">ContentPresenter</span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;"> <span style="color: rgb(255, 0, 0);">Grid</span>.<span style="color: rgb(255, 0, 0);">RowSpan</span><span style="color: rgb(0, 0, 255);">="2"</span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> <span style="color: rgb(255, 0, 0);">Content</span><span style="color: rgb(0, 0, 255);">="{TemplateBinding Content}"</span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;"> <span style="color: rgb(255, 0, 0);">Cursor</span><span style="color: rgb(0, 0, 255);">="{TemplateBinding Cursor}"</span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> <span style="color: rgb(255, 0, 0);">HorizontalAlignment</span><span style="color: rgb(0, 0, 255);">="{TemplateBinding HorizontalContentAlignment}"</span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;"> <span style="color: rgb(255, 0, 0);">VerticalAlignment</span><span style="color: rgb(0, 0, 255);">="{TemplateBinding VerticalContentAlignment}"</span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> <span style="color: rgb(255, 0, 0);">Margin</span><span style="color: rgb(0, 0, 255);">="{TemplateBinding Padding}"</span><span style="color: rgb(0, 0, 255);">/></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;"> </pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">Rectangle</span> <span style="color: rgb(255, 0, 0);">Name</span><span style="color: rgb(0, 0, 255);">="VerticalSeparator"</span> <span style="color: rgb(255, 0, 0);">Grid</span>.<span style="color: rgb(255, 0, 0);">RowSpan</span><span style="color: rgb(0, 0, 255);">="2"</span> <span style="color: rgb(255, 0, 0);">Grid</span>.<span style="color: rgb(255, 0, 0);">Column</span><span style="color: rgb(0, 0, 255);">="2"</span> <span style="color: rgb(255, 0, 0);">Width</span><span style="color: rgb(0, 0, 255);">="1"</span> <span style="color: rgb(255, 0, 0);">VerticalAlignment</span><span style="color: rgb(0, 0, 255);">="Stretch"</span> <span style="color: rgb(255, 0, 0);">Fill</span><span style="color: rgb(0, 0, 255);">="{TemplateBinding SeparatorBrush}"</span> <span style="color: rgb(255, 0, 0);">Visibility</span><span style="color: rgb(0, 0, 255);">="{TemplateBinding SeparatorVisibility}"</span> <span style="color: rgb(0, 0, 255);">/></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;"> </pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">Path</span> <span style="color: rgb(255, 0, 0);">Grid</span>.<span style="color: rgb(255, 0, 0);">RowSpan</span><span style="color: rgb(0, 0, 255);">="2"</span> <span style="color: rgb(255, 0, 0);">Name</span><span style="color: rgb(0, 0, 255);">="SortIcon"</span> <span style="color: rgb(255, 0, 0);">RenderTransformOrigin</span><span style="color: rgb(0, 0, 255);">=".5,.5"</span> <span style="color: rgb(255, 0, 0);">HorizontalAlignment</span><span style="color: rgb(0, 0, 255);">="Left"</span> <span style="color: rgb(255, 0, 0);">VerticalAlignment</span><span style="color: rgb(0, 0, 255);">="Center"</span> <span style="color: rgb(255, 0, 0);">Opacity</span><span style="color: rgb(0, 0, 255);">="0"</span> <span style="color: rgb(255, 0, 0);">Grid</span>.<span style="color: rgb(255, 0, 0);">Column</span><span style="color: rgb(0, 0, 255);">="1"</span> <span style="color: rgb(255, 0, 0);">Stretch</span><span style="color: rgb(0, 0, 255);">="Uniform"</span> <span style="color: rgb(255, 0, 0);">Width</span><span style="color: rgb(0, 0, 255);">="8"</span> <span style="color: rgb(255, 0, 0);">Data</span><span style="color: rgb(0, 0, 255);">="F1 M -5.215,6.099L 5.215,6.099L 0,0L -5.215,6.099 Z "</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">Path.Fill</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">SolidColorBrush</span> <span style="color: rgb(255, 0, 0);">Color</span><span style="color: rgb(0, 0, 255);">="#FF444444"</span> <span style="color: rgb(0, 0, 255);">/></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;"> <span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">Path.Fill</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">Path.RenderTransform</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">TransformGroup</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> <span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">ScaleTransform</span> <span style="color: rgb(255, 0, 0);">x:Name</span><span style="color: rgb(0, 0, 255);">="SortIconTransform"</span> <span style="color: rgb(255, 0, 0);">ScaleX</span><span style="color: rgb(0, 0, 255);">=".9"</span> <span style="color: rgb(255, 0, 0);">ScaleY</span><span style="color: rgb(0, 0, 255);">=".9"</span> <span style="color: rgb(0, 0, 255);">/></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;"> <span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">TransformGroup</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> <span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">Path.RenderTransform</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;"> <span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">Path</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> </pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;"> <span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">Grid</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> <span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">ControlTemplate</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;"> <span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">Setter.Value</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; background-color: rgb(244, 244, 244); font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%;"> <span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">Setter</span><span style="color: rgb(0, 0, 255);">></span></pre> <pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-family: Consolas,'Courier New',Courier,Monospace; font-size: 8pt; line-height: 12pt; color: black; width: 100%; background-color: white;"><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">Style</span><span style="color: rgb(0, 0, 255);">></span></pre> </div> </div> <p>To change the color of the headers just change the colors of the rectangles with names "<em>Background</em>" and "<em>BackgroundGradients</em>" in the ControlTemplate . Also don't miss the <em><strong>ViewStates </strong></em>as they also manipulate these two elements.</p> <p>The same can be done with the row headers, except you have to get the default style for the <em><strong>DataGridRowHeader</strong></em> from the <em>generic.xaml</em> using the<em> .Net Reflector.</em></p> http://www.silverlightshow.net/items/Basic-customizations-of-the-DataGrid.aspx#comment857 Enrai http://www.silverlightshow.net/items/Basic-customizations-of-the-DataGrid.aspx Sat, 20 Dec 2008 05:46:01 GMT RE: Basic customizations of the DataGrid <p>Why no example of how to change the column header background color?</p> http://www.silverlightshow.net/items/Basic-customizations-of-the-DataGrid.aspx#comment835 John http://www.silverlightshow.net/items/Basic-customizations-of-the-DataGrid.aspx Tue, 16 Dec 2008 09:46:00 GMT RE: Basic customizations of the DataGrid <p>The article about customizing the selection in the DataGrid can be found here - <a href="http://www.silverlightshow.net/items/Changing-the-style-of-the-selected-row-of-the-DataGrid-control.aspx">Changing the style of the selected row of the DataGrid control</a>.</p> http://www.silverlightshow.net/items/Basic-customizations-of-the-DataGrid.aspx#comment699 Enrai http://www.silverlightshow.net/items/Basic-customizations-of-the-DataGrid.aspx Tue, 18 Nov 2008 02:50:25 GMT RE: Basic customizations of the DataGrid <p>Yes, there is a way to change the background  of the currently selected row. To do that you have to set the RowStyle property of the DataGrid and in this style you have to make some changes to the template of the DataGridRow. The TargetType of the style should be <em><strong>"prefix:DataGridRow".</strong></em> I think this is a very interesting case, so expect an article later today that will explain the things more clearly.</p> <p>P.S. I'll add a link as comment when the article is ready!</p> <p><strong>Update:</strong> I couldn't manage to finish the article for today, so it will be ready in the start of the next week, probably on Monday.</p> http://www.silverlightshow.net/items/Basic-customizations-of-the-DataGrid.aspx#comment682 Enrai http://www.silverlightshow.net/items/Basic-customizations-of-the-DataGrid.aspx Fri, 14 Nov 2008 01:28:39 GMT RE: Basic customizations of the DataGrid <p>Is there a way to set the style/background of the currently selected row?</p> http://www.silverlightshow.net/items/Basic-customizations-of-the-DataGrid.aspx#comment668 JacobE http://www.silverlightshow.net/items/Basic-customizations-of-the-DataGrid.aspx Thu, 13 Nov 2008 05:03:36 GMT