Having fun with a TreeView

First a word of warning, you will be working with some seriously funny, but ugly images in this post, so if that doesn’t sound like fun, then there is plenty of boring stuff on the web.  Including much of what I write.  My wife got me a new expresso maker, which is very cool, ummmm.

First off, start Visual Studio 2010, any version, and cut and paste the following into your XAML.  Now the links were working when I posted this on June 23, 2011, if they aren’t working at anytime in the future, then this is a lame blog.  ….. Ok, more lame than normal.

Place the treeview between <Grid> </Grid>, press F5 hit the little twisty and take a look at the various monsters by one of my favorite artists Macmcrae.  Of course, the artist might ask me to pull this down.  If so, then I guess I will link to Flickr or something.

Have fun.  It could use work for sure.  Oh look green bar, something for the old fa.., zzzzz, something for the folks who know what Green Bar means.  If you don’t, thank goodness you don’t. Smile

Titmouse, bird cartoon, tit, tit mouse, baby birdbigfishy_0.jpg

  <TreeView>
            <TreeViewItem Header="Monster1">
                <TreeViewItem.Items>
                    <DockPanel>
                        <Image Source="https://macmcrae.com/wp-content/monster3.jpg"/>
                        <TextBlock Margin="5" Foreground="Brown"
                                   FontSize="12">Purple Monster
                        </TextBlock>
                    </DockPanel>
                    <DockPanel>
                        <Image Source="https://macmcrae.com/wp-content/uploads/2010/03/grey-alien.jpg "/>
                        <TextBlock Margin="5" Foreground="Brown"
                                    FontSize="12">Grey Alien</TextBlock>
                    </DockPanel>
                    <DockPanel>
                        <Image Source="https://macmcrae.com/wp-content/uploads/2010/03/tinfoil-hat-monster.jpg"/>
                        <TextBlock Margin="5" Foreground="Brown"
                                    FontSize="12">Tinfoil hat monster</TextBlock>
                    </DockPanel>
                </TreeViewItem.Items>
                
            </TreeViewItem>
            <TreeViewItem Header="Monster2">
                <TreeViewItem.Items>
                    <DockPanel>
                        <Image Source="https://macmcrae.com/wp-content/uploads/2010/02/unicorn.jpg"/>
                        <TextBlock Margin="5" Foreground="Brown"
                                   FontSize="12">Puking Unicorn
                        </TextBlock>
                    </DockPanel>
                    <DockPanel>
                        <Image Source="https://macmcrae.com/wp-content/uploads/2011/05/orange-fuzzy-monster.jpg "/>
                        <TextBlock Margin="5" Foreground="Brown"
                 FontSize="12">Orange Fuzzy</TextBlock>
                    </DockPanel>
                    <DockPanel>
                        <Image Source="https://macmcrae.com/wp-content/uploads/2011/05/blue-bug-4eyed.jpg  "/>
                        <TextBlock Margin="5" Foreground="Brown"
                 FontSize="12">Blue Bug 4 Eyed</TextBlock>
                    </DockPanel>
                </TreeViewItem.Items>
            </TreeViewItem>
        </TreeView>