Click here to Skip to main content
15,867,834 members
Articles / Programming Languages / Visual Basic

Create a Voronoi diagram 2 of 3

Rate me:
Please Sign up or sign in to vote.
4.76/5 (6 votes)
17 Jul 2012CPOL9 min read 35.5K   831   11  
Creation of a Voronoi diagram, description of the binary search tree
<Window x:Class="MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="MainWindow" Height="350" Width="525">
    <StackPanel>
        <WrapPanel>
            <Button Content="Voronoi diagram" Height="35" HorizontalAlignment="Left" Margin="5" Name="btn_Voronoi" VerticalAlignment="Top" Width="163" />
            <Button Content="Create bondary rectangle" Height="35" HorizontalAlignment="Left" Margin="5" Name="btn_Retangle" VerticalAlignment="Top" Width="172" />
            <Button Content="Clear" Height="35" HorizontalAlignment="Left" Margin="5" Name="btnClear" VerticalAlignment="Top" Width="106" />
        </WrapPanel>
        <Border BorderBrush="Black" BorderThickness="5" Width="457">
            <Canvas Height="234" Background="Whitesmoke" MouseDown="Canvas1_MouseDown" MouseMove="Canvas1_MouseMove"   Margin="0" Name="Canvas1" VerticalAlignment="Top" Width="447" />
        </Border>

        <StatusBar Height="24">
            <StatusBarItem Name="stLines" Content="Number of lines added: 0" HorizontalAlignment="Right" ></StatusBarItem>
            <StatusBarItem Name="stPosition" Content="(0;0)" HorizontalAlignment="Right" ></StatusBarItem>
        </StatusBar>
    </StackPanel> 
</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.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Chief Technology Officer
Norway Norway
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions