<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
  <channel>
    <title>CodeKeep XAML Feed</title>
    <description>The latest and greatest XAML code snippets publicly available</description>
    <link>http://www.codekeep.net/feeds.aspx</link>
    <lastBuildDate>Thu, 14 Apr 2011 10:48:20 GMT</lastBuildDate>
    <docs>http://backend.userland.com/rss</docs>
    <generator>RSS.NET: http://www.rssdotnet.com/</generator>
    <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/CodeKeepXAML" /><feedburner:info uri="codekeepxaml" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
      <title>RU-ru DateTime Format</title>
      <description>Description: RU-ru DateTime Format&lt;br /&gt;&lt;br /&gt;Link: &lt;a href='http://www.codekeep.net/snippets/58cb135c-e2d0-4f3a-80d0-7548c47c997f.aspx'&gt;http://www.codekeep.net/snippets/58cb135c-e2d0-4f3a-80d0-7548c47c997f.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style='font-size: 9pt;'&gt;&amp;lt;TextBlock Text=&amp;quot;{Binding Path=TimeStamp, StringFormat=\{0:dd.MM.yyyy HH:mm:ss\}}&amp;quot;&amp;gt;&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeKeepXAML/~4/32D4CG12RIY" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/CodeKeepXAML/~3/32D4CG12RIY/58cb135c-e2d0-4f3a-80d0-7548c47c997f.aspx</link>
      <pubDate>Thu, 14 Apr 2011 10:48:20 GMT</pubDate>
    <feedburner:origLink>http://www.codekeep.net/snippets/58cb135c-e2d0-4f3a-80d0-7548c47c997f.aspx</feedburner:origLink></item>
    <item>
      <title>StringFormat in XAML</title>
      <description>Description: StringFormat in XAML&lt;br /&gt;&lt;br /&gt;Link: &lt;a href='http://www.codekeep.net/snippets/539703b3-e1b1-4ad1-9874-9ca1f525b535.aspx'&gt;http://www.codekeep.net/snippets/539703b3-e1b1-4ad1-9874-9ca1f525b535.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style='font-size: 9pt;'&gt;&amp;lt;TextBox Text=&amp;quot;{Binding StringFormat='HH:MM dd/M/yyy'}&amp;quot; /&amp;gt;
&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeKeepXAML/~4/c_Jg7MDAa7k" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/CodeKeepXAML/~3/c_Jg7MDAa7k/539703b3-e1b1-4ad1-9874-9ca1f525b535.aspx</link>
      <pubDate>Sun, 16 Jan 2011 18:45:19 GMT</pubDate>
    <feedburner:origLink>http://www.codekeep.net/snippets/539703b3-e1b1-4ad1-9874-9ca1f525b535.aspx</feedburner:origLink></item>
    <item>
      <title>Button ControlTemplate - Ellipse</title>
      <description>Description: How to use the ControlTemplate based on Button&lt;br /&gt;&lt;br /&gt;Link: &lt;a href='http://www.codekeep.net/snippets/26be49ab-c9d7-4673-8025-4654748e859e.aspx'&gt;http://www.codekeep.net/snippets/26be49ab-c9d7-4673-8025-4654748e859e.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style='font-size: 9pt;'&gt;&amp;lt;Window.Resources&amp;gt;
    &amp;lt;ControlTemplate x:Key=&amp;quot;ButtonTemplate&amp;quot;&amp;gt;
        &amp;lt;Grid&amp;gt;
            &amp;lt;Ellipse x:Name=&amp;quot;ellipse&amp;quot; Stroke=&amp;quot;Black&amp;quot; Fill=&amp;quot;Orange&amp;quot; /&amp;gt;
            &amp;lt;TextBlock HorizontalAlignment=&amp;quot;Center&amp;quot; VerticalAlignment=&amp;quot;Center&amp;quot;
                       Text=&amp;quot;{TemplateBinding Property=Button.Content}&amp;quot;/&amp;gt;
        &amp;lt;/Grid&amp;gt;
        &amp;lt;ControlTemplate.Triggers&amp;gt;
            &amp;lt;EventTrigger RoutedEvent=&amp;quot;Button.MouseEnter&amp;quot;&amp;gt;
                &amp;lt;EventTrigger.Actions&amp;gt;
                    &amp;lt;BeginStoryboard&amp;gt;
                        &amp;lt;Storyboard SpeedRatio=&amp;quot;20&amp;quot;&amp;gt;
                            &amp;lt;DoubleAnimation Storyboard.TargetName=&amp;quot;ellipse&amp;quot;
                                             Storyboard.TargetProperty=&amp;quot;(Ellipse.StrokeThickness)&amp;quot;
                                             From=&amp;quot;1&amp;quot; To=&amp;quot;10&amp;quot; Duration=&amp;quot;00:00:01&amp;quot;
                                             AutoReverse=&amp;quot;True&amp;quot; /&amp;gt; 
                            &amp;lt;ColorAnimation Storyboard.TargetName=&amp;quot;ellipse&amp;quot;
                                            Storyboard.TargetProperty=&amp;quot;(Ellipse.Fill).(SolidColorBrush.Color)&amp;quot;
                                            From=&amp;quot;Orange&amp;quot; To=&amp;quot;Blue&amp;quot; Duration=&amp;quot;00:00:01&amp;quot;
                                            AutoReverse=&amp;quot;True&amp;quot;/&amp;gt;
                        &amp;lt;/Storyboard&amp;gt;
                    &amp;lt;/BeginStoryboard&amp;gt;
                &amp;lt;/EventTrigger.Actions&amp;gt;
            &amp;lt;/EventTrigger&amp;gt;
        &amp;lt;/ControlTemplate.Triggers&amp;gt;
    &amp;lt;/ControlTemplate&amp;gt;
&amp;lt;/Window.Resources&amp;gt;


&amp;lt;StackPanel&amp;gt;
 &amp;lt;Button Name=&amp;quot;btn&amp;quot; Width=&amp;quot;150&amp;quot; Height=&amp;quot;40&amp;quot; Content=&amp;quot;TestTemplate&amp;quot;
            Template=&amp;quot;{DynamicResource ButtonTemplate}&amp;quot;&amp;gt;
        &amp;lt;Button.RenderTransform&amp;gt;
            &amp;lt;!--RotateTransform Angle=&amp;quot;90&amp;quot; /--&amp;gt;
            &amp;lt;ScaleTransform ScaleY=&amp;quot;3.0&amp;quot; /&amp;gt;
        &amp;lt;/Button.RenderTransform&amp;gt;
    &amp;lt;/Button&amp;gt;
&amp;lt;/StackPanel&amp;gt;
&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeKeepXAML/~4/Rmd-zKCSRZw" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/CodeKeepXAML/~3/Rmd-zKCSRZw/26be49ab-c9d7-4673-8025-4654748e859e.aspx</link>
      <pubDate>Tue, 02 Nov 2010 07:46:48 GMT</pubDate>
    <feedburner:origLink>http://www.codekeep.net/snippets/26be49ab-c9d7-4673-8025-4654748e859e.aspx</feedburner:origLink></item>
    <item>
      <title>Style WPF ListBox to display items Horizontally</title>
      <description>Description: Style WPF ListBox to display items Horizontally instead of vertical and provide scrollbar on both ends of list box.&lt;br /&gt;&lt;br /&gt;Link: &lt;a href='http://www.codekeep.net/snippets/85fe3516-01aa-4bdd-91c3-233b26b1e13f.aspx'&gt;http://www.codekeep.net/snippets/85fe3516-01aa-4bdd-91c3-233b26b1e13f.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style='font-size: 9pt;'&gt;*****************************************
File Name: MainWindow.xaml
*****************************************
&amp;lt;Window x:Class=&amp;quot;MainWindow&amp;quot;
    xmlns=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&amp;quot;
    xmlns:x=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml&amp;quot;   
    Title=&amp;quot;MainWindow&amp;quot; Height=&amp;quot;350&amp;quot; Width=&amp;quot;600&amp;quot;&amp;gt;
    
    &amp;lt;DockPanel&amp;gt;
         &amp;lt;ListBox Name=&amp;quot;NameList&amp;quot; BorderBrush=&amp;quot;Black&amp;quot; BorderThickness=&amp;quot;2&amp;quot; 
                     Height=&amp;quot;100&amp;quot; Width=&amp;quot;500&amp;quot;&amp;gt;
                &amp;lt;ListBox.Template&amp;gt;
                    &amp;lt;ControlTemplate TargetType=&amp;quot;{x:Type ListBox}&amp;quot;&amp;gt;
                        &amp;lt;DockPanel&amp;gt;
                            &amp;lt;RepeatButton x:Name=&amp;quot;LineLeftButton&amp;quot; DockPanel.Dock=&amp;quot;Left&amp;quot; Width=&amp;quot;25&amp;quot; Height=&amp;quot;25&amp;quot;
                                          Content=&amp;quot;&amp;amp;lt;&amp;quot; Margin=&amp;quot;0,0,5,0&amp;quot;
                                          Command=&amp;quot;{x:Static ScrollBar.LineLeftCommand}&amp;quot;       
                                          CommandTarget=&amp;quot;{Binding ElementName=scrollviewer}&amp;quot;/&amp;gt;
                            &amp;lt;RepeatButton x:Name=&amp;quot;LineRightButton&amp;quot; DockPanel.Dock=&amp;quot;Right&amp;quot; Width=&amp;quot;25&amp;quot; Height=&amp;quot;25&amp;quot;
                                      Background=&amp;quot;Transparent&amp;quot;
                                          Content=&amp;quot;&amp;amp;gt;&amp;quot; Margin=&amp;quot;10,0,0,0&amp;quot;
                                          Command=&amp;quot;{x:Static ScrollBar.LineRightCommand}&amp;quot;       
                                          CommandTarget=&amp;quot;{Binding ElementName=scrollviewer}&amp;quot;/&amp;gt;

                            &amp;lt;ScrollViewer x:Name=&amp;quot;scrollviewer&amp;quot; HorizontalScrollBarVisibility=&amp;quot;Hidden&amp;quot; &amp;gt;
                                &amp;lt;StackPanel IsItemsHost=&amp;quot;True&amp;quot; Orientation=&amp;quot;Horizontal&amp;quot; /&amp;gt;
                            &amp;lt;/ScrollViewer&amp;gt;
                        &amp;lt;/DockPanel&amp;gt;
                    &amp;lt;/ControlTemplate&amp;gt;
                &amp;lt;/ListBox.Template&amp;gt;

                &amp;lt;ListBox.ItemTemplate&amp;gt;
                    &amp;lt;DataTemplate&amp;gt;
                        &amp;lt;StackPanel Orientation=&amp;quot;Horizontal&amp;quot; Width=&amp;quot;50&amp;quot;&amp;gt;
                            &amp;lt;TextBlock Text=&amp;quot;{Binding Path=FirstName}&amp;quot; /&amp;gt;
                        &amp;lt;/StackPanel&amp;gt;
                    &amp;lt;/DataTemplate&amp;gt;
                &amp;lt;/ListBox.ItemTemplate&amp;gt;
            &amp;lt;/ListBox&amp;gt;
    &amp;lt;/DockPanel&amp;gt;
&amp;lt;/Window&amp;gt;

*****************************************
File Name: MainWindow.xaml.vb
*****************************************

Imports System.Collections.ObjectModel

Class MainWindow

    Private Sub SSNList_SelectionChanged(ByVal sender As System.Object, ByVal e As System.Windows.Controls.SelectionChangedEventArgs) Handles NameList.SelectionChanged

    End Sub

    Private Sub Window_Loaded(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles MyBase.Loaded
        NameList.ItemsSource = New NameList()
    End Sub

End Class


Public Class NameList
    Inherits ObservableCollection(Of PersonName)

    ' Methods
    Public Sub New()
        MyBase.Add(New PersonName(&amp;quot;35456&amp;quot;))
        MyBase.Add(New PersonName(&amp;quot;hgfhj&amp;quot;))
        MyBase.Add(New PersonName(&amp;quot;dffg&amp;quot;))
        MyBase.Add(New PersonName(&amp;quot;dfgdfg&amp;quot;))
        MyBase.Add(New PersonName(&amp;quot;dfgfdg&amp;quot;))
        MyBase.Add(New PersonName(&amp;quot;245435&amp;quot;))
        MyBase.Add(New PersonName(&amp;quot;dfgfdg&amp;quot;))
        MyBase.Add(New PersonName(&amp;quot;dfgfdg&amp;quot;))
        MyBase.Add(New PersonName(&amp;quot;6787688&amp;quot;))
        MyBase.Add(New PersonName(&amp;quot;cvbcv&amp;quot;))
        MyBase.Add(New PersonName(&amp;quot;ertr&amp;quot;))
        MyBase.Add(New PersonName(&amp;quot;45654&amp;quot;))
        MyBase.Add(New PersonName(&amp;quot;fdgf&amp;quot;))
        MyBase.Add(New PersonName(&amp;quot;ssdfd&amp;quot;))
        MyBase.Add(New PersonName(&amp;quot;35435&amp;quot;))
        MyBase.Add(New PersonName(&amp;quot;lkjl&amp;quot;))
    End Sub

End Class

Public Class PersonName
    Public Sub New(ByVal first As String)
        Me._firstName = first
    End Sub


    Public Property FirstName() As String
        Get
            Return Me._firstName
        End Get
        Set(ByVal value As String)
            Me._firstName = value
        End Set
    End Property

    Private _firstName As String
End Class




&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeKeepXAML/~4/76B1wachs48" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/CodeKeepXAML/~3/76B1wachs48/85fe3516-01aa-4bdd-91c3-233b26b1e13f.aspx</link>
      <pubDate>Thu, 28 Oct 2010 20:07:06 GMT</pubDate>
    <feedburner:origLink>http://www.codekeep.net/snippets/85fe3516-01aa-4bdd-91c3-233b26b1e13f.aspx</feedburner:origLink></item>
    <item>
      <title>CheckBox Command Binding</title>
      <description>Description: CheckBox Command Binding&lt;br /&gt;&lt;br /&gt;Link: &lt;a href='http://www.codekeep.net/snippets/2ab52451-a6aa-44b6-800f-2e40cee97401.aspx'&gt;http://www.codekeep.net/snippets/2ab52451-a6aa-44b6-800f-2e40cee97401.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style='font-size: 9pt;'&gt;&amp;lt;CheckBox Content=&amp;quot;Automatically connect.&amp;quot; 
          Command=&amp;quot;{Binding Path=AutoConnectCommand}&amp;quot;
          CommandParameter=&amp;quot;{Binding RelativeSource={RelativeSource Self}, Path=IsChecked}&amp;quot; /&amp;gt;


public ICommand AutoConnectCommand
{
   get
   {
      if (this.autoConnectCommand == null)
      {
         this.autoConnectCommand = new RelayCommand(param =&amp;gt;
         {
            bool isChecked = (bool)param;
         });
      }
      return this.autoConnectCommand;
   }
}&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeKeepXAML/~4/e-GC_Kbfks8" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/CodeKeepXAML/~3/e-GC_Kbfks8/2ab52451-a6aa-44b6-800f-2e40cee97401.aspx</link>
      <pubDate>Sun, 22 Aug 2010 11:36:38 GMT</pubDate>
    <feedburner:origLink>http://www.codekeep.net/snippets/2ab52451-a6aa-44b6-800f-2e40cee97401.aspx</feedburner:origLink></item>
    <item>
      <title>Windows 7 Selection XAML</title>
      <description>Description: Windows 7 Selection XAML&lt;br /&gt;&lt;br /&gt;Link: &lt;a href='http://www.codekeep.net/snippets/a4ffe811-4ed9-455a-b019-e2be23b9669c.aspx'&gt;http://www.codekeep.net/snippets/a4ffe811-4ed9-455a-b019-e2be23b9669c.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style='font-size: 9pt;'&gt;&amp;lt;Grid Height=&amp;quot;22&amp;quot; Width=&amp;quot;300&amp;quot; &amp;gt; 
   &amp;lt;Rectangle Stroke=&amp;quot;#FF7DA2CE&amp;quot; RadiusX=&amp;quot;2&amp;quot; RadiusY=&amp;quot;2&amp;quot;&amp;gt;
       &amp;lt;Rectangle.Fill&amp;gt;
            &amp;lt;LinearGradientBrush EndPoint=&amp;quot;0.5,1&amp;quot; StartPoint=&amp;quot;0.5,0&amp;quot;&amp;gt;
                &amp;lt;GradientStop Color=&amp;quot;#FFDCEBFC&amp;quot; Offset=&amp;quot;0&amp;quot; /&amp;gt;
                &amp;lt;GradientStop Color=&amp;quot;#FFC1DBFC&amp;quot; Offset=&amp;quot;1&amp;quot; /&amp;gt;
            &amp;lt;/LinearGradientBrush&amp;gt;
       &amp;lt;/Rectangle.Fill&amp;gt;
    &amp;lt;/Rectangle&amp;gt;
    &amp;lt;Rectangle Margin=&amp;quot;1&amp;quot; Stroke=&amp;quot;#FFEBF4FD&amp;quot; RadiusX=&amp;quot;2&amp;quot; RadiusY=&amp;quot;2&amp;quot; Fill=&amp;quot;{x:Null}&amp;quot;&amp;gt;
    &amp;lt;/Rectangle&amp;gt;
&amp;lt;/Grid&amp;gt;&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeKeepXAML/~4/XZsDHXyRx6Y" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/CodeKeepXAML/~3/XZsDHXyRx6Y/a4ffe811-4ed9-455a-b019-e2be23b9669c.aspx</link>
      <pubDate>Mon, 24 May 2010 19:44:47 GMT</pubDate>
    <feedburner:origLink>http://www.codekeep.net/snippets/a4ffe811-4ed9-455a-b019-e2be23b9669c.aspx</feedburner:origLink></item>
    <item>
      <title>Goto a TreeView</title>
      <description>Description: go through all nodes independently of the level&lt;br /&gt;&lt;br /&gt;Link: &lt;a href='http://www.codekeep.net/snippets/bac43a72-e552-4a74-8fa5-dd782de60a6e.aspx'&gt;http://www.codekeep.net/snippets/bac43a72-e552-4a74-8fa5-dd782de60a6e.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style='font-size: 9pt;'&gt;private void recursiveTreeTraversal(RadTreeNodeCollection levelNodes)
        {

            foreach (RadTreeNode node in levelNodes)
            {
                if (node.Text == &amp;quot;something&amp;quot;)
                {

                    //some code here;  

                    //...  
                    break;
                }
                recursiveTreeTraversal(node.Nodes);

            }
        }&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeKeepXAML/~4/7ce9PJ6xIiA" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/CodeKeepXAML/~3/7ce9PJ6xIiA/bac43a72-e552-4a74-8fa5-dd782de60a6e.aspx</link>
      <pubDate>Sun, 11 Apr 2010 14:24:20 GMT</pubDate>
    <feedburner:origLink>http://www.codekeep.net/snippets/bac43a72-e552-4a74-8fa5-dd782de60a6e.aspx</feedburner:origLink></item>
    <item>
      <title>Empty style property setter</title>
      <description>Description: -&lt;br /&gt;&lt;br /&gt;Link: &lt;a href='http://www.codekeep.net/snippets/0b2d8c83-98fa-4d58-a6ec-8079f86c8c84.aspx'&gt;http://www.codekeep.net/snippets/0b2d8c83-98fa-4d58-a6ec-8079f86c8c84.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style='font-size: 9pt;'&gt;&amp;lt;Setter Property=&amp;quot;&amp;quot; Value=&amp;quot;&amp;quot;&amp;gt;&amp;lt;/Setter&amp;gt;&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeKeepXAML/~4/N9KedtWbzyM" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/CodeKeepXAML/~3/N9KedtWbzyM/0b2d8c83-98fa-4d58-a6ec-8079f86c8c84.aspx</link>
      <pubDate>Fri, 05 Mar 2010 09:50:15 GMT</pubDate>
    <feedburner:origLink>http://www.codekeep.net/snippets/0b2d8c83-98fa-4d58-a6ec-8079f86c8c84.aspx</feedburner:origLink></item>
    <item>
      <title>Grid Rows and Cols (2x2)</title>
      <description>Description: -&lt;br /&gt;&lt;br /&gt;Link: &lt;a href='http://www.codekeep.net/snippets/ab422596-e7fd-4d09-8cd0-af683fc99fc7.aspx'&gt;http://www.codekeep.net/snippets/ab422596-e7fd-4d09-8cd0-af683fc99fc7.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style='font-size: 9pt;'&gt;&amp;lt;Grid.RowDefinitions&amp;gt;
                                        &amp;lt;RowDefinition Height=&amp;quot;Auto&amp;quot;&amp;gt;&amp;lt;/RowDefinition&amp;gt;
                                        &amp;lt;RowDefinition Height=&amp;quot;*&amp;quot;&amp;gt;&amp;lt;/RowDefinition&amp;gt;
                                    &amp;lt;/Grid.RowDefinitions&amp;gt;
                                    &amp;lt;Grid.ColumnDefinitions&amp;gt;
                                        &amp;lt;ColumnDefinition Width=&amp;quot;Auto&amp;quot;&amp;gt;&amp;lt;/ColumnDefinition&amp;gt;
                                        &amp;lt;ColumnDefinition Width=&amp;quot;*&amp;quot;&amp;gt;&amp;lt;/ColumnDefinition&amp;gt;
                                    &amp;lt;/Grid.ColumnDefinitions&amp;gt;&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeKeepXAML/~4/s61mS5FMrhw" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/CodeKeepXAML/~3/s61mS5FMrhw/ab422596-e7fd-4d09-8cd0-af683fc99fc7.aspx</link>
      <pubDate>Mon, 01 Mar 2010 15:35:54 GMT</pubDate>
    <feedburner:origLink>http://www.codekeep.net/snippets/ab422596-e7fd-4d09-8cd0-af683fc99fc7.aspx</feedburner:origLink></item>
    <item>
      <title>XAML comments namespaces</title>
      <description>Description: -&lt;br /&gt;&lt;br /&gt;Link: &lt;a href='http://www.codekeep.net/snippets/ebef8933-53a0-43cc-b812-fa09fcb252c8.aspx'&gt;http://www.codekeep.net/snippets/ebef8933-53a0-43cc-b812-fa09fcb252c8.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style='font-size: 9pt;'&gt;xmlns:mc=&amp;quot;http://schemas.openxmlformats.org/markup-compatibility/2006&amp;quot;
                    xmlns:comment=&amp;quot;comment&amp;quot;
                    mc:Ignorable=&amp;quot;d comment&amp;quot;&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeKeepXAML/~4/WRBBNZosLa0" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/CodeKeepXAML/~3/WRBBNZosLa0/ebef8933-53a0-43cc-b812-fa09fcb252c8.aspx</link>
      <pubDate>Fri, 26 Feb 2010 13:18:47 GMT</pubDate>
    <feedburner:origLink>http://www.codekeep.net/snippets/ebef8933-53a0-43cc-b812-fa09fcb252c8.aspx</feedburner:origLink></item>
    <item>
      <title>common Textbox &amp; PasswordBox Style</title>
      <description>Description: a common Style for  Textbox &amp; PasswordBox&lt;br /&gt;&lt;br /&gt;Link: &lt;a href='http://www.codekeep.net/snippets/7691bd04-b0f1-4174-9e9b-8eb7e6bebf7f.aspx'&gt;http://www.codekeep.net/snippets/7691bd04-b0f1-4174-9e9b-8eb7e6bebf7f.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style='font-size: 9pt;'&gt;&amp;lt;!-- commonStyle for TextBox and PasswordBox --&amp;gt;
&amp;lt;System:Double x:Key=&amp;quot;MinHeight&amp;quot;&amp;gt;30&amp;lt;/System:Double&amp;gt;
&amp;lt;System:Double x:Key=&amp;quot;FontSize&amp;quot;&amp;gt;14&amp;lt;/System:Double&amp;gt;
&amp;lt;FontFamily x:Key=&amp;quot;FontFamily&amp;quot;&amp;gt;Verdana&amp;lt;/FontFamily&amp;gt;
&amp;lt;ControlTemplate x:Key=&amp;quot;ControlTemplate&amp;quot;&amp;gt;
	&amp;lt;Border Name=&amp;quot;Border&amp;quot; CornerRadius=&amp;quot;4&amp;quot; Padding=&amp;quot;2&amp;quot; Background=&amp;quot;White&amp;quot; BorderBrush=&amp;quot;Black&amp;quot; BorderThickness=&amp;quot;1&amp;quot; &amp;gt;
		&amp;lt;ScrollViewer Margin=&amp;quot;0&amp;quot; x:Name=&amp;quot;PART_ContentHost&amp;quot;/&amp;gt;
	&amp;lt;/Border&amp;gt;
&amp;lt;/ControlTemplate&amp;gt;	
&amp;lt;Style x:Key=&amp;quot;CommonStyle&amp;quot;&amp;gt;
	&amp;lt;Setter Property=&amp;quot;TextBox.MinHeight&amp;quot; Value=&amp;quot;{StaticResource MinHeight}&amp;quot; /&amp;gt;
	&amp;lt;Setter Property=&amp;quot;PasswordBox.MinHeight&amp;quot; Value=&amp;quot;{StaticResource MinHeight}&amp;quot; /&amp;gt;		
	&amp;lt;Setter Property=&amp;quot;TextBox.SnapsToDevicePixels&amp;quot; Value=&amp;quot;True&amp;quot;/&amp;gt;
	&amp;lt;Setter Property=&amp;quot;PasswordBox.SnapsToDevicePixels&amp;quot; Value=&amp;quot;True&amp;quot;/&amp;gt;		
	&amp;lt;Setter Property=&amp;quot;TextBox.OverridesDefaultStyle&amp;quot; Value=&amp;quot;True&amp;quot;/&amp;gt;
	&amp;lt;Setter Property=&amp;quot;PasswordBox.OverridesDefaultStyle&amp;quot; Value=&amp;quot;True&amp;quot;/&amp;gt;		
	&amp;lt;Setter Property=&amp;quot;TextBox.FocusVisualStyle&amp;quot; Value=&amp;quot;{x:Null}&amp;quot;/&amp;gt;		
	&amp;lt;Setter Property=&amp;quot;PasswordBox.FocusVisualStyle&amp;quot; Value=&amp;quot;{x:Null}&amp;quot;/&amp;gt;		
	&amp;lt;Setter Property=&amp;quot;TextBox.AllowDrop&amp;quot; Value=&amp;quot;true&amp;quot;/&amp;gt;
	&amp;lt;Setter Property=&amp;quot;PasswordBox.AllowDrop&amp;quot; Value=&amp;quot;true&amp;quot;/&amp;gt;		
	&amp;lt;Setter Property=&amp;quot;TextBox.FontFamily&amp;quot; Value=&amp;quot;{StaticResource FontFamily}&amp;quot;/&amp;gt;
	&amp;lt;Setter Property=&amp;quot;PasswordBox.FontFamily&amp;quot; Value=&amp;quot;{StaticResource FontFamily}&amp;quot;/&amp;gt;		
	&amp;lt;Setter Property=&amp;quot;TextBox.FontSize&amp;quot; Value=&amp;quot;{StaticResource FontSize}&amp;quot;/&amp;gt;
	&amp;lt;Setter Property=&amp;quot;PasswordBox.FontSize&amp;quot; Value=&amp;quot;{StaticResource FontSize}&amp;quot;/&amp;gt;
	&amp;lt;Setter Property=&amp;quot;TextBox.Template&amp;quot; Value=&amp;quot;{StaticResource ControlTemplate}&amp;quot;/&amp;gt;
	&amp;lt;Setter Property=&amp;quot;PasswordBox.Template&amp;quot; Value=&amp;quot;{StaticResource ControlTemplate}&amp;quot;/&amp;gt;		
&amp;lt;/Style&amp;gt;

&amp;lt;!-- TextBoxStyle --&amp;gt;
&amp;lt;Style TargetType=&amp;quot;{x:Type TextBox}&amp;quot; BasedOn=&amp;quot;{StaticResource CommonStyle}&amp;quot; /&amp;gt;

&amp;lt;!-- PasswordBoxStyle --&amp;gt;
&amp;lt;Style TargetType=&amp;quot;{x:Type PasswordBox}&amp;quot; BasedOn=&amp;quot;{StaticResource CommonStyle}&amp;quot; /&amp;gt;
&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeKeepXAML/~4/MlM6Ea6YpH4" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/CodeKeepXAML/~3/MlM6Ea6YpH4/7691bd04-b0f1-4174-9e9b-8eb7e6bebf7f.aspx</link>
      <pubDate>Wed, 16 Dec 2009 08:59:12 GMT</pubDate>
    <feedburner:origLink>http://www.codekeep.net/snippets/7691bd04-b0f1-4174-9e9b-8eb7e6bebf7f.aspx</feedburner:origLink></item>
    <item>
      <title>Style Inheritance</title>
      <description>Description: This will inherit from other style&lt;br /&gt;&lt;br /&gt;Link: &lt;a href='http://www.codekeep.net/snippets/28cd501f-bb4f-4b79-a552-58f6a935dbe9.aspx'&gt;http://www.codekeep.net/snippets/28cd501f-bb4f-4b79-a552-58f6a935dbe9.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style='font-size: 9pt;'&gt;&amp;lt;UserControl.Resources&amp;gt;
&amp;lt;Style x:Key=&amp;quot;BigButtonStyle&amp;quot; TargetType=&amp;quot;Button&amp;quot;&amp;gt;
&amp;lt;Setter Property=&amp;quot;FontFamily&amp;quot; Value=&amp;quot;Georgia&amp;quot; /&amp;gt;
&amp;lt;Setter Property=&amp;quot;FontSize&amp;quot; Value=&amp;quot;40&amp;quot; /&amp;gt;
&amp;lt;Setter Property=&amp;quot;Padding&amp;quot; Value=&amp;quot;20&amp;quot; /&amp;gt;
&amp;lt;Setter Property=&amp;quot;Margin&amp;quot; Value=&amp;quot;10&amp;quot; /&amp;gt;
&amp;lt;/Style&amp;gt;
&amp;lt;Style x:Key=&amp;quot;EmphasizedBigButtonStyle&amp;quot; TargetType=&amp;quot;Button&amp;quot;
BasedOn=&amp;quot;{StaticResource BigButtonStyle}&amp;quot;&amp;gt;
&amp;lt;Setter Property=&amp;quot;BorderBrush&amp;quot; Value=&amp;quot;Black&amp;quot; /&amp;gt;
&amp;lt;Setter Property=&amp;quot;BorderThickness&amp;quot; Value=&amp;quot;5&amp;quot; /&amp;gt;
&amp;lt;/Style&amp;gt;
&amp;lt;/UserControl.Resources&amp;gt;&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeKeepXAML/~4/XMtUX6fPnTM" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/CodeKeepXAML/~3/XMtUX6fPnTM/28cd501f-bb4f-4b79-a552-58f6a935dbe9.aspx</link>
      <pubDate>Wed, 25 Nov 2009 08:31:26 GMT</pubDate>
    <feedburner:origLink>http://www.codekeep.net/snippets/28cd501f-bb4f-4b79-a552-58f6a935dbe9.aspx</feedburner:origLink></item>
    <item>
      <title>StoryBoard</title>
      <description>Description: Setup a StoryBoard in Silverlight&lt;br /&gt;&lt;br /&gt;Link: &lt;a href='http://www.codekeep.net/snippets/747559e7-7c8c-425d-b0e8-be8ea5c5cb4b.aspx'&gt;http://www.codekeep.net/snippets/747559e7-7c8c-425d-b0e8-be8ea5c5cb4b.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style='font-size: 9pt;'&gt;&amp;lt;UserControl.Resources&amp;gt;
        &amp;lt;Storyboard x:Name=&amp;quot;rotateStoryBoard&amp;quot;&amp;gt;
            &amp;lt;DoubleAnimation Storyboard.TargetName=&amp;quot;rotateTransform&amp;quot; Storyboard.TargetProperty=&amp;quot;Angle&amp;quot;
                     To=&amp;quot;360&amp;quot; Duration=&amp;quot;0:0:0.8&amp;quot; RepeatBehavior=&amp;quot;Forever&amp;quot;  &amp;gt;&amp;lt;/DoubleAnimation&amp;gt;
        &amp;lt;/Storyboard&amp;gt;
        &amp;lt;Storyboard x:Name=&amp;quot;unrotateStoryboard&amp;quot;&amp;gt;
            &amp;lt;DoubleAnimation Storyboard.TargetName=&amp;quot;rotateTransform&amp;quot;
                    Storyboard.TargetProperty=&amp;quot;Angle&amp;quot; To=&amp;quot;0&amp;quot; Duration=&amp;quot;0:0:0.2&amp;quot;&amp;gt;&amp;lt;/DoubleAnimation&amp;gt;
        &amp;lt;/Storyboard&amp;gt;
    &amp;lt;/UserControl.Resources&amp;gt;

-----------------------------------

&amp;lt;Storyboard x:Name=&amp;quot;unrotateStoryboard&amp;quot;&amp;gt;
&amp;lt;DoubleAnimation Storyboard.TargetName=&amp;quot;rotateTransform&amp;quot;
Storyboard.TargetProperty=&amp;quot;Angle&amp;quot; To=&amp;quot;0&amp;quot; Duration=&amp;quot;0:0:0.2&amp;quot;&amp;gt;&amp;lt;/DoubleAnimation&amp;gt;
&amp;lt;/Storyboard&amp;gt;
Here's the event handler:

private void cmd_MouseLeave(object sender, MouseEventArgs e)
{
unrotateStoryboard.Begin();
}

With a little more work, you can make these two animations and the two event
handlers work for a whole stack of rotatable buttons, as shown in Figure 10-7. The trick is to
handle the events of all the buttons with the same code, and dynamically assign the target of
the storyboard to the current button using the Storyboard.SetTarget() method:

private void cmd_MouseEnter(object sender, MouseEventArgs e)
{
rotateStoryboard.Stop();
Storyboard.SetTarget(rotateStoryboard, ((Button)sender).RenderTransform);
rotateStoryboard.Begin();
}

private void cmd_MouseLeave(object sender, MouseEventArgs e)
{
unrotateStoryboard.Stop();
Storyboard.SetTarget(unrotateStoryboard, ((Button)sender).RenderTransform);
unrotateStoryboard.Begin();
}

&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeKeepXAML/~4/IAM_7YYWUDA" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/CodeKeepXAML/~3/IAM_7YYWUDA/747559e7-7c8c-425d-b0e8-be8ea5c5cb4b.aspx</link>
      <pubDate>Wed, 25 Nov 2009 02:52:20 GMT</pubDate>
    <feedburner:origLink>http://www.codekeep.net/snippets/747559e7-7c8c-425d-b0e8-be8ea5c5cb4b.aspx</feedburner:origLink></item>
    <item>
      <title>Initialization Parameter</title>
      <description>Description: If you want to pass values from html to silverlight&lt;br /&gt;&lt;br /&gt;Link: &lt;a href='http://www.codekeep.net/snippets/fc7723c3-19d2-4dd0-92cc-610cfd831905.aspx'&gt;http://www.codekeep.net/snippets/fc7723c3-19d2-4dd0-92cc-610cfd831905.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style='font-size: 9pt;'&gt;The Startup event passes in a StartupEventArgs object, which includes one additional detail:
initialization parameters. This mechanism allows the page that hosts the Silverlight control to
pass in custom information. This is particularly useful if you host the same Silverlight
application on different pages, or you want the Silverlight application to vary based on userspecific
or session-specific information. For example, you can customize the application's view
depending on whether users are entering from the customer page or the employee page. Or,
you may choose to load different information based on the product the user is currently
viewing. Just remember that the initialization parameters come from the tags of the HTML
entry page, and a malicious user can alter them.

For example, imagine you want to pass a ViewMode parameter that has two possible
values, Customer or Employee, as represented by this enumeration:

public enum ViewMode
{
Customer, Employee
}

You need to change a variety of details based on this information, so it makes sense to
store it somewhere that's accessible throughout your application. The logical choice is to add a
property to your custom application class, like this:

private ViewMode viewMode = ViewMode.Customer;
public ViewMode ViewMode
{
get { return viewMode; }
}

This property defaults to customer view, so it needs to be changed only if the web page
specifically requests the employee view.
To pass the parameter into your Silverlight application, you need to add a &amp;lt;param&amp;gt;
element to the markup in the Silverlight content region. This parameter must have the name
initParams. Its value is a comma-separated list of name-value pairs that set your custom
parameters. For example, to add a parameter named viewMode, you add the following line
(shown in bold) to your markup:

&amp;lt;div id=&amp;quot;silverlightControlHost&amp;quot;&amp;gt;
&amp;lt;object data=&amp;quot;data:application/x-silverlight,&amp;quot;
type=&amp;quot;application/x-silverlight-2&amp;quot; width=&amp;quot;100%&amp;quot; height=&amp;quot;100%&amp;quot;&amp;gt;
&amp;lt;param name=&amp;quot;source&amp;quot; value=&amp;quot;TransparentSilverlight.xap&amp;quot;/&amp;gt;
&amp;lt;param name=&amp;quot;onerror&amp;quot; value=&amp;quot;onSilverlightError&amp;quot; /&amp;gt;
&amp;lt;param name=&amp;quot;background&amp;quot; value=&amp;quot;white&amp;quot; /&amp;gt;
&amp;lt;param name=&amp;quot;initParams&amp;quot; value=&amp;quot;viewMode=Customer&amp;quot; /&amp;gt;
...
&amp;lt;/object&amp;gt;
&amp;lt;iframe style='visibility:hidden;height:0;width:0;border:0px'&amp;gt;&amp;lt;/iframe&amp;gt;
&amp;lt;/div&amp;gt;

Then, you can retrieve this from the StartupEventArgs.InitParams collection. However,
you must check first that it exists:

private void Application_Startup(object sender, StartupEventArgs e)
{
// Take the view mode setting, and store in an application property.
if (e.InitParams.ContainsKey(&amp;quot;viewMode&amp;quot;))
{
string view = e.InitParams[&amp;quot;viewMode&amp;quot;];
if (view == &amp;quot;&amp;quot;Employee&amp;quot;&amp;quot;) this.viewMode = ViewMode.Employee;
}
// Create the root page.
this.RootVisual = new Page();
}

If you have many possible values, you can use the following leaner code to convert the
string to the corresponding enumeration value, assuming the text matches exactly:

string view = e.InitParams[&amp;quot;viewMode&amp;quot;];
try
{
this.viewMode = (ViewMode)Enum.Parse(typeof(ViewMode), view, true);
}
catch { }

Now, different pages are free to pass in a different parameter and launch your
application with different view settings. Because the view information is stored as a property in
the custom application class (named App), you can retrieve it anywhere in your application:

lblViewMode.Text = &amp;quot;Current view mode: &amp;quot; +
((App)Application.Current).ViewMode.ToString();
&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeKeepXAML/~4/NtEnepcWCIg" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/CodeKeepXAML/~3/NtEnepcWCIg/fc7723c3-19d2-4dd0-92cc-610cfd831905.aspx</link>
      <pubDate>Tue, 24 Nov 2009 08:13:01 GMT</pubDate>
    <feedburner:origLink>http://www.codekeep.net/snippets/fc7723c3-19d2-4dd0-92cc-610cfd831905.aspx</feedburner:origLink></item>
    <item>
      <title>Autocomplete - Custom Filtering</title>
      <description>Description: Silverlight3 - Autocomplete - Custom Filtering&lt;br /&gt;&lt;br /&gt;Link: &lt;a href='http://www.codekeep.net/snippets/e7c07e79-ca7f-4590-b1ef-a8c2068cfbbe.aspx'&gt;http://www.codekeep.net/snippets/e7c07e79-ca7f-4590-b1ef-a8c2068cfbbe.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style='font-size: 9pt;'&gt;To perform any sort of custom filtering, you must set the TextFilter or ItemFilter property. Use
TextFilter if your ItemsSource is a collection or strings, and use ItemFilter if your ItemsSource is
a collection with some other sort of object. Either way, the TextFilter or ItemFilter property
takes a delegate that points to a method that performs the custom filtering. This method takes
two arguments: the text that the user has entered so far, and the item that you're currently
testing for a match.

public bool ItemFilter(string text, object item)
{ ... }

The code in the filtering method should perform whatever comparison logic you need,
and return true if the item should be included as a drop-down suggestion based on the current
text, or false if it should be omitted.

Custom filtering is particularly useful if you're comparing text against a list of complex
objects. That's because it allows you to incorporate the information that's stored in different
properties.

For example, imagine you have this simple Product class:

public class Product
{
public string ProductName { get; set; }
public string ProductCode { get; set; }
public Product(string productName, string productCode)
{
ProductName = productName;
ProductCode = productCode;
}
public override string ToString()
{
return ProductName;
}
}

You then decide to build an AutoCompleteBox that attempts to match the user's text
with a Product object. In preparation for this step, you fill the AutoComplexBox.ItemsSource
collection with product objects:

Product[] products = new []{
new Product(&amp;quot;Peanut Butter Applicator&amp;quot;, &amp;quot;C_PBA-01&amp;quot;),
new Product(&amp;quot;Pelvic Strengthener&amp;quot;, &amp;quot;C_PVS-309&amp;quot;), ...};

acbProduct.ItemsSource = products;

If you take no further steps, the AutoCompleteBox will use its standard behavior. As
the user types, it will call ToString() on each Product object. It will then use that text to perform
its suggestion filtering. Because the Product class overrides the ToString() method to return the
product name, the AutoCompleteBox will attempt to match the user's text with a product
name, which is perfectly reasonable.

However, if you perform custom filtering you can get a bit more sophisticated. For
example, you can check if the user's text matches the ProductName property or the
ProductCode property and deem the Product object as a match either way. Here's an example
of the custom filtering logic that does the trick:

public bool ProductItemFilter(string text, object item)
{
Product product = (Product)item;
// Call it a match if the typed-in text appears in the product code
// or at the beginning of the product name.
return ((product.ProductName.StartsWith(text)) ||
(product.ProductCode.Contains(text)));
}

You simply need to connect this method to your AutoComplexBox when it's first
initialized:

acbProduct.ItemFilter = ProductItemFilter;

&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeKeepXAML/~4/A-uxr9tHcjI" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/CodeKeepXAML/~3/A-uxr9tHcjI/e7c07e79-ca7f-4590-b1ef-a8c2068cfbbe.aspx</link>
      <pubDate>Tue, 24 Nov 2009 07:53:49 GMT</pubDate>
    <feedburner:origLink>http://www.codekeep.net/snippets/e7c07e79-ca7f-4590-b1ef-a8c2068cfbbe.aspx</feedburner:origLink></item>
    <item>
      <title>Autocomplete</title>
      <description>Description: Silverlight3 - Autocomplete&lt;br /&gt;&lt;br /&gt;Link: &lt;a href='http://www.codekeep.net/snippets/7740d66a-f6ca-4510-b9d2-9ada5e8a222c.aspx'&gt;http://www.codekeep.net/snippets/7740d66a-f6ca-4510-b9d2-9ada5e8a222c.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style='font-size: 9pt;'&gt;The AutoCompleteBox fuses a text entry with a drop-down list of suggestions. This feature is a
common sight on the Web, powering everything from the search box on the Google homepage
to the Internet Explorer address bar.

The Silverlight implementation is a surprisingly powerful control that gives you several
ways to decide what items should appear in the drop-down list. The simplest approach is to
start with an ordinary AutoCompleteBox:

&amp;lt;input:AutoCompleteBox x:Name=&amp;quot;txtMonth&amp;quot;&amp;gt;&amp;lt;/input:AutoCompleteBox&amp;gt;
When you add an AutoCompleteBox from the toolbox, Visual Studio creates an XML
alias named input:

&amp;lt;UserControl xmlns:input=&amp;quot;clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input&amp;quot; ... &amp;gt;

Once you've added an AutoCompleteBox, create an array or list that holds the
collection of possible suggestions (in no particular order), and apply this collection to the
AutoCompleteBox.ItemsSource property. Typically, you'd perform this step when the page first
loads, by adding your code to the page constructor or handling the UserControl.Loaded event.
Here's an example that uses the set of twelve calendar months:

string[] monthList = {&amp;quot;January&amp;quot;, &amp;quot;February&amp;quot;, &amp;quot;March&amp;quot;, &amp;quot;April&amp;quot;,
&amp;quot;May&amp;quot;, &amp;quot;June&amp;quot;, &amp;quot;July&amp;quot;, &amp;quot;August&amp;quot;, &amp;quot;September&amp;quot;,
&amp;quot;October&amp;quot;, &amp;quot;November&amp;quot;, &amp;quot;December&amp;quot;};
txtMonth.ItemsSource = monthList;

That's enough to get the default behavior. When the user types a letter in the box at
runtime, a drop-down list of potential matches will appear, in alphabetical order (Figure 5-14).
To select an item (and avoid typing the whole text in by hand), you can click it with the mouse,
or cursor down to it with the arrow keys.&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeKeepXAML/~4/a7bf-ryt0aM" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/CodeKeepXAML/~3/a7bf-ryt0aM/7740d66a-f6ca-4510-b9d2-9ada5e8a222c.aspx</link>
      <pubDate>Tue, 24 Nov 2009 07:46:21 GMT</pubDate>
    <feedburner:origLink>http://www.codekeep.net/snippets/7740d66a-f6ca-4510-b9d2-9ada5e8a222c.aspx</feedburner:origLink></item>
    <item>
      <title>TabControl</title>
      <description>Description: Silverlight3 - Tabcontrol&lt;br /&gt;&lt;br /&gt;Link: &lt;a href='http://www.codekeep.net/snippets/6a27c79a-0019-49d0-97c7-fee9bc005b53.aspx'&gt;http://www.codekeep.net/snippets/6a27c79a-0019-49d0-97c7-fee9bc005b53.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style='font-size: 9pt;'&gt;The TabControl
You're no doubt familiar with the TabControl, a handy container that condenses a large
amount of user interface into a set of tabbed pages. In Silverlight, the TabControl is an items
control that holds one or more TabItem elements.
Like several of Silverlight's more specialized controls, the TabControl is defined in a
separate assembly. When you add it to a page, Visual Studio will add a reference to the
System.Windows.Controls.dll assembly, and map a new XML namespace, like this one:
&amp;lt;UserControl xmlns:controls=
&amp;quot;clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls&amp;quot;
... &amp;gt;
To use the TabControl, you must fill it with one or more TabItem elements. Each
TabItem represents a separate page. Because the TabItem is a content control, it can hold
another Silverlight element (like a layout container).
Here's an example of a TabControl that includes two tabs. The first tab holds a
StackPanel with three check boxes:

&amp;lt;controls:TabControl&amp;gt;
&amp;lt;controls:TabItem Header=&amp;quot;Tab One&amp;quot;&amp;gt;
&amp;lt;StackPanel Margin=&amp;quot;3&amp;quot;&amp;gt;
   &amp;lt;CheckBox Margin=&amp;quot;3&amp;quot; Content=&amp;quot;Setting 1&amp;quot;&amp;gt;&amp;lt;/CheckBox&amp;gt;
   &amp;lt;CheckBox Margin=&amp;quot;3&amp;quot; Content=&amp;quot;Setting 2&amp;quot;&amp;gt;&amp;lt;/CheckBox&amp;gt;
   &amp;lt;CheckBox Margin=&amp;quot;3&amp;quot; Content=&amp;quot;Setting 3&amp;quot;&amp;gt;&amp;lt;/CheckBox&amp;gt;
&amp;lt;/StackPanel&amp;gt;
&amp;lt;/controls:TabItem&amp;gt;
&amp;lt;controls:TabItem Header=&amp;quot;Tab Two&amp;quot;&amp;gt;
...
&amp;lt;/controls:TabItem&amp;gt;
&amp;lt;/controls:TabControl&amp;gt;
The TabItem holds its content (in this example, a StackPanel) in the TabItem.Content
property. Interestingly, the TabItem also has another property that can hold arbitrary content-
the Header. In the previous example, the Header holds a simple text string. However, you just
as readily fill it with graphical content or a layout container that holds a whole host of elements,
as shown here:
&amp;lt;controls:TabControl&amp;gt;
&amp;lt;controls:TabItem&amp;gt;
&amp;lt;controls:TabItem.Header&amp;gt;
&amp;lt;StackPanel&amp;gt;
&amp;lt;TextBlock Margin=&amp;quot;3&amp;quot;&amp;gt;Image and Text Tab Title&amp;lt;/TextBlock&amp;gt;
&amp;lt;Image Source=&amp;quot;happyface.jpg&amp;quot; Stretch=&amp;quot;None&amp;quot; /&amp;gt;
&amp;lt;/StackPanel&amp;gt;
&amp;lt;/controls:TabItem.Header&amp;gt;
&amp;lt;StackPanel Margin=&amp;quot;3&amp;quot;&amp;gt;
&amp;lt;CheckBox Margin=&amp;quot;3&amp;quot; Content=&amp;quot;Setting 1&amp;quot;&amp;gt;&amp;lt;/CheckBox&amp;gt;
&amp;lt;CheckBox Margin=&amp;quot;3&amp;quot; Content=&amp;quot;Setting 2&amp;quot;&amp;gt;&amp;lt;/CheckBox&amp;gt;
&amp;lt;CheckBox Margin=&amp;quot;3&amp;quot; Content=&amp;quot;Setting 3&amp;quot;&amp;gt;&amp;lt;/CheckBox&amp;gt;
&amp;lt;/StackPanel&amp;gt;
&amp;lt;/controls:TabItem&amp;gt;
&amp;lt;controls:TabItem Header=&amp;quot;Tab Two&amp;quot;&amp;gt;
...
&amp;lt;/controls:TabItem&amp;gt;
&amp;lt;/controls:TabControl&amp;gt;
&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeKeepXAML/~4/25yWA0_gk-A" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/CodeKeepXAML/~3/25yWA0_gk-A/6a27c79a-0019-49d0-97c7-fee9bc005b53.aspx</link>
      <pubDate>Tue, 24 Nov 2009 07:18:27 GMT</pubDate>
    <feedburner:origLink>http://www.codekeep.net/snippets/6a27c79a-0019-49d0-97c7-fee9bc005b53.aspx</feedburner:origLink></item>
    <item>
      <title>Popup</title>
      <description>Description: Silverlight3 - Popup&lt;br /&gt;&lt;br /&gt;Link: &lt;a href='http://www.codekeep.net/snippets/b2a8bc7c-e943-4612-8b47-baabd84f3719.aspx'&gt;http://www.codekeep.net/snippets/b2a8bc7c-e943-4612-8b47-baabd84f3719.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style='font-size: 9pt;'&gt;&amp;lt;StackPanel Margin=&amp;quot;20&amp;quot;&amp;gt;
&amp;lt;TextBlock TextWrapping=&amp;quot;Wrap&amp;quot; MouseLeftButtonDown=&amp;quot;txt_MouseLeftButtonDown&amp;quot;
Text=&amp;quot;Click here to open the PopUp.&amp;quot;&amp;gt;&amp;lt;/TextBlock&amp;gt;
&amp;lt;Popup x:Name=&amp;quot;popUp&amp;quot; MaxWidth=&amp;quot;200&amp;quot;&amp;gt;
&amp;lt;Border Background=&amp;quot;Lime&amp;quot; MouseLeftButtonDown=&amp;quot;popUp_MouseLeftButtonDown&amp;quot;&amp;gt;
&amp;lt;TextBlock Margin=&amp;quot;10&amp;quot; Text=&amp;quot;This is the PopUp.&amp;quot;&amp;gt;&amp;lt;/TextBlock&amp;gt;
&amp;lt;/Border&amp;gt;
&amp;lt;/Popup&amp;gt;
&amp;lt;/StackPanel&amp;gt;
The only remaining detail is the relatively trivial code that shows the Popup when the
user clicks it, and the code that hides the Popup when it's clicked:
private void txt_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
popUp.IsOpen = true;
}
private void popUp_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
popUp.IsOpen = false;
}&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeKeepXAML/~4/-6_tz1ocGG4" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/CodeKeepXAML/~3/-6_tz1ocGG4/b2a8bc7c-e943-4612-8b47-baabd84f3719.aspx</link>
      <pubDate>Tue, 24 Nov 2009 07:14:33 GMT</pubDate>
    <feedburner:origLink>http://www.codekeep.net/snippets/b2a8bc7c-e943-4612-8b47-baabd84f3719.aspx</feedburner:origLink></item>
    <item>
      <title>Create fancy tooltip</title>
      <description>Description: Silverlight3 - Customized ToolTips&lt;br /&gt;&lt;br /&gt;Link: &lt;a href='http://www.codekeep.net/snippets/28f98125-7492-4ea8-94cb-f05c62b4fc2a.aspx'&gt;http://www.codekeep.net/snippets/28f98125-7492-4ea8-94cb-f05c62b4fc2a.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style='font-size: 9pt;'&gt;&amp;lt;Button Content=&amp;quot;I have a fancy tooltip&amp;quot;&amp;gt;
&amp;lt;ToolTipService.ToolTip&amp;gt;
&amp;lt;StackPanel&amp;gt;
&amp;lt;TextBlock Margin=&amp;quot;3&amp;quot; Text=&amp;quot;Image and text&amp;quot;&amp;gt;&amp;lt;/TextBlock&amp;gt;
&amp;lt;Image Source=&amp;quot;happyface.jpg&amp;quot;&amp;gt;&amp;lt;/Image&amp;gt;
&amp;lt;TextBlock Margin=&amp;quot;3&amp;quot; Text=&amp;quot;Image and text&amp;quot;&amp;gt;&amp;lt;/TextBlock&amp;gt;
&amp;lt;/StackPanel&amp;gt;
&amp;lt;/ToolTipService.ToolTip&amp;gt;
&amp;lt;/Button&amp;gt;&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeKeepXAML/~4/14JR9_C76FU" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/CodeKeepXAML/~3/14JR9_C76FU/28f98125-7492-4ea8-94cb-f05c62b4fc2a.aspx</link>
      <pubDate>Tue, 24 Nov 2009 07:03:22 GMT</pubDate>
    <feedburner:origLink>http://www.codekeep.net/snippets/28f98125-7492-4ea8-94cb-f05c62b4fc2a.aspx</feedburner:origLink></item>
    <item>
      <title>Bindable RadioButtonList</title>
      <description>Description: List of RadioButtons that don't loose their binding when clicked and still only allow one rdio button to be selected at any time.
Take from Pro WPF 2008&lt;br /&gt;&lt;br /&gt;Link: &lt;a href='http://www.codekeep.net/snippets/c39d7337-23c3-4ac1-a7df-13311a3a0abf.aspx'&gt;http://www.codekeep.net/snippets/c39d7337-23c3-4ac1-a7df-13311a3a0abf.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style='font-size: 9pt;'&gt;&amp;lt;Style x:Key=&amp;quot;RadioButtonListStyle&amp;quot; TargetType=&amp;quot;{x:Type ListBox}&amp;quot;&amp;gt;

            &amp;lt;Setter Property=&amp;quot;ItemContainerStyle&amp;quot;&amp;gt;

               &amp;lt;Setter.Value&amp;gt;

                  &amp;lt;Style TargetType=&amp;quot;{x:Type ListBoxItem}&amp;quot;&amp;gt;

                     &amp;lt;Setter Property=&amp;quot;Margin&amp;quot; Value=&amp;quot;2&amp;quot;/&amp;gt;

                     &amp;lt;Setter Property=&amp;quot;Template&amp;quot;&amp;gt;

                        &amp;lt;Setter.Value&amp;gt;

                           &amp;lt;ControlTemplate TargetType=&amp;quot;{x:Type ListBoxItem}&amp;quot;&amp;gt;

                              &amp;lt;RadioButton Focusable=&amp;quot;False&amp;quot; IsChecked=&amp;quot;{Binding Path=IsSelected, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }&amp;quot;&amp;gt;

                                 &amp;lt;ContentPresenter/&amp;gt;

                               

                              &amp;lt;/RadioButton&amp;gt;

                           &amp;lt;/ControlTemplate&amp;gt;

                        &amp;lt;/Setter.Value&amp;gt;

                     &amp;lt;/Setter&amp;gt;

                  &amp;lt;/Style&amp;gt;

               &amp;lt;/Setter.Value&amp;gt;

            &amp;lt;/Setter&amp;gt;

         &amp;lt;/Style&amp;gt;&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeKeepXAML/~4/r6A56-yW4Cs" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/CodeKeepXAML/~3/r6A56-yW4Cs/c39d7337-23c3-4ac1-a7df-13311a3a0abf.aspx</link>
      <pubDate>Wed, 04 Nov 2009 17:24:27 GMT</pubDate>
    <feedburner:origLink>http://www.codekeep.net/snippets/c39d7337-23c3-4ac1-a7df-13311a3a0abf.aspx</feedburner:origLink></item>
    <item>
      <title>Automatic ProgressBar</title>
      <description>Description: Automatic ProgressBar for testing:&lt;br /&gt;&lt;br /&gt;Link: &lt;a href='http://www.codekeep.net/snippets/cfa3febf-c8cb-4cd6-b7b1-e5f4efd77b35.aspx'&gt;http://www.codekeep.net/snippets/cfa3febf-c8cb-4cd6-b7b1-e5f4efd77b35.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style='font-size: 9pt;'&gt;&amp;lt;ProgressBar x:Name=&amp;quot;MessageProgessBar&amp;quot;
                   Maximum=&amp;quot;100&amp;quot; Minimum=&amp;quot;0&amp;quot;
                   Height=&amp;quot;25&amp;quot; Width=&amp;quot;275&amp;quot;&amp;gt;
        &amp;lt;ProgressBar.Triggers&amp;gt;
          &amp;lt;EventTrigger RoutedEvent=&amp;quot;ProgressBar.Loaded&amp;quot;&amp;gt;
            &amp;lt;BeginStoryboard&amp;gt;
              &amp;lt;Storyboard&amp;gt;
                &amp;lt;DoubleAnimation Storyboard.TargetName=&amp;quot;MessageProgessBar&amp;quot;
                                 Storyboard.TargetProperty=&amp;quot;Value&amp;quot;
                                 From=&amp;quot;0&amp;quot; To=&amp;quot;100&amp;quot; Duration=&amp;quot;0:0:30&amp;quot;/&amp;gt;
              &amp;lt;/Storyboard&amp;gt;
            &amp;lt;/BeginStoryboard&amp;gt;
          &amp;lt;/EventTrigger&amp;gt;
        &amp;lt;/ProgressBar.Triggers&amp;gt;
      &amp;lt;/ProgressBar&amp;gt;&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeKeepXAML/~4/o0V302uvS1Q" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/CodeKeepXAML/~3/o0V302uvS1Q/cfa3febf-c8cb-4cd6-b7b1-e5f4efd77b35.aspx</link>
      <pubDate>Wed, 04 Nov 2009 17:21:06 GMT</pubDate>
    <feedburner:origLink>http://www.codekeep.net/snippets/cfa3febf-c8cb-4cd6-b7b1-e5f4efd77b35.aspx</feedburner:origLink></item>
    <item>
      <title>Accelerate or Decelerate of Animation in XAML</title>
      <description>Description: Accelerate or Decelerate of Animation in XAMl
Beschleuningen und Verlangsamen von Animationen (Trigger, Storyboard, DoubleAnimation)&lt;br /&gt;&lt;br /&gt;Link: &lt;a href='http://www.codekeep.net/snippets/3cf395f4-896e-4f6e-9910-dce71b10567b.aspx'&gt;http://www.codekeep.net/snippets/3cf395f4-896e-4f6e-9910-dce71b10567b.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style='font-size: 9pt;'&gt;&amp;lt;StackPanel Margin=&amp;quot;20&amp;quot;&amp;gt;

        &amp;lt;Rectangle Name=&amp;quot;nonAcceleratedOrDeceleratedRectangle&amp;quot; Fill=&amp;quot;#9933FF&amp;quot; 
      Width=&amp;quot;10&amp;quot; Height=&amp;quot;20&amp;quot; HorizontalAlignment=&amp;quot;Left&amp;quot; /&amp;gt;

        &amp;lt;Rectangle Name=&amp;quot;acceleratedRectangle&amp;quot; Fill=&amp;quot;#3333FF&amp;quot; 
      Width=&amp;quot;10&amp;quot; Height=&amp;quot;20&amp;quot; HorizontalAlignment=&amp;quot;Left&amp;quot; /&amp;gt;

        &amp;lt;Rectangle Name=&amp;quot;deceleratedRectangle&amp;quot; Fill=&amp;quot;#33FF66&amp;quot; 
      Width=&amp;quot;10&amp;quot; Height=&amp;quot;20&amp;quot; HorizontalAlignment=&amp;quot;Left&amp;quot; /&amp;gt;

        &amp;lt;Rectangle Name=&amp;quot;acceleratedAndDeceleratedRectangle&amp;quot; Fill=&amp;quot;#CCFF33&amp;quot; 
      Width=&amp;quot;10&amp;quot; Height=&amp;quot;20&amp;quot; HorizontalAlignment=&amp;quot;Left&amp;quot; /&amp;gt;

        &amp;lt;!-- Create a button to start the animations. --&amp;gt;
        &amp;lt;Button Margin=&amp;quot;0,30,0,0&amp;quot; HorizontalAlignment=&amp;quot;Left&amp;quot;
      Content=&amp;quot;Start Animations&amp;quot;&amp;gt;
            &amp;lt;Button.Triggers&amp;gt;
                &amp;lt;EventTrigger RoutedEvent=&amp;quot;Button.Click&amp;quot;&amp;gt;
                    &amp;lt;BeginStoryboard&amp;gt;
                        &amp;lt;Storyboard&amp;gt;

                            &amp;lt;!-- Creates an animation without acceleration or deceleration for comparison. --&amp;gt;
                            &amp;lt;DoubleAnimation         
                Storyboard.TargetName=&amp;quot;nonAcceleratedOrDeceleratedRectangle&amp;quot; 
                Storyboard.TargetProperty=&amp;quot;(Rectangle.Width)&amp;quot;
                Duration=&amp;quot;0:0:10&amp;quot; From=&amp;quot;20&amp;quot; To=&amp;quot;400&amp;quot; /&amp;gt;

                            &amp;lt;!-- Creates an animation that accelerates through 40% of its duration. --&amp;gt;
                            &amp;lt;DoubleAnimation 
                Storyboard.TargetName=&amp;quot;acceleratedRectangle&amp;quot; 
                Storyboard.TargetProperty=&amp;quot;(Rectangle.Width)&amp;quot;
                AccelerationRatio=&amp;quot;0.4&amp;quot; Duration=&amp;quot;0:0:10&amp;quot; From=&amp;quot;20&amp;quot; To=&amp;quot;400&amp;quot; /&amp;gt;

                            &amp;lt;!-- Creates an animation that decelerates through 60% of its duration. --&amp;gt;
                            &amp;lt;DoubleAnimation 
                Storyboard.TargetName=&amp;quot;deceleratedRectangle&amp;quot; 
                Storyboard.TargetProperty=&amp;quot;(Rectangle.Width)&amp;quot;
                DecelerationRatio=&amp;quot;0.6&amp;quot; Duration=&amp;quot;0:0:10&amp;quot; From=&amp;quot;20&amp;quot; To=&amp;quot;400&amp;quot; /&amp;gt;

                            &amp;lt;!-- Creates an animation that accelerates through 40% of its duration and
                   decelerates through the 60% of its duration. --&amp;gt;
                            &amp;lt;DoubleAnimation 
                Storyboard.TargetName=&amp;quot;acceleratedAndDeceleratedRectangle&amp;quot; 
                Storyboard.TargetProperty=&amp;quot;(Rectangle.Width)&amp;quot;
                AccelerationRatio=&amp;quot;0.4&amp;quot; DecelerationRatio=&amp;quot;0.6&amp;quot; Duration=&amp;quot;0:0:10&amp;quot; From=&amp;quot;20&amp;quot; To=&amp;quot;400&amp;quot; /&amp;gt;
                        &amp;lt;/Storyboard&amp;gt;
                    &amp;lt;/BeginStoryboard&amp;gt;
                &amp;lt;/EventTrigger&amp;gt;
            &amp;lt;/Button.Triggers&amp;gt;
        &amp;lt;/Button&amp;gt;
    &amp;lt;/StackPanel&amp;gt;&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeKeepXAML/~4/UZXFhTIsLBw" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/CodeKeepXAML/~3/UZXFhTIsLBw/3cf395f4-896e-4f6e-9910-dce71b10567b.aspx</link>
      <pubDate>Tue, 20 Oct 2009 17:30:59 GMT</pubDate>
    <feedburner:origLink>http://www.codekeep.net/snippets/3cf395f4-896e-4f6e-9910-dce71b10567b.aspx</feedburner:origLink></item>
    <item>
      <title>MultiLineTextBox with XAML</title>
      <description>Description: MultiLineTextBox with XAML&lt;br /&gt;&lt;br /&gt;Link: &lt;a href='http://www.codekeep.net/snippets/ae15b15b-8acc-4a56-a9c1-a297acbdbe9d.aspx'&gt;http://www.codekeep.net/snippets/ae15b15b-8acc-4a56-a9c1-a297acbdbe9d.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style='font-size: 9pt;'&gt;&amp;lt;Style x:Key=&amp;quot;MultiLine&amp;quot; TargetType=&amp;quot;{x:Type TextBox}&amp;quot;&amp;gt;
    &amp;lt;Setter Property=&amp;quot;TextWrapping&amp;quot; Value=&amp;quot;WrapWithOverflow&amp;quot; /&amp;gt;
    &amp;lt;Setter Property=&amp;quot;AcceptsReturn&amp;quot; Value=&amp;quot;True&amp;quot; /&amp;gt;
    ...
&amp;lt;/Style&amp;gt;


&amp;lt;ScrollViewer Height=&amp;quot;50&amp;quot;&amp;gt;
    &amp;lt;TextBox Style=&amp;quot;{DynamicResource MultiLine}&amp;quot; Text=&amp;quot;Long long Text ...&amp;quot; /&amp;gt;
&amp;lt;/ScrollViewer&amp;gt;&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeKeepXAML/~4/zCawlwAPLy0" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/CodeKeepXAML/~3/zCawlwAPLy0/ae15b15b-8acc-4a56-a9c1-a297acbdbe9d.aspx</link>
      <pubDate>Tue, 20 Oct 2009 15:56:38 GMT</pubDate>
    <feedburner:origLink>http://www.codekeep.net/snippets/ae15b15b-8acc-4a56-a9c1-a297acbdbe9d.aspx</feedburner:origLink></item>
    <item>
      <title>add more than one resource to application</title>
      <description>Description: if u need more than one resource in ur application&lt;br /&gt;&lt;br /&gt;Link: &lt;a href='http://www.codekeep.net/snippets/7c1da26a-781b-444b-a5de-2c134fe840c3.aspx'&gt;http://www.codekeep.net/snippets/7c1da26a-781b-444b-a5de-2c134fe840c3.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style='font-size: 9pt;'&gt;&amp;lt;Application.Resources&amp;gt;
    &amp;lt;ResourceDictionary&amp;gt;
        &amp;lt;ResourceDictionary.MergedDictionaries&amp;gt;
            &amp;lt;ResourceDictionary Source=&amp;quot;stylingControls.xaml&amp;quot; /&amp;gt;
	    &amp;lt;ResourceDictionary Source=&amp;quot;stylingApplication.xaml&amp;quot; /&amp;gt;
        &amp;lt;/ResourceDictionary.MergedDictionaries&amp;gt;            
    &amp;lt;/ResourceDictionary&amp;gt;
&amp;lt;/Application.Resources&amp;gt;&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeKeepXAML/~4/Z14G7YUfhlg" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/CodeKeepXAML/~3/Z14G7YUfhlg/7c1da26a-781b-444b-a5de-2c134fe840c3.aspx</link>
      <pubDate>Wed, 29 Jul 2009 08:59:41 GMT</pubDate>
    <feedburner:origLink>http://www.codekeep.net/snippets/7c1da26a-781b-444b-a5de-2c134fe840c3.aspx</feedburner:origLink></item>
    <item>
      <title>Create test string collection in XAML</title>
      <description>Description: Shows how to create a resource that is an array of strings to test XAML in XAMLPad.&lt;br /&gt;&lt;br /&gt;Link: &lt;a href='http://www.codekeep.net/snippets/48d5e308-111b-4b19-b767-fb53bb1c2dbf.aspx'&gt;http://www.codekeep.net/snippets/48d5e308-111b-4b19-b767-fb53bb1c2dbf.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style='font-size: 9pt;'&gt;&amp;lt;Page
  xmlns=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&amp;quot;
  xmlns:x=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml&amp;quot;
  xmlns:clr=&amp;quot;clr-namespace:System;assembly=mscorlib&amp;quot;
  &amp;gt;
  &amp;lt;Page.Resources&amp;gt;
    &amp;lt;x:Array x:Key=&amp;quot;array&amp;quot; Type=&amp;quot;{x:Type clr:String}&amp;quot;&amp;gt;
      &amp;lt;clr:String&amp;gt;ABC&amp;lt;/clr:String&amp;gt;
      &amp;lt;clr:String&amp;gt;DEF&amp;lt;/clr:String&amp;gt;
      &amp;lt;clr:String&amp;gt;1234567890&amp;lt;/clr:String&amp;gt;
    &amp;lt;/x:Array&amp;gt;
  &amp;lt;/Page.Resources&amp;gt;
  &amp;lt;StackPanel&amp;gt;  
    &amp;lt;ListView ItemsSource=&amp;quot;{StaticResource array}&amp;quot;/&amp;gt;
  &amp;lt;/StackPanel&amp;gt;
&amp;lt;/Page&amp;gt;&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeKeepXAML/~4/6L81NrbOgHU" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/CodeKeepXAML/~3/6L81NrbOgHU/48d5e308-111b-4b19-b767-fb53bb1c2dbf.aspx</link>
      <pubDate>Thu, 21 May 2009 13:17:22 GMT</pubDate>
    <feedburner:origLink>http://www.codekeep.net/snippets/48d5e308-111b-4b19-b767-fb53bb1c2dbf.aspx</feedburner:origLink></item>
  </channel>
</rss>

