|
<UserControl xmlns:my="clr-namespace:Croll.Silverlight.Controls;assembly=Croll.Silverlight.Controls" x:Class="HierarchyControl.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls">
<Canvas x:Name="LayoutRoot" MinHeight="300" MinWidth="500">
<StackPanel>
<StackPanel Height="31" HorizontalAlignment="Left" Margin="0,0,0,0" Name="stackPanel1" VerticalAlignment="Top" Width="484" Orientation="Horizontal">
<Button Content="Display TextBlocks" Height="23" Name="DisplayTextBlockButton" Width="140" Click="DisplayTextBlockButton_Click" />
<Button Content="Display Buttons" Height="23" Name="DisplayButtonButton" Width="127" Click="DisplayButtonButton_Click" />
<Button Content="Display MyUserControl" Height="23" Name="DisplayMyUserControlButton" Width="146" Click="DisplayMyUserControlButton_Click" />
</StackPanel>
<StackPanel>
<my:HierarchyTree HorizontalAlignment="Left" Margin="5,5,0,0" x:Name="FamilyTree" VerticalAlignment="Top" MinHeight="150" MinWidth="400" ChildSpacing="5" Width="447" Background="Transparent" LineColor="White" Direction="Root" />
</StackPanel>
</StackPanel>
<Canvas.Background>
<LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
<GradientStop Color="#FF3A3AC4" Offset="0" />
<GradientStop Color="White" Offset="1" />
</LinearGradientBrush>
</Canvas.Background>
</Canvas>
</UserControl>
|
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.
Enjoying life developing mobile device software for Contractors Apps and Ezi App.
I also teach C#, Java and Project Management a couple of evenings a week.
Prior to moving to DCB, I'd been a Windows software developer for nearly 15 years