|
<Window x:Class="VisLogTree.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Visual/Logical Tree Viewer" Height="500" Width="765" xmlns:TreeContainer="clr-namespace:TreeContainer;assembly=TreeContainer" xmlns:System="clr-namespace:System;assembly=mscorlib" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" d:DesignWidth="791" SizeToContent="Manual">
<Grid ShowGridLines="False" Width="Auto">
<Grid.RowDefinitions>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<Rectangle Fill="#FFE3E6FF" Stroke="#FF000000" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" Height="Auto"/>
<Rectangle Fill="#FFF5EBD6" Stroke="#FF000000" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" Height="Auto" Grid.Column="1"/>
<ScrollViewer HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" Height="Auto" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
<TreeContainer:TreeContainer Width="Auto" Height="Auto" x:Name="tcMain" Margin="8,8,8,8" VerticalBuffer="20"/>
</ScrollViewer>
<StackPanel HorizontalAlignment="Left" VerticalAlignment="Top" Width="Auto" Height="Auto" Grid.Column="1" Margin="0,0,0,0">
<StackPanel Background="OrangeRed" Height="Auto" x:Name="spnlDialog" Width="218.15">
<Label FontWeight = "Bold" FontSize="20" Foreground="White" Content=""VisLogTree""/>
<Label Content="With grateful acknowledgment to:"/>
<Label Content="SAMS Publishing and "WPF Unleashed"" Margin="0,-10,0,0"/>
<Label Content="(Please don't sue me!)"/>
<ListBox>
<ListBoxItem Content="Chapter 1"/>
<ListBoxItem Content="Chapter 2"/>
</ListBox>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
<Button MinWidth="75" Margin="10" Content="Help" IsEnabled="True"/>
<Button MinWidth="75" Margin="10" Content="OK"/>
</StackPanel>
<StatusBar>
<System:String>I Love "WPF Unleashed"!</System:String>
</StatusBar>
</StackPanel>
<StackPanel Height="Auto" Margin="0,14,0,0" HorizontalAlignment="Center">
<RadioButton x:Name="rbLogicalTree" Width="Auto" Height="15.96" Content="Logical Tree" IsChecked="True" Checked="rbLogicalTree_Checked"/>
<RadioButton x:Name="rbVisualTree" Width="Auto" Height="15.96" Content="Visual Tree" Checked="rbVisualTree_Checked"/>
</StackPanel>
</StackPanel>
</Grid>
</Window>
|
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.
I've been doing programming for close to 30 years now. I started with C at Bell Labs and later went to work for Microsoft for many years. I currently am a partner in Suckerpunch LLC where we produce PlayStation games (www.suckerpunch.com).
I am mainly interested in AI, graphics and more mathematical stuff. Dealing with client/server architectures and business software doesn't do that much for me. I love math, computers, hiking, travel, reading, playing piano, fruit jars (yes - I said fruit jars) and photography.