<Window x:Class="WPFTreeView.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="WPF TreeView Beispiel" Height="518" Width="377" Name="WinTreeView">
    <Grid>
        <TreeView Height="358" HorizontalAlignment="Left" Margin="12,12,0,0" Name="treeView1" VerticalAlignment="Top" Width="209" Background="#FFFFDCB9" FontWeight="Bold">
            <TreeViewItem Name="TreeviewStammdaten"  Header="Stammdaten">
                <TreeViewItem Name="TreeviewKunden"  Header="Kunden" MouseLeftButtonUp="MenuItem_Kunden" MouseRightButtonUp="MenuItem_KundenRe"/>
                <TreeViewItem Name="TreeviewLieferanten" Header="Lieferanten" MouseLeftButtonUp="MenuItem_Lieferanten" MouseRightButtonUp="MenuItem_LieferantenRe"/>
                <TreeViewItem Name="TreeviewArchitekten" Header="Architekten" MouseLeftButtonUp="MenuItem_Architekten" MouseRightButtonUp="MenuItem_ArchitektenRe"/>
                <TreeViewItem Name="TreeviewMitarbeiter" Header="Mitarbeiter" MouseLeftButtonUp="MenuItem_Mitarbeiter" MouseRightButtonUp="MenuItem_MitarbeiterRe"/>
                <TreeViewItem  Name="TreeviewArtikel"  Header="Artikel">
                    <TreeViewItem Name="TreeviewArtikelBasisDaten" Header="Basisdaten" MouseLeftButtonUp="MenuItem_Artikel_Basisdaten" MouseRightButtonUp="MenuItem_Artikel_BasisdatenRe"/>
                    <TreeViewItem Name="TreeviewArtikelLagerBuchungen" Header="Lagerbuchungen" MouseLeftButtonUp="MenuItem_Artikel_Lagerbuchungen" MouseRightButtonUp="MenuItem_Artikel_LagerbuchungenRe"/>
                    <TreeViewItem Name="TreeviewArtikelKonditionen" Header="Konditionen" MouseLeftButtonUp="MenuItem_Artikel_Konditionen" MouseRightButtonUp="MenuItem_Artikel_KonditionenRe"/>
                    <TreeViewItem Name="TreeviewArtikelWarengruppen" Header="Warengruppen" MouseLeftButtonUp="MenuItem_Artikel_Warengruppen" MouseRightButtonUp="MenuItem_Artikel_WarengruppenRe"/>
                    <TreeViewItem Name="TreeviewArtikelEinkaufsrabatt" Header="Einkaufsrabatt" MouseLeftButtonUp="MenuItem_Artikel_Einkaufsrabatt" MouseRightButtonUp="MenuItem_Artikel_EinkaufsrabattRe"/>
                </TreeViewItem>
                <TreeViewItem Name="TreeviewTextbausteine"  Header="Textbausteine" MouseLeftButtonUp="MenuItem_Textbausteine" MouseRightButtonUp="MenuItem_TextbausteineRe" />
            </TreeViewItem>

            <TreeViewItem Name="TreeviewLichBasis"  Header="AddOns">
                <TreeViewItem Name="TreeviewTools"  Header="Tools" MouseLeftButtonUp="MenuItem_Tools" MouseRightButtonUp="MenuItem_ToolsRe"/>
            </TreeViewItem>
            
        </TreeView>

        <TextBox Height="23" HorizontalAlignment="Left" Margin="12,376,0,0" Name="textBox1" VerticalAlignment="Top" Width="332" />
        <Button Content="Sperren" Height="23" HorizontalAlignment="Left" Margin="251,12,0,0" Name="button1" VerticalAlignment="Top" Width="93" Click="button1_Click" />
        <Button Content="EntSperren" Height="23" HorizontalAlignment="Left" Margin="250,53,0,0" Name="button2" VerticalAlignment="Top" Width="93" Click="button2_Click" />
        <Button Content="Lösche WG" Height="23" HorizontalAlignment="Left" Margin="251,97,0,0" Name="button3" VerticalAlignment="Top" Width="92" Click="button3_Click" />
        <Button Content="Anzeigen WG" Height="23" HorizontalAlignment="Left" Margin="251,140,0,0" Name="button4" VerticalAlignment="Top" Width="92" Click="button4_Click" />
        <Label Content="Warengruppe/Konditionen klicken :-) + Re Maustaste!" Height="28" HorizontalAlignment="Left" Margin="12,405,0,0" Name="label1" VerticalAlignment="Top" Width="310" />
    </Grid>
</Window>
