Click here to Skip to main content
15,878,959 members
Articles / Programming Languages / C# 4.0

Programmatic Silverlight Tree View Control Node Expansion using View Model (MVVM)

Rate me:
Please Sign up or sign in to vote.
4.98/5 (18 votes)
5 Nov 2010Ms-PL2 min read 112K   2.7K   33  
Programmatically selecting a Silverlight Tree View Control node using View Model (MVVM)
<ResourceDictionary 
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
  xmlns:sys="clr-namespace:System;assembly=mscorlib"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

  <!-- Font Families. -->
  <FontFamily x:Key="ContentFontFamily">Trebuchet MS</FontFamily>
  <FontFamily x:Key="DefaultFontFamily">Trebuchet MS</FontFamily>
  <FontFamily x:Key="InputFontFamily">Trebuchet MS</FontFamily>
  <FontFamily x:Key="NormalFontFamily">Trebuchet MS</FontFamily>
  <FontFamily x:Key="HeadingFontFamily">Trebuchet MS</FontFamily>

  <!-- Font Sizes. -->
  <sys:Double x:Key="ContentFontSize">13</sys:Double>
  <sys:Double x:Key="DefaultFontSize">12.5</sys:Double>
  <sys:Double x:Key="InputFontSize">11</sys:Double>
  <sys:Double x:Key="NormalFontSize">11</sys:Double>
  <sys:Double x:Key="Heading1FontSize">36</sys:Double>
  <sys:Double x:Key="Heading2FontSize">24</sys:Double>
  <sys:Double x:Key="Heading3FontSize">21</sys:Double>
  <sys:Double x:Key="Heading4FontSize">18</sys:Double>
  <sys:Double x:Key="Heading5FontSize">15</sys:Double>
  <sys:Double x:Key="Heading6FontSize">11</sys:Double>

</ResourceDictionary>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Microsoft Public License (Ms-PL)


Written By
Software Developer (Senior) http://ADefWebserver.com
United States United States
Michael Washington is a Microsoft MVP. He is a ASP.NET and
C# programmer.
He is the founder of
AiHelpWebsite.com,
LightSwitchHelpWebsite.com, and
HoloLensHelpWebsite.com.

He has a son, Zachary and resides in Los Angeles with his wife Valerie.

He is the Author of:

Comments and Discussions