Solved

Error            The attachable property 'Resources' was not found in type 'Window'.

Posted on 2009-05-05
1
4,992 Views
Last Modified: 2013-12-17
HI experts,
I am new to WPF, I AM GETTING THE ERROR
Error      1      The attachable property 'Resources' was not found in type 'Window'.      C:\Documents and Settings\anu\Local Settings\Application Data\Temporary Projects\TestApp\Window1.xaml      7      10      TestApp
in the following code
pls help me
thanks


<Window x:Class="TestApp.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Window1" Height="300" Width="300">
 
    <Grid>
        <Window.Resources>
 
 
            <Style TargetType="{x:Type TabItem}">
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type TabItem}">
                            <Grid>
                                <Border 
            Name="Border"
            Margin="-3,0,0,0" 
          
            
            BorderThickness="1,1,1,1" 
            CornerRadius="0,30,0,0" >
                                    <ContentPresenter x:Name="ContentSite"
              VerticalAlignment="Center"
              HorizontalAlignment="Center"
              ContentSource="Header"
              Margin="40,10,40,10"
              RecognizesAccessKey="True"/>
                                </Border>
                            </Grid>
                            <ControlTemplate.Triggers>
 
                                <Trigger Property="IsSelected" Value="True">
                                    <Setter Property="Panel.ZIndex" Value="400" />
                                    <Setter Property="Background" TargetName="Border" >
 
                                        <Setter.Value>
 
                                            <LinearGradientBrush StartPoint="0,0" EndPoint="0,0.75">
 
                                                <LinearGradientBrush.GradientStops>
 
                                                    <GradientStop Color="White" Offset="-1" />
 
                                                    <GradientStop Color="DodgerBlue" Offset="1" />
 
                                                </LinearGradientBrush.GradientStops>
 
                                            </LinearGradientBrush>
 
                                        </Setter.Value>
 
                                    </Setter>
                                    <Setter TargetName="Border" Property="BorderThickness" Value="2,2,2,0" />
                                </Trigger>
                                <Trigger Property="IsEnabled" Value="True">
                                    <Setter Property="Background" TargetName="Border">
 
                                        <Setter.Value>
 
                                            <LinearGradientBrush StartPoint="0,0" EndPoint="0,1.75">
 
                                                <LinearGradientBrush.GradientStops>
 
                                                    <GradientStop Color="DodgerBlue" Offset="0" />
 
                                                    <GradientStop Color="White" Offset="1" />
 
                                                </LinearGradientBrush.GradientStops>
 
                                            </LinearGradientBrush>
 
                                        </Setter.Value>
 
                                    </Setter>
                                    <Setter Property="Background" TargetName="Border">
 
                                        <Setter.Value>
 
                                            <LinearGradientBrush StartPoint="0,0" EndPoint="0,0.75">
 
                                                <LinearGradientBrush.GradientStops>
 
                                                    <GradientStop Color="DodgerBlue" Offset="0" />
 
                                                    <GradientStop Color="White" Offset="1" />
 
                                                </LinearGradientBrush.GradientStops>
 
                                            </LinearGradientBrush>
 
                                        </Setter.Value>
 
                                    </Setter>
                                    <Setter Property="Background" TargetName="Border">
 
                                        <Setter.Value>
 
                                            <LinearGradientBrush StartPoint="0,0" EndPoint="0,0.75">
 
                                                <LinearGradientBrush.GradientStops>
 
                                                    <GradientStop Color="DodgerBlue" Offset="0" />
 
                                                    <GradientStop Color="White" Offset="1" />
 
                                                </LinearGradientBrush.GradientStops>
 
                                            </LinearGradientBrush>
 
                                        </Setter.Value>
 
                                    </Setter>
                                </Trigger>
                            </ControlTemplate.Triggers>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
 
            <ControlTemplate x:Key="GlassButton" TargetType="{x:Type Button}">
                <ControlTemplate.Resources>
                    <Storyboard x:Key="Timeline1">
                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="glow" Storyboard.TargetProperty="(UIElement.Opacity)">
                            <SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1"/>
                        </DoubleAnimationUsingKeyFrames>
                    </Storyboard>
                    <Storyboard x:Key="Timeline2">
                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="glow" Storyboard.TargetProperty="(UIElement.Opacity)">
                            <SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0"/>
                        </DoubleAnimationUsingKeyFrames>
                    </Storyboard>
                </ControlTemplate.Resources>
                <Border BorderBrush="#FFFFFFFF" BorderThickness="1,1,1,1" CornerRadius="4,4,4,4">
                    <Border x:Name="border" Background="#7F000000" BorderBrush="#FF000000" BorderThickness="1,1,1,1" CornerRadius="4,4,4,4">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="0.507*"/>
                                <RowDefinition Height="0.493*"/>
                            </Grid.RowDefinitions>
                            <Border Opacity="0" HorizontalAlignment="Stretch" x:Name="glow" Width="Auto" Grid.RowSpan="2" CornerRadius="4,4,4,4">
                                <Border.Background>
                                    <RadialGradientBrush>
                                        <RadialGradientBrush.RelativeTransform>
                                            <TransformGroup>
                                                <ScaleTransform ScaleX="1.702" ScaleY="2.243"/>
                                                <SkewTransform AngleX="0" AngleY="0"/>
                                                <RotateTransform Angle="0"/>
                                                <TranslateTransform X="-0.368" Y="-0.152"/>
                                            </TransformGroup>
                                        </RadialGradientBrush.RelativeTransform>
                                        <GradientStop Color="#B28DBDFF" Offset="0"/>
                                        <GradientStop Color="#008DBDFF" Offset="1"/>
                                    </RadialGradientBrush>
                                </Border.Background>
                            </Border>
                            <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Width="Auto" Grid.RowSpan="2"/>
                            <Border HorizontalAlignment="Stretch" Margin="0,0,0,0" x:Name="shine" Width="Auto" CornerRadius="4,4,0,0">
                                <Border.Background>
                                    <LinearGradientBrush EndPoint="0.494,0.889" StartPoint="0.494,0.028">
                                        <GradientStop Color="#99FFFFFF" Offset="0"/>
                                        <GradientStop Color="#33FFFFFF" Offset="1"/>
                                    </LinearGradientBrush>
                                </Border.Background>
                            </Border>
                        </Grid>
                    </Border>
                </Border>
                <ControlTemplate.Triggers>
                    <Trigger Property="IsPressed" Value="True">
                        <Setter Property="Opacity" TargetName="shine" Value="0.4"/>
                        <Setter Property="Background" TargetName="border" Value="#CC000000"/>
                        <Setter Property="Visibility" TargetName="glow" Value="Hidden"/>
                    </Trigger>
                    <Trigger Property="IsMouseOver" Value="True">
                        <Trigger.EnterActions>
                            <BeginStoryboard Storyboard="{StaticResource Timeline1}"/>
                        </Trigger.EnterActions>
                        <Trigger.ExitActions>
                            <BeginStoryboard x:Name="Timeline2_BeginStoryboard" Storyboard="{StaticResource Timeline2}"/>
                        </Trigger.ExitActions>
                    </Trigger>
                </ControlTemplate.Triggers>
            </ControlTemplate>
        </Window.Resources>
 
        <Grid x:Name="LayoutRoot">
 
            <Grid.Background>
                <LinearGradientBrush EndPoint="0.486,0.986" StartPoint="0.486,0">
                    <GradientStop Color="#FF000000" Offset="0"/>
                    <GradientStop Color="#FFD0D0D0" Offset="1"/>
                    <GradientStop Color="#FF8D8D8D" Offset="0.558"/>
                    <GradientStop Color="#FF8D8D8D" Offset="0.76"/>
                    <!--<GradientStop Color="#FF747474" Offset="0.615"/>-->
                </LinearGradientBrush>
            </Grid.Background>
            <Button Margin="296,12,397,0" Name="btnSetup" VerticalAlignment="Top" Height="85" Content="Setup" ToolTip="Click to setup Clients" FontSize="15" Foreground="#FFFFFFFF" Template="{DynamicResource GlassButton}" Click="btnSetup_Click" />
 
            <Button Foreground="White" Name="btnReports" Height="85" Margin="0,12,275,0" Content="Reports" FontSize="15" Template="{DynamicResource GlassButton}" VerticalAlignment="Top"  HorizontalAlignment="Right" Width="104" Click="btnReports_Click"></Button>
            <Button Foreground="White" Name="btnNotes" Height="85" HorizontalAlignment="Right" Margin="0,12,150,0" Content="Notes" FontSize="15" Template="{DynamicResource GlassButton}" VerticalAlignment="Top" Width="104" Click="btnNotes_Click"></Button>
            <TabControl Height="471"  Margin="0,117.723,0,-2.723" Width="798" Name="tcSetup" >
                <TabItem Header="Clients" Name="tiClients" ToolTip="Add or edit Client Information" GotFocus="tiClients_GotFocus">
 
                    <Grid x:Name="TabOne" Height="426" Width="787" Loaded="TabOne_Loaded">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="79.992*" />
                            <ColumnDefinition Width="220.887*" />
                            <ColumnDefinition Width="202.121*" />
                            <ColumnDefinition Width="284*" />
                        </Grid.ColumnDefinitions>
                        <Grid.Background>
                            <LinearGradientBrush EndPoint="0.486,0.986" StartPoint="0.486,0">
                                <GradientStop Color="White" Offset="0"/>
                                <GradientStop Color="White" Offset="1"/>
                                <GradientStop Color="DodgerBlue" Offset="0.558"/>
                                <GradientStop Color="DodgerBlue" Offset="0.76"/>
                                <!--<GradientStop Color="SkyBlue" Offset="0.615"/>-->
                            </LinearGradientBrush>
                        </Grid.Background>
                        <Button FontSize="12" Foreground="White" Name="btnClient_new" Content="New" Height="30" HorizontalAlignment="Left" Margin="23,0,0,25" Template="{DynamicResource GlassButton}" VerticalAlignment="Bottom" Width="88" ToolTip="Add New Client" Grid.ColumnSpan="2" Click="btnClient_new_Click"></Button>
                        <Button FontSize="12" Foreground="White" Name="btnClient_Edit" Height="30" Margin="52.008,0,80.879,25" Content="Edit" Template="{DynamicResource GlassButton}" VerticalAlignment="Bottom" ToolTip="Edit Existing Client Information " Grid.Column="1" Click="btnClient_Edit_Click"></Button>
                        <Button FontSize="12" Foreground="White" Name="btnClient_Delete" Height="30" Margin="153.008,0,182,25" Content="Delete" Template="{DynamicResource GlassButton}" VerticalAlignment="Bottom" ToolTip="Delete existing Client" Grid.ColumnSpan="2" Grid.Column="1" Click="btnClient_Delete_Click"></Button>
                        <Button FontSize="12" Foreground="White" Name="btnClient_Save" Height="30" Margin="32.121,0,76,25" Content="Save" Template="{DynamicResource GlassButton}" VerticalAlignment="Bottom" ToolTip="Save Client related information" Grid.Column="2" Click="btnClient_Save_Click"></Button>
                        <Button FontSize="12" Foreground="White" Name="btnClient_Addnotes" Height="30" HorizontalAlignment="Left" Margin="18,0,0,25" Content="Add Notes" Template="{DynamicResource GlassButton}" VerticalAlignment="Bottom" Width="88" Grid.Column="3" ToolTip="Add Notes" Click="btnClient_Addnotes_Click"></Button>
                        <Button FontSize="12" Foreground="White" Name="btnClient_AddAtachments" Height="30" Margin="120.999,0,22.001,25" Content="Add Attachements" Template="{DynamicResource GlassButton}" VerticalAlignment="Bottom" Grid.Column="3" ToolTip="Add atachments" Click="btnClient_AddAtachments_Click"></Button>
                        <Label FontSize="12" Height="28" Margin="0,25,17.879,0" Name="label1" VerticalAlignment="Top" Content="Client Name " HorizontalAlignment="Right" Width="85" Grid.Column="1"></Label>
                        <Label FontSize="12" HorizontalAlignment="Left" Margin="41,93,0,0" Name="label2" Content="Address   : " Width="88" Height="27.723" VerticalAlignment="Top" Grid.ColumnSpan="2"></Label>
                        <Label FontSize="12" Height="28" HorizontalAlignment="Left" Margin="41,59,0,0" Name="label3" VerticalAlignment="Top" Content="Client      :"  Width="70" Grid.ColumnSpan="2"></Label>
                        <Label FontSize="12" Height="28" Margin="47.008,25,0,0" Name="label4" VerticalAlignment="Top" Content="No" Grid.Column="1" HorizontalAlignment="Left" Width="47"></Label>
                        <TextBox Height="23" Margin="28.008,59,0,0" Text="{Binding Path=txtClient_no, UpdateSourceTrigger=PropertyChanged}"  VerticalAlignment="Top" Grid.Column="1" HorizontalAlignment="Left" Width="71" TextInput="txtClient_no_TextInput" />
                        <TextBox Margin="28.008,93,47.879,210" Text="{Binding Path=txtClientAddress, UpdateSourceTrigger=PropertyChanged}" Grid.Column="1" />
                        <Label Height="28" Margin="186.681,96,165,0" Name="label5" Content="Telephone : " VerticalAlignment="Top" Grid.ColumnSpan="2" Grid.Column="1"></Label>
                        <Label Height="28" Margin="186.681,126,165,0" Name="label6" VerticalAlignment="Top" Content="Fax           :" Grid.ColumnSpan="2" Grid.Column="1"></Label>
                        <Label Margin="187.681,160,164,0" Name="label7" Height="26" VerticalAlignment="Top" Content="Mobile       :" Grid.ColumnSpan="2" Grid.Column="1"></Label>
                        <Label Margin="186.681,192,165,205" Content="Email         :" Name="label8" Grid.ColumnSpan="2" Grid.Column="1"></Label>
                        <TextBox Height="23" Margin="43.794,97,28,0" Name="txtClient_telno" VerticalAlignment="Top" Grid.Column="2" />
                        <TextBox Height="23" Margin="43.794,126,28,0" Name="txtClient_faxno" VerticalAlignment="Top" Grid.Column="2" />
                        <TextBox Height="23" Margin="43.794,158,28,0" Name="txtClient_mobileno" VerticalAlignment="Top" Grid.Column="2" />
                        <TextBox Margin="43.794,192,28,211" Name="txtClient_email" Grid.Column="2" />
                        <Label FontSize="12" Height="27.723" HorizontalAlignment="Left" Margin="12,0,0,122" Name="label9" Content="Linked Clients   :" VerticalAlignment="Bottom" Width="99" Grid.ColumnSpan="2"></Label>
                        <Label FontSize="12" Height="28" Margin="37.008,0,0,149" Name="label10" VerticalAlignment="Bottom" Grid.Column="1" HorizontalAlignment="Left" Width="47">No</Label>
                        <Label FontSize="12" Height="28" Margin="0,0,17.879,149" Name="label11" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="85" Grid.Column="1">Client Name</Label>
                        <TextBox Height="23" Margin="31.008,0,0,120" Name="txtLinked_clientno1" VerticalAlignment="Bottom" Grid.Column="1" HorizontalAlignment="Left" Width="71" />
                        <TextBox Height="23" Margin="31.008,0,0,85" Name="txtLinked_clientno2" VerticalAlignment="Bottom" Grid.Column="1" HorizontalAlignment="Left" Width="71" />
                        <TextBox Margin="108.008,0,129,85" Name="textBox11" Height="23" VerticalAlignment="Bottom" Grid.ColumnSpan="2" Grid.Column="1" />
                        <TextBox Height="23" Margin="40,39,114,0" Name="txtLtdCo_nonAudit" VerticalAlignment="Top" Grid.Column="3" IsReadOnly="True">Ltd Co. Non Audit</TextBox>
                        <TextBox Height="23" Margin="40,68,114,0" Name="txtLtdCo_Audit" VerticalAlignment="Top" Grid.Column="3" IsReadOnly="True">Limited Co-Audit</TextBox>
                        <TextBox Height="23" Margin="40,97,114,0" Name="txtSolo_Patnership" VerticalAlignment="Top" Grid.Column="3" IsReadOnly="True">Sole Trade\ Patnership</TextBox>
                        <TextBox Height="23" Margin="39,126,114,0" Name="txtVat" VerticalAlignment="Top" Grid.Column="3" IsReadOnly="True">VAT</TextBox>
                        <TextBox Margin="39,155,114,0" Name="txtPay" Grid.Column="3" Height="23" VerticalAlignment="Top" IsReadOnly="True">PAY</TextBox>
                        <TextBox Height="23" Margin="39,184,114,0" Name="txtP11d" VerticalAlignment="Top" Grid.Column="3" IsReadOnly="True">P11D</TextBox>
                        <TextBox Margin="39,213,115,190" Name="txtMainAccounts" Grid.Column="3" IsReadOnly="True">Main Accounts</TextBox>
                        <TextBox Height="23" Margin="40,0,114,161" Name="txtTaxreturns" VerticalAlignment="Bottom" Grid.Column="3" IsReadOnly="True">Tax Returns</TextBox>
                        <Label FontSize="12" Height="27.723" HorizontalAlignment="Left" Margin="182.121,0,0,113" Name="label12" VerticalAlignment="Bottom" Width="54" Content="Patner  :" Grid.ColumnSpan="2" Grid.Column="2"></Label>
                        <Label FontSize="12" Height="25" HorizontalAlignment="Left" Margin="183.121,0,0,82" Name="label13" Content="Staff    :" VerticalAlignment="Bottom" Width="54" Grid.ColumnSpan="2" Grid.Column="2"></Label>
                        <ComboBox Grid.Column="3" Height="23" Margin="40,0,58,118" Name="cbPatner" VerticalAlignment="Bottom" />
                        <ComboBox Height="23" Margin="41,0,57,84" Name="cbStaff" VerticalAlignment="Bottom" Grid.Column="3" />
                        <ComboBox Height="23" Margin="105.008,59,132,0" Name="cbClient_name" VerticalAlignment="Top" Grid.ColumnSpan="2" Grid.Column="1" />
                        <TextBox Height="23" HorizontalAlignment="Right" Margin="0,39,74,0" Name="txtLtd_nonauditfee" VerticalAlignment="Top" Width="37" Grid.Column="3" />
                        <TextBox Height="23" HorizontalAlignment="Right" Margin="0,68,73,0" Name="txtltd_auditfee" VerticalAlignment="Top" Width="37" Grid.Column="3" />
                        <TextBox Height="23" HorizontalAlignment="Right" Margin="0,97,73,0" Name="txtSolo_Pfee" VerticalAlignment="Top" Width="37" Grid.Column="3" />
                        <TextBox Height="23" HorizontalAlignment="Right" Margin="0,126,73,0" Name="txtVatfee" VerticalAlignment="Top" Width="37" Grid.Column="3" />
                        <TextBox Height="23" HorizontalAlignment="Right" Margin="0,155,73,0" Name="txtPayfee" VerticalAlignment="Top" Width="37" Grid.Column="3" />
                        <TextBox Height="23" HorizontalAlignment="Right" Margin="0,184,73,0" Name="txtP11dfee" VerticalAlignment="Top" Width="37" Grid.Column="3" />
                        <TextBox HorizontalAlignment="Right" Margin="0,213,73,190" Name="txtMainactfee" Width="37" Grid.Column="3" />
                        <TextBox Height="23" HorizontalAlignment="Right" Margin="0,0,73,161" Name="txtTaxreturnsfee" VerticalAlignment="Bottom" Width="37" Grid.Column="3" />
                        <TextBox Height="23" HorizontalAlignment="Right" Margin="0,39,31,0" Name="txtLtdnoaudit_YE" VerticalAlignment="Top" Width="37" Text="Y/E"  Grid.Column="3" IsReadOnly="True" />
                        <TextBox Height="23" HorizontalAlignment="Right" Margin="0,68,30,0" Name="txtLtdaudit_YE" VerticalAlignment="Top" Width="37" Text="Y/E" Grid.Column="3" IsReadOnly="True" />
                        <TextBox HorizontalAlignment="Right" Margin="0,97,30,306" Name="txtSolo_YE" Width="37"  Text="Y/E" Grid.Column="3" IsReadOnly="True" />
                        <TextBox Height="23" HorizontalAlignment="Right" Margin="0,0,30,277" Name="txtVat_PE" VerticalAlignment="Bottom" Width="37" Text="P/E" Grid.Column="3" IsReadOnly="True" />
                        <TextBox HorizontalAlignment="Right" Margin="0,213,30,190" Name="txtMainact_PE" Width="37" Text="P/E" Grid.Column="3" IsReadOnly="True" />
                        <TextBox HorizontalAlignment="Right" Margin="0,0,30,161" Name="txtTaxreturns_YE" Width="37" Text="Y/E"  Grid.Column="3" Height="23" VerticalAlignment="Bottom" IsReadOnly="True" />
                        <ComboBox Height="23" Margin="108.008,0,129,120" Name="cbLinked_client1" VerticalAlignment="Bottom" Grid.ColumnSpan="2" Grid.Column="1" />
                        <CheckBox Grid.Column="3" HorizontalAlignment="Left" Margin="23,44,0,366" Name="chkLtd_nonAudit" Width="18"></CheckBox>
                        <CheckBox Height="16" HorizontalAlignment="Left" Margin="23,73,0,0" Name="chkLtdAudit" VerticalAlignment="Top" Width="18" Grid.Column="3" />
                        <CheckBox Height="16" HorizontalAlignment="Left" Margin="23,102,0,0" Name="chkSolo_patner" VerticalAlignment="Top" Width="18" Grid.Column="3" />
                        <CheckBox Height="16" HorizontalAlignment="Left" Margin="23,130,0,0" Name="chkVat" VerticalAlignment="Top" Width="18" Grid.Column="3" />
                        <CheckBox Height="16" HorizontalAlignment="Left" Margin="22,160,0,0" Name="chkPay" VerticalAlignment="Top" Width="18" Grid.Column="3" />
                        <CheckBox Height="16" HorizontalAlignment="Left" Margin="22,188,0,0" Name="chkP11d" VerticalAlignment="Top" Width="18" Grid.Column="3" />
                        <CheckBox Height="16" HorizontalAlignment="Left" Margin="22,0,0,191" Name="chkMainacts" VerticalAlignment="Bottom" Width="18" Grid.Column="3" />
                        <CheckBox Height="16" HorizontalAlignment="Left" Margin="22,0,0,164" Name="chkTaxreturns" VerticalAlignment="Bottom" Width="18" Grid.Column="3" />
                        <TextBox Grid.ColumnSpan="2" Height="23" Margin="105,59,132,0" Name="txtClient_name" VerticalAlignment="Top" Grid.Column="1" Visibility="Hidden" />
                        <CheckBox Height="15" Margin="0,0,0,101" Name="chkLinked_clients" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="17.992" Checked="chkLinked_clients_Checked"></CheckBox>
                    </Grid>
                </TabItem>
                <TabItem Header="Alert-Setup" Name="tiAlertSetup" ToolTip="Setup Alerts" >
                    <Grid x:Name="TabTwo" Height="426" Width="787">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="457*" />
                            <ColumnDefinition Width="330*" />
                        </Grid.ColumnDefinitions>
                        <Grid.Background>
                            <LinearGradientBrush EndPoint="0.486,0.986" StartPoint="0.486,0">
                                <GradientStop Color="White" Offset="0"/>
                                <GradientStop Color="White" Offset="1"/>
                                <GradientStop Color="DodgerBlue" Offset="0.558"/>
                                <GradientStop Color="DodgerBlue" Offset="0.76"/>
                                <!--<GradientStop Color="SkyBlue" Offset="0.615"/>-->
                            </LinearGradientBrush>
                        </Grid.Background>
                        <Label FontSize="12" Height="28" HorizontalAlignment="Left" Margin="38,62,0,0" Name="label15" VerticalAlignment="Top" Width="70">Client :</Label>
                        <TextBox Height="23" HorizontalAlignment="Left" Margin="105,62,0,0" Name="textBox9" VerticalAlignment="Top" Width="71" />
                        <ComboBox Height="23" Margin="182,62,135,0" Name="comboBox5" VerticalAlignment="Top" />
                        <Label FontSize="12" Height="28" Margin="195,28,223,0" Name="label14" VerticalAlignment="Top">Client Name</Label>
                        <Label FontSize="12" Height="28" HorizontalAlignment="Left" Margin="38,62,0,0" Name="label16" VerticalAlignment="Top" Width="61" Content="Client" ></Label>
                        <Label FontSize="12" Height="28" HorizontalAlignment="Left" Margin="124,28,0,0" Name="label17" VerticalAlignment="Top" Width="47">No</Label>
                        <TextBox Height="23" HorizontalAlignment="Left" Margin="105,62,0,0" Name="textBox31" VerticalAlignment="Top" Width="71" />
                        <ComboBox Height="23" Margin="182,62,135,0" Name="comboBox6" VerticalAlignment="Top" />
                        <Label FontSize="12" Height="28" HorizontalAlignment="Left" Margin="38,130,0,0" Name="label18" VerticalAlignment="Top" Width="70">Type</Label>
                        <TextBox Height="23" Margin="105,130,182,0" Name="textBox32" VerticalAlignment="Top">Limited Company, no adults</TextBox>
                        <RadioButton Height="20" HorizontalAlignment="Left" IsChecked="True" Margin="85,136,0,0" Name="radioButton9" VerticalAlignment="Top" Width="14" />
                        <Button FontSize="12" Foreground="White" HorizontalAlignment="Left" Margin="43,193,0,203" Template="{DynamicResource GlassButton}" Width="88">Add</Button>
                        <Button FontSize="12" Foreground="White" HorizontalAlignment="Left" Margin="147,193,0,203" Template="{DynamicResource GlassButton}" Width="88">Edit</Button>
                        <Button FontSize="12" Foreground="White" Margin="0,193,135,203" Template="{DynamicResource GlassButton}" HorizontalAlignment="Right" Width="74">Delete</Button>
                        <TextBox Height="23" Margin="105,0,182,141" Name="textBox35" VerticalAlignment="Bottom">P11D's</TextBox>
                        <RadioButton Height="20" HorizontalAlignment="Left" IsChecked="True" Margin="85,0,0,138" Name="radioButton10" VerticalAlignment="Bottom" Width="14" />
                        <Button FontSize="12" Foreground="White" Height="30" HorizontalAlignment="Left" Margin="43,0,0,71" Template="{DynamicResource GlassButton}" VerticalAlignment="Bottom" Width="88">Add</Button>
                        <Button FontSize="12" Foreground="White" Height="30" HorizontalAlignment="Left" Margin="147,0,0,71" Template="{DynamicResource GlassButton}" VerticalAlignment="Bottom" Width="88">Edit</Button>
                        <Button FontSize="12" Foreground="White" Height="30" Margin="0,0,135,71" Template="{DynamicResource GlassButton}" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="74">Delete</Button>
                        <TextBox Height="23" Margin="0,140,140,0" Name="textBox36" VerticalAlignment="Top" Grid.Column="1" HorizontalAlignment="Right" Width="71">7</TextBox>
                        <TextBox Height="23" Margin="0,94,140,0" Name="textBox37" VerticalAlignment="Top" Grid.Column="1" HorizontalAlignment="Right" Width="71">-30</TextBox>
                        <Label FontSize="12" Height="28" HorizontalAlignment="Left" Margin="41,92,0,0" Name="label19" VerticalAlignment="Top" Width="77" ContentStringFormat="Alerts" Content="Alerts        :" Grid.Column="1"></Label>
                        <Label FontSize="12" Height="28" HorizontalAlignment="Left" Margin="41,138,0,0" Name="label20" VerticalAlignment="Top" Width="78" Grid.Column="1">Frequency :</Label>
 
                        <Button Margin="0,91,121,0" Grid.Column="1" Height="16" HorizontalAlignment="Right" VerticalAlignment="Top" Width="19" Template="{DynamicResource GlassButton}">
                            <Path Fill="Black" Data="M 0 6 L 12 6 L 6 0 Z"/>
                        </Button>
                        <Button Margin="0,106,121,0" Grid.Column="1" HorizontalAlignment="Right" Width="19" Height="14" VerticalAlignment="Top" Template="{DynamicResource GlassButton}">
                            <Path Fill="Black" Data="M 0 0 L 6 6 L 12 0 Z"/>
                        </Button>
                        <Button Height="16" HorizontalAlignment="Right" Margin="0,138,121,0" VerticalAlignment="Top" Width="19" Grid.Column="1" Template="{DynamicResource GlassButton}">
                            <Path Data="M0,6L12,6 6,0z" Fill="Black" />
                        </Button>
                        <Button Height="14" HorizontalAlignment="Right" Margin="0,153,121,0" VerticalAlignment="Top" Width="19" Grid.Column="1" Template="{DynamicResource GlassButton}">
                            <Path Data="M0,0L6,6 12,0z" Fill="Black" />
                        </Button>
                        <Button FontSize="12" Foreground="White" Height="30" Margin="155.439,0,80.901,78.174" Template="{DynamicResource GlassButton}" VerticalAlignment="Bottom" Grid.Column="1">Edit</Button>
                        <Button FontSize="12" Foreground="White" Height="30" Margin="155.439,0,80.901,31.815" Template="{DynamicResource GlassButton}" VerticalAlignment="Bottom" Grid.Column="1">Delete</Button>
                        <Button FontSize="12" Foreground="White" Height="30" Margin="155.439,0,80.901,126.351" Template="{DynamicResource GlassButton}" VerticalAlignment="Bottom" Grid.Column="1">Save</Button>
                        <Button FontSize="12" Foreground="White" Margin="155.439,0,80.901,171.801" Template="{DynamicResource GlassButton}" Grid.Column="1" Height="29.676" VerticalAlignment="Bottom">New</Button>
                    </Grid>
                </TabItem>
                <TabItem Header="Staff"  Name="tiStaff" >
                    <Grid x:Name="TabThree" Height="426" Width="787">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="457*" />
                            <ColumnDefinition Width="330*" />
                        </Grid.ColumnDefinitions>
                        <Grid.Background>
                            <LinearGradientBrush EndPoint="0.486,0.986" StartPoint="0.486,0">
                                <GradientStop Color="White" Offset="0"/>
                                <GradientStop Color="White" Offset="1"/>
                                <GradientStop Color="DodgerBlue" Offset="0.558"/>
                                <GradientStop Color="DodgerBlue" Offset="0.76"/>
                                <!--<GradientStop Color="SkyBlue" Offset="0.615"/>-->
                            </LinearGradientBrush>
                        </Grid.Background>
                        <Label Height="28" Margin="25,99,0,0" Name="label21" VerticalAlignment="Top" HorizontalAlignment="Left" Width="103">Partner            :</Label>
                        <Label Height="28" Margin="133,65,221,0" Name="label22" VerticalAlignment="Top">Partner Name</Label>
                        <ComboBox Height="23" Margin="119,99,206,0" Name="comboBox7" VerticalAlignment="Top" />
                        <Label Height="28" HorizontalAlignment="Left" Margin="25,142,0,0" Name="label23" VerticalAlignment="Top" Width="103">Partner E-Mail  :</Label>
                        <TextBox Height="23" Margin="119,142,206,0" Name="textBox38" VerticalAlignment="Top" />
                        <Label Height="28" HorizontalAlignment="Right" Margin="0,99,277,0" Name="label24" VerticalAlignment="Top" Width="103" Grid.ColumnSpan="2">Staff           :</Label>
                        <Label Height="28" Margin="45,65,0,0" Name="label25" VerticalAlignment="Top" Grid.Column="1" HorizontalAlignment="Left" Width="103">Staff Name</Label>
                        <ComboBox Height="23" Margin="31,99,0,0" Name="comboBox8" VerticalAlignment="Top" Grid.Column="1" HorizontalAlignment="Left" Width="132" />
                        <Label Height="28" HorizontalAlignment="Right" Margin="0,142,277,0" Name="label26" VerticalAlignment="Top" Width="103" Grid.ColumnSpan="2">Staff  E-Mail :</Label>
                        <TextBox Height="23" Margin="31,142,0,0" Name="textBox39" VerticalAlignment="Top" Grid.Column="1" HorizontalAlignment="Left" Width="132" />
                        <ComboBox Height="23" HorizontalAlignment="Right" Margin="0,99,15,0" Name="comboBox9" VerticalAlignment="Top" Width="132" Grid.Column="1" />
                        <Label Height="28" HorizontalAlignment="Right" Margin="0,65,44,0" Name="label27" VerticalAlignment="Top" Width="103" Grid.Column="1">Linked to Partner</Label>
                        <Button FontSize="12" Foreground="White" Margin="33,0,0,145" Template="{DynamicResource GlassButton}" ToolTip="Add New Client" HorizontalAlignment="Left" Width="63" Height="30" VerticalAlignment="Bottom">New</Button>
                        <Button FontSize="12" Foreground="White" Margin="171,0,222,145" Template="{DynamicResource GlassButton}" ToolTip="Edit Existing Client Information " Height="30" VerticalAlignment="Bottom">Edit</Button>
                        <Button FontSize="12" Foreground="White" Margin="102,0,0,145" Template="{DynamicResource GlassButton}" ToolTip="Delete existing Client" HorizontalAlignment="Left" Width="63" Height="30" VerticalAlignment="Bottom">Delete</Button>
                        <Button FontSize="12" Foreground="White" Margin="0,0,152,145" Template="{DynamicResource GlassButton}" ToolTip="Save Client related information" HorizontalAlignment="Right" Width="64" Height="30" VerticalAlignment="Bottom">Save</Button>
                        <Button FontSize="12" Foreground="White" HorizontalAlignment="Right" Margin="0,0,273,148" Template="{DynamicResource GlassButton}" ToolTip="Add New Client" Width="63" Grid.ColumnSpan="2" Height="30" VerticalAlignment="Bottom">New</Button>
                        <Button FontSize="12" Foreground="White" Margin="132,0,134,148" Template="{DynamicResource GlassButton}" ToolTip="Edit Existing Client Information " Grid.Column="1" Height="30" VerticalAlignment="Bottom">Edit</Button>
                        <Button FontSize="12" Foreground="White" HorizontalAlignment="Left" Margin="63,0,0,148" Template="{DynamicResource GlassButton}" ToolTip="Delete existing Client" Width="63" Grid.Column="1" Height="30" VerticalAlignment="Bottom">Delete</Button>
                        <Button FontSize="12" Foreground="White" HorizontalAlignment="Right" Margin="0,0,64,148" Template="{DynamicResource GlassButton}" ToolTip="Save Client related information" Width="64" Grid.Column="1" Height="30" VerticalAlignment="Bottom">Save</Button>
                    </Grid>
 
                </TabItem>
                <TabItem Header="Templates" Name="tiTemplates" >
                    <Grid x:Name="TabFour" Height="426" Width="787">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="457*" />
                            <ColumnDefinition Width="330*" />
                        </Grid.ColumnDefinitions>
                        <Grid.Background>
                            <LinearGradientBrush EndPoint="0.486,0.986" StartPoint="0.486,0">
                                <GradientStop Color="White" Offset="0"/>
                                <GradientStop Color="White" Offset="1"/>
                                <GradientStop Color="DodgerBlue" Offset="0.558"/>
                                <GradientStop Color="DodgerBlue" Offset="0.76"/>
                                <!--<GradientStop Color="SkyBlue" Offset="0.615"/>-->
                            </LinearGradientBrush>
                        </Grid.Background>
                        <Label Height="28" HorizontalAlignment="Left" Margin="28,34,0,0" Name="label28" VerticalAlignment="Top" Width="120">Templates</Label>
                        <ComboBox Height="23" HorizontalAlignment="Left" Margin="94.327,34,0,0" Name="comboBox1" VerticalAlignment="Top" Width="120" />
                        <Label Height="28" HorizontalAlignment="Left" Margin="28,96,0,0" Name="label29" VerticalAlignment="Top" Width="120">Tasks</Label>
                        <Button FontSize="12" Foreground="White" Height="30" HorizontalAlignment="Left" Margin="115.446,0,0,29" Template="{DynamicResource GlassButton}" ToolTip="Add New Client" VerticalAlignment="Bottom" Width="64">New</Button>
                        <Button FontSize="12" Foreground="White" Height="30" Margin="193,0,200,29" Template="{DynamicResource GlassButton}" ToolTip="Edit Existing Client Information " VerticalAlignment="Bottom" Width="64">Edit</Button>
                        <Button FontSize="12" Foreground="White" Height="30" Margin="0,367,124,0" Template="{DynamicResource GlassButton}" ToolTip="Delete existing Client" VerticalAlignment="Top" HorizontalAlignment="Right" Width="64">Delete</Button>
                        <Button FontSize="12" Foreground="White" Height="30" Margin="0,0,45,29" Template="{DynamicResource GlassButton}" ToolTip="Save Client related information" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="64">Save</Button>
                        <ListView Name="ListViewAuthorDetails" Grid.ColumnSpan="2" Margin="94.327,96,220.673,125" Grid.Column="0" >
                            <ListView.View>
                                <GridView>
                                    <GridViewColumn Header="Narrative" Width="200" />
                                    <GridViewColumn Header="Default Timing +/-" Width="200"/>
                                    <GridViewColumn Width="80">
                                        <GridViewColumn.CellTemplate>
                                            <DataTemplate x:Name="btnUpDown">
 
                                            </DataTemplate>
                                        </GridViewColumn.CellTemplate>
                                    </GridViewColumn>
                                </GridView>
                            </ListView.View>
                        </ListView>
                    </Grid>
                </TabItem>
            </TabControl>
            <Image Height="75" Margin="12,12,0,0" Name="imgLogo" Stretch="Fill" VerticalAlignment="Top" HorizontalAlignment="Left" Width="207.827" Source="/easypeasy;component/Images/logo7-1.jpg" />
            <Button FontSize="15" Foreground="White" Name="btnActions" Height="85" HorizontalAlignment="Right" Margin="0,12,25,0" Template="{DynamicResource GlassButton}" VerticalAlignment="Top" Width="104" Click="btnActions_Click">Actions</Button>
            <TabControl Height="475.723" Margin="3.625,120.5,-6.375,-10.223" Name="tcNotes" Width="800.75">
                <TabItem Header="Notes" Name="tabItem1">
                    <Grid Height="426" Name="grid1" Width="787">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="457*" />
                            <ColumnDefinition Width="330*" />
                        </Grid.ColumnDefinitions>
                        <Grid.Background>
                            <LinearGradientBrush EndPoint="0.486,0.986" StartPoint="0.486,0">
                                <GradientStop Color="White" Offset="0" />
                                <GradientStop Color="White" Offset="1" />
                                <GradientStop Color="DodgerBlue" Offset="0.558" />
                                <GradientStop Color="DodgerBlue" Offset="0.76" />
                            </LinearGradientBrush>
                        </Grid.Background>
                        <Label Height="28" HorizontalAlignment="Left" Margin="51,42.638,0,0" Name="label33" VerticalAlignment="Top" Width="120">Clients</Label>
                        <ComboBox Height="23" Margin="117,42.139,168,0" Name="comboBox10" VerticalAlignment="Top" />
                        <Button FontSize="12" Foreground="White" Margin="96,0,146,39" Name="button2" Template="{DynamicResource GlassButton}" ToolTip="Add New Client" Grid.Column="1" Height="30" VerticalAlignment="Bottom">Export</Button>
                        <Button FontSize="12" Foreground="White" Height="30" Margin="0,0,33,39" Name="button3" Template="{DynamicResource GlassButton}" ToolTip="Add New Client" VerticalAlignment="Bottom" Grid.Column="1" HorizontalAlignment="Right" Width="88">Print</Button>
                        <Button FontSize="12" Foreground="White" Margin="37,0,0,39" Name="button4" Template="{DynamicResource GlassButton}" ToolTip="Add New Client" Height="30" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="88">Save</Button>
                        <Button FontSize="12" Foreground="White" Height="30" HorizontalAlignment="Right" Margin="0,0,256,39" Name="button5" Template="{DynamicResource GlassButton}" ToolTip="Add New Client" VerticalAlignment="Bottom" Width="88" Grid.ColumnSpan="2">Add</Button>
                        <ListView Name="ListViewClientDetails" Grid.ColumnSpan="2" Margin="57,90.638,299,130.362">
                            <ListView.View>
                                <GridView>
                                    <GridViewColumn Header="Date" Width="80" />
                                    <GridViewColumn Header="Notes" Width="345" />
                                </GridView>
                            </ListView.View>
                        </ListView>
                    </Grid>
                </TabItem>
            </TabControl>
            <TabControl Height="475.723" Margin="2.617,120.5,-5.367,-10.223" Name="tcReports" Width="800.75">
                <TabItem Header="Reports" Name="t">
                    <Grid x:Name="Reports" Height="426" Width="787">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="457*" />
                            <ColumnDefinition Width="330*" />
                        </Grid.ColumnDefinitions>
                        <Grid.Background>
                            <LinearGradientBrush EndPoint="0.486,0.986" StartPoint="0.486,0">
                                <GradientStop Color="White" Offset="0" />
                                <GradientStop Color="White" Offset="1" />
                                <GradientStop Color="DodgerBlue" Offset="0.558" />
                                <GradientStop Color="DodgerBlue" Offset="0.76" />
                                <!--<GradientStop Color="SkyBlue" Offset="0.615"/>-->
                            </LinearGradientBrush>
                        </Grid.Background>
                        <Label Height="28" HorizontalAlignment="Left" Margin="10,10,0,0" Name="label30" VerticalAlignment="Top" Width="120">Clients</Label>
                        <ComboBox Height="23" HorizontalAlignment="Left" Margin="76,9.501,0,0" Name="comboBox2" VerticalAlignment="Top" Width="120" />
                        <Label Height="28" HorizontalAlignment="Left" Margin="11.004,44,0,0" Name="label31" VerticalAlignment="Top" Width="120">Partners</Label>
                        <ComboBox Height="23" Margin="76,44,0,0" Name="comboBox3" VerticalAlignment="Top" HorizontalAlignment="Left" Width="120" />
                        <Label Height="28" HorizontalAlignment="Right" Margin="0,43,83,0" Name="label32" VerticalAlignment="Top" Width="120">Staff</Label>
                        <ComboBox Height="23" HorizontalAlignment="Right" Margin="0,43,18,0" Name="comboBox4" VerticalAlignment="Top" Width="120" />
                        <Button FontSize="12" Foreground="White" Height="30" Margin="86,39,156,0" Name="button1" Template="{DynamicResource GlassButton}" ToolTip="Add New Client" VerticalAlignment="Top" Grid.Column="1">GO</Button>
                        <Button FontSize="12" Foreground="White" Height="30" Margin="0,0,54,40" Name="button6" Template="{DynamicResource GlassButton}" ToolTip="Add New Client" VerticalAlignment="Bottom" Grid.Column="1" HorizontalAlignment="Right" Width="88">Print</Button>
                        <Button FontSize="12" Foreground="White" Height="30" Margin="72,0,0,40" Name="button7" Template="{DynamicResource GlassButton}" ToolTip="Add New Client" VerticalAlignment="Bottom" Grid.Column="1" HorizontalAlignment="Left" Width="88">Export</Button>
                    </Grid>
                </TabItem>
            </TabControl>
        </Grid>
        
 
    </Grid>
</Window>

Open in new window

0
Comment
Question by:APPIREDDY
1 Comment
 
LVL 16

Accepted Solution

by:
CuteBug earned 500 total points
ID: 24303477
You have defined the Resources for this Window within the Grid tag, whereas it should be outside the Grid tag.
Use the attached code below.
<Window x:Class="TestApp.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Window1" Height="300" Width="300">
 
    
        <Window.Resources> 
            <Style TargetType="{x:Type TabItem}">
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type TabItem}">
                            <Grid>
                                <Border 
            Name="Border"
            Margin="-3,0,0,0" 
          
            
            BorderThickness="1,1,1,1" 
            CornerRadius="0,30,0,0" >
                                    <ContentPresenter x:Name="ContentSite"
              VerticalAlignment="Center"
              HorizontalAlignment="Center"
              ContentSource="Header"
              Margin="40,10,40,10"
              RecognizesAccessKey="True"/>
                                </Border>
                            </Grid>
                            <ControlTemplate.Triggers>
 
                                <Trigger Property="IsSelected" Value="True">
                                    <Setter Property="Panel.ZIndex" Value="400" />
                                    <Setter Property="Background" TargetName="Border" >
 
                                        <Setter.Value>
 
                                            <LinearGradientBrush StartPoint="0,0" EndPoint="0,0.75">
 
                                                <LinearGradientBrush.GradientStops>
 
                                                    <GradientStop Color="White" Offset="-1" />
 
                                                    <GradientStop Color="DodgerBlue" Offset="1" />
 
                                                </LinearGradientBrush.GradientStops>
 
                                            </LinearGradientBrush>
 
                                        </Setter.Value>
 
                                    </Setter>
                                    <Setter TargetName="Border" Property="BorderThickness" Value="2,2,2,0" />
                                </Trigger>
                                <Trigger Property="IsEnabled" Value="True">
                                    <Setter Property="Background" TargetName="Border">
 
                                        <Setter.Value>
 
                                            <LinearGradientBrush StartPoint="0,0" EndPoint="0,1.75">
 
                                                <LinearGradientBrush.GradientStops>
 
                                                    <GradientStop Color="DodgerBlue" Offset="0" />
 
                                                    <GradientStop Color="White" Offset="1" />
 
                                                </LinearGradientBrush.GradientStops>
 
                                            </LinearGradientBrush>
 
                                        </Setter.Value>
 
                                    </Setter>
                                    <Setter Property="Background" TargetName="Border">
 
                                        <Setter.Value>
 
                                            <LinearGradientBrush StartPoint="0,0" EndPoint="0,0.75">
 
                                                <LinearGradientBrush.GradientStops>
 
                                                    <GradientStop Color="DodgerBlue" Offset="0" />
 
                                                    <GradientStop Color="White" Offset="1" />
 
                                                </LinearGradientBrush.GradientStops>
 
                                            </LinearGradientBrush>
 
                                        </Setter.Value>
 
                                    </Setter>
                                    <Setter Property="Background" TargetName="Border">
 
                                        <Setter.Value>
 
                                            <LinearGradientBrush StartPoint="0,0" EndPoint="0,0.75">
 
                                                <LinearGradientBrush.GradientStops>
 
                                                    <GradientStop Color="DodgerBlue" Offset="0" />
 
                                                    <GradientStop Color="White" Offset="1" />
 
                                                </LinearGradientBrush.GradientStops>
 
                                            </LinearGradientBrush>
 
                                        </Setter.Value>
 
                                    </Setter>
                                </Trigger>
                            </ControlTemplate.Triggers>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
 
            <ControlTemplate x:Key="GlassButton" TargetType="{x:Type Button}">
                <ControlTemplate.Resources>
                    <Storyboard x:Key="Timeline1">
                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="glow" Storyboard.TargetProperty="(UIElement.Opacity)">
                            <SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1"/>
                        </DoubleAnimationUsingKeyFrames>
                    </Storyboard>
                    <Storyboard x:Key="Timeline2">
                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="glow" Storyboard.TargetProperty="(UIElement.Opacity)">
                            <SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0"/>
                        </DoubleAnimationUsingKeyFrames>
                    </Storyboard>
                </ControlTemplate.Resources>
                <Border BorderBrush="#FFFFFFFF" BorderThickness="1,1,1,1" CornerRadius="4,4,4,4">
                    <Border x:Name="border" Background="#7F000000" BorderBrush="#FF000000" BorderThickness="1,1,1,1" CornerRadius="4,4,4,4">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="0.507*"/>
                                <RowDefinition Height="0.493*"/>
                            </Grid.RowDefinitions>
                            <Border Opacity="0" HorizontalAlignment="Stretch" x:Name="glow" Width="Auto" Grid.RowSpan="2" CornerRadius="4,4,4,4">
                                <Border.Background>
                                    <RadialGradientBrush>
                                        <RadialGradientBrush.RelativeTransform>
                                            <TransformGroup>
                                                <ScaleTransform ScaleX="1.702" ScaleY="2.243"/>
                                                <SkewTransform AngleX="0" AngleY="0"/>
                                                <RotateTransform Angle="0"/>
                                                <TranslateTransform X="-0.368" Y="-0.152"/>
                                            </TransformGroup>
                                        </RadialGradientBrush.RelativeTransform>
                                        <GradientStop Color="#B28DBDFF" Offset="0"/>
                                        <GradientStop Color="#008DBDFF" Offset="1"/>
                                    </RadialGradientBrush>
                                </Border.Background>
                            </Border>
                            <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Width="Auto" Grid.RowSpan="2"/>
                            <Border HorizontalAlignment="Stretch" Margin="0,0,0,0" x:Name="shine" Width="Auto" CornerRadius="4,4,0,0">
                                <Border.Background>
                                    <LinearGradientBrush EndPoint="0.494,0.889" StartPoint="0.494,0.028">
                                        <GradientStop Color="#99FFFFFF" Offset="0"/>
                                        <GradientStop Color="#33FFFFFF" Offset="1"/>
                                    </LinearGradientBrush>
                                </Border.Background>
                            </Border>
                        </Grid>
                    </Border>
                </Border>
                <ControlTemplate.Triggers>
                    <Trigger Property="IsPressed" Value="True">
                        <Setter Property="Opacity" TargetName="shine" Value="0.4"/>
                        <Setter Property="Background" TargetName="border" Value="#CC000000"/>
                        <Setter Property="Visibility" TargetName="glow" Value="Hidden"/>
                    </Trigger>
                    <Trigger Property="IsMouseOver" Value="True">
                        <Trigger.EnterActions>
                            <BeginStoryboard Storyboard="{StaticResource Timeline1}"/>
                        </Trigger.EnterActions>
                        <Trigger.ExitActions>
                            <BeginStoryboard x:Name="Timeline2_BeginStoryboard" Storyboard="{StaticResource Timeline2}"/>
                        </Trigger.ExitActions>
                    </Trigger>
                </ControlTemplate.Triggers>
            </ControlTemplate>
        </Window.Resources>
 
        <Grid x:Name="LayoutRoot">
 
            <Grid.Background>
                <LinearGradientBrush EndPoint="0.486,0.986" StartPoint="0.486,0">
                    <GradientStop Color="#FF000000" Offset="0"/>
                    <GradientStop Color="#FFD0D0D0" Offset="1"/>
                    <GradientStop Color="#FF8D8D8D" Offset="0.558"/>
                    <GradientStop Color="#FF8D8D8D" Offset="0.76"/>
                    <!--<GradientStop Color="#FF747474" Offset="0.615"/>-->
                </LinearGradientBrush>
            </Grid.Background>
            <Button Margin="296,12,397,0" Name="btnSetup" VerticalAlignment="Top" Height="85" Content="Setup" ToolTip="Click to setup Clients" FontSize="15" Foreground="#FFFFFFFF" Template="{DynamicResource GlassButton}" Click="btnSetup_Click" />
 
            <Button Foreground="White" Name="btnReports" Height="85" Margin="0,12,275,0" Content="Reports" FontSize="15" Template="{DynamicResource GlassButton}" VerticalAlignment="Top"  HorizontalAlignment="Right" Width="104" Click="btnReports_Click"></Button>
            <Button Foreground="White" Name="btnNotes" Height="85" HorizontalAlignment="Right" Margin="0,12,150,0" Content="Notes" FontSize="15" Template="{DynamicResource GlassButton}" VerticalAlignment="Top" Width="104" Click="btnNotes_Click"></Button>
            <TabControl Height="471"  Margin="0,117.723,0,-2.723" Width="798" Name="tcSetup" >
                <TabItem Header="Clients" Name="tiClients" ToolTip="Add or edit Client Information" GotFocus="tiClients_GotFocus">
 
                    <Grid x:Name="TabOne" Height="426" Width="787" Loaded="TabOne_Loaded">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="79.992*" />
                            <ColumnDefinition Width="220.887*" />
                            <ColumnDefinition Width="202.121*" />
                            <ColumnDefinition Width="284*" />
                        </Grid.ColumnDefinitions>
                        <Grid.Background>
                            <LinearGradientBrush EndPoint="0.486,0.986" StartPoint="0.486,0">
                                <GradientStop Color="White" Offset="0"/>
                                <GradientStop Color="White" Offset="1"/>
                                <GradientStop Color="DodgerBlue" Offset="0.558"/>
                                <GradientStop Color="DodgerBlue" Offset="0.76"/>
                                <!--<GradientStop Color="SkyBlue" Offset="0.615"/>-->
                            </LinearGradientBrush>
                        </Grid.Background>
                        <Button FontSize="12" Foreground="White" Name="btnClient_new" Content="New" Height="30" HorizontalAlignment="Left" Margin="23,0,0,25" Template="{DynamicResource GlassButton}" VerticalAlignment="Bottom" Width="88" ToolTip="Add New Client" Grid.ColumnSpan="2" Click="btnClient_new_Click"></Button>
                        <Button FontSize="12" Foreground="White" Name="btnClient_Edit" Height="30" Margin="52.008,0,80.879,25" Content="Edit" Template="{DynamicResource GlassButton}" VerticalAlignment="Bottom" ToolTip="Edit Existing Client Information " Grid.Column="1" Click="btnClient_Edit_Click"></Button>
                        <Button FontSize="12" Foreground="White" Name="btnClient_Delete" Height="30" Margin="153.008,0,182,25" Content="Delete" Template="{DynamicResource GlassButton}" VerticalAlignment="Bottom" ToolTip="Delete existing Client" Grid.ColumnSpan="2" Grid.Column="1" Click="btnClient_Delete_Click"></Button>
                        <Button FontSize="12" Foreground="White" Name="btnClient_Save" Height="30" Margin="32.121,0,76,25" Content="Save" Template="{DynamicResource GlassButton}" VerticalAlignment="Bottom" ToolTip="Save Client related information" Grid.Column="2" Click="btnClient_Save_Click"></Button>
                        <Button FontSize="12" Foreground="White" Name="btnClient_Addnotes" Height="30" HorizontalAlignment="Left" Margin="18,0,0,25" Content="Add Notes" Template="{DynamicResource GlassButton}" VerticalAlignment="Bottom" Width="88" Grid.Column="3" ToolTip="Add Notes" Click="btnClient_Addnotes_Click"></Button>
                        <Button FontSize="12" Foreground="White" Name="btnClient_AddAtachments" Height="30" Margin="120.999,0,22.001,25" Content="Add Attachements" Template="{DynamicResource GlassButton}" VerticalAlignment="Bottom" Grid.Column="3" ToolTip="Add atachments" Click="btnClient_AddAtachments_Click"></Button>
                        <Label FontSize="12" Height="28" Margin="0,25,17.879,0" Name="label1" VerticalAlignment="Top" Content="Client Name " HorizontalAlignment="Right" Width="85" Grid.Column="1"></Label>
                        <Label FontSize="12" HorizontalAlignment="Left" Margin="41,93,0,0" Name="label2" Content="Address   : " Width="88" Height="27.723" VerticalAlignment="Top" Grid.ColumnSpan="2"></Label>
                        <Label FontSize="12" Height="28" HorizontalAlignment="Left" Margin="41,59,0,0" Name="label3" VerticalAlignment="Top" Content="Client      :"  Width="70" Grid.ColumnSpan="2"></Label>
                        <Label FontSize="12" Height="28" Margin="47.008,25,0,0" Name="label4" VerticalAlignment="Top" Content="No" Grid.Column="1" HorizontalAlignment="Left" Width="47"></Label>
                        <TextBox Height="23" Margin="28.008,59,0,0" Text="{Binding Path=txtClient_no, UpdateSourceTrigger=PropertyChanged}"  VerticalAlignment="Top" Grid.Column="1" HorizontalAlignment="Left" Width="71" TextInput="txtClient_no_TextInput" />
                        <TextBox Margin="28.008,93,47.879,210" Text="{Binding Path=txtClientAddress, UpdateSourceTrigger=PropertyChanged}" Grid.Column="1" />
                        <Label Height="28" Margin="186.681,96,165,0" Name="label5" Content="Telephone : " VerticalAlignment="Top" Grid.ColumnSpan="2" Grid.Column="1"></Label>
                        <Label Height="28" Margin="186.681,126,165,0" Name="label6" VerticalAlignment="Top" Content="Fax           :" Grid.ColumnSpan="2" Grid.Column="1"></Label>
                        <Label Margin="187.681,160,164,0" Name="label7" Height="26" VerticalAlignment="Top" Content="Mobile       :" Grid.ColumnSpan="2" Grid.Column="1"></Label>
                        <Label Margin="186.681,192,165,205" Content="Email         :" Name="label8" Grid.ColumnSpan="2" Grid.Column="1"></Label>
                        <TextBox Height="23" Margin="43.794,97,28,0" Name="txtClient_telno" VerticalAlignment="Top" Grid.Column="2" />
                        <TextBox Height="23" Margin="43.794,126,28,0" Name="txtClient_faxno" VerticalAlignment="Top" Grid.Column="2" />
                        <TextBox Height="23" Margin="43.794,158,28,0" Name="txtClient_mobileno" VerticalAlignment="Top" Grid.Column="2" />
                        <TextBox Margin="43.794,192,28,211" Name="txtClient_email" Grid.Column="2" />
                        <Label FontSize="12" Height="27.723" HorizontalAlignment="Left" Margin="12,0,0,122" Name="label9" Content="Linked Clients   :" VerticalAlignment="Bottom" Width="99" Grid.ColumnSpan="2"></Label>
                        <Label FontSize="12" Height="28" Margin="37.008,0,0,149" Name="label10" VerticalAlignment="Bottom" Grid.Column="1" HorizontalAlignment="Left" Width="47">No</Label>
                        <Label FontSize="12" Height="28" Margin="0,0,17.879,149" Name="label11" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="85" Grid.Column="1">Client Name</Label>
                        <TextBox Height="23" Margin="31.008,0,0,120" Name="txtLinked_clientno1" VerticalAlignment="Bottom" Grid.Column="1" HorizontalAlignment="Left" Width="71" />
                        <TextBox Height="23" Margin="31.008,0,0,85" Name="txtLinked_clientno2" VerticalAlignment="Bottom" Grid.Column="1" HorizontalAlignment="Left" Width="71" />
                        <TextBox Margin="108.008,0,129,85" Name="textBox11" Height="23" VerticalAlignment="Bottom" Grid.ColumnSpan="2" Grid.Column="1" />
                        <TextBox Height="23" Margin="40,39,114,0" Name="txtLtdCo_nonAudit" VerticalAlignment="Top" Grid.Column="3" IsReadOnly="True">Ltd Co. Non Audit</TextBox>
                        <TextBox Height="23" Margin="40,68,114,0" Name="txtLtdCo_Audit" VerticalAlignment="Top" Grid.Column="3" IsReadOnly="True">Limited Co-Audit</TextBox>
                        <TextBox Height="23" Margin="40,97,114,0" Name="txtSolo_Patnership" VerticalAlignment="Top" Grid.Column="3" IsReadOnly="True">Sole Trade\ Patnership</TextBox>
                        <TextBox Height="23" Margin="39,126,114,0" Name="txtVat" VerticalAlignment="Top" Grid.Column="3" IsReadOnly="True">VAT</TextBox>
                        <TextBox Margin="39,155,114,0" Name="txtPay" Grid.Column="3" Height="23" VerticalAlignment="Top" IsReadOnly="True">PAY</TextBox>
                        <TextBox Height="23" Margin="39,184,114,0" Name="txtP11d" VerticalAlignment="Top" Grid.Column="3" IsReadOnly="True">P11D</TextBox>
                        <TextBox Margin="39,213,115,190" Name="txtMainAccounts" Grid.Column="3" IsReadOnly="True">Main Accounts</TextBox>
                        <TextBox Height="23" Margin="40,0,114,161" Name="txtTaxreturns" VerticalAlignment="Bottom" Grid.Column="3" IsReadOnly="True">Tax Returns</TextBox>
                        <Label FontSize="12" Height="27.723" HorizontalAlignment="Left" Margin="182.121,0,0,113" Name="label12" VerticalAlignment="Bottom" Width="54" Content="Patner  :" Grid.ColumnSpan="2" Grid.Column="2"></Label>
                        <Label FontSize="12" Height="25" HorizontalAlignment="Left" Margin="183.121,0,0,82" Name="label13" Content="Staff    :" VerticalAlignment="Bottom" Width="54" Grid.ColumnSpan="2" Grid.Column="2"></Label>
                        <ComboBox Grid.Column="3" Height="23" Margin="40,0,58,118" Name="cbPatner" VerticalAlignment="Bottom" />
                        <ComboBox Height="23" Margin="41,0,57,84" Name="cbStaff" VerticalAlignment="Bottom" Grid.Column="3" />
                        <ComboBox Height="23" Margin="105.008,59,132,0" Name="cbClient_name" VerticalAlignment="Top" Grid.ColumnSpan="2" Grid.Column="1" />
                        <TextBox Height="23" HorizontalAlignment="Right" Margin="0,39,74,0" Name="txtLtd_nonauditfee" VerticalAlignment="Top" Width="37" Grid.Column="3" />
                        <TextBox Height="23" HorizontalAlignment="Right" Margin="0,68,73,0" Name="txtltd_auditfee" VerticalAlignment="Top" Width="37" Grid.Column="3" />
                        <TextBox Height="23" HorizontalAlignment="Right" Margin="0,97,73,0" Name="txtSolo_Pfee" VerticalAlignment="Top" Width="37" Grid.Column="3" />
                        <TextBox Height="23" HorizontalAlignment="Right" Margin="0,126,73,0" Name="txtVatfee" VerticalAlignment="Top" Width="37" Grid.Column="3" />
                        <TextBox Height="23" HorizontalAlignment="Right" Margin="0,155,73,0" Name="txtPayfee" VerticalAlignment="Top" Width="37" Grid.Column="3" />
                        <TextBox Height="23" HorizontalAlignment="Right" Margin="0,184,73,0" Name="txtP11dfee" VerticalAlignment="Top" Width="37" Grid.Column="3" />
                        <TextBox HorizontalAlignment="Right" Margin="0,213,73,190" Name="txtMainactfee" Width="37" Grid.Column="3" />
                        <TextBox Height="23" HorizontalAlignment="Right" Margin="0,0,73,161" Name="txtTaxreturnsfee" VerticalAlignment="Bottom" Width="37" Grid.Column="3" />
                        <TextBox Height="23" HorizontalAlignment="Right" Margin="0,39,31,0" Name="txtLtdnoaudit_YE" VerticalAlignment="Top" Width="37" Text="Y/E"  Grid.Column="3" IsReadOnly="True" />
                        <TextBox Height="23" HorizontalAlignment="Right" Margin="0,68,30,0" Name="txtLtdaudit_YE" VerticalAlignment="Top" Width="37" Text="Y/E" Grid.Column="3" IsReadOnly="True" />
                        <TextBox HorizontalAlignment="Right" Margin="0,97,30,306" Name="txtSolo_YE" Width="37"  Text="Y/E" Grid.Column="3" IsReadOnly="True" />
                        <TextBox Height="23" HorizontalAlignment="Right" Margin="0,0,30,277" Name="txtVat_PE" VerticalAlignment="Bottom" Width="37" Text="P/E" Grid.Column="3" IsReadOnly="True" />
                        <TextBox HorizontalAlignment="Right" Margin="0,213,30,190" Name="txtMainact_PE" Width="37" Text="P/E" Grid.Column="3" IsReadOnly="True" />
                        <TextBox HorizontalAlignment="Right" Margin="0,0,30,161" Name="txtTaxreturns_YE" Width="37" Text="Y/E"  Grid.Column="3" Height="23" VerticalAlignment="Bottom" IsReadOnly="True" />
                        <ComboBox Height="23" Margin="108.008,0,129,120" Name="cbLinked_client1" VerticalAlignment="Bottom" Grid.ColumnSpan="2" Grid.Column="1" />
                        <CheckBox Grid.Column="3" HorizontalAlignment="Left" Margin="23,44,0,366" Name="chkLtd_nonAudit" Width="18"></CheckBox>
                        <CheckBox Height="16" HorizontalAlignment="Left" Margin="23,73,0,0" Name="chkLtdAudit" VerticalAlignment="Top" Width="18" Grid.Column="3" />
                        <CheckBox Height="16" HorizontalAlignment="Left" Margin="23,102,0,0" Name="chkSolo_patner" VerticalAlignment="Top" Width="18" Grid.Column="3" />
                        <CheckBox Height="16" HorizontalAlignment="Left" Margin="23,130,0,0" Name="chkVat" VerticalAlignment="Top" Width="18" Grid.Column="3" />
                        <CheckBox Height="16" HorizontalAlignment="Left" Margin="22,160,0,0" Name="chkPay" VerticalAlignment="Top" Width="18" Grid.Column="3" />
                        <CheckBox Height="16" HorizontalAlignment="Left" Margin="22,188,0,0" Name="chkP11d" VerticalAlignment="Top" Width="18" Grid.Column="3" />
                        <CheckBox Height="16" HorizontalAlignment="Left" Margin="22,0,0,191" Name="chkMainacts" VerticalAlignment="Bottom" Width="18" Grid.Column="3" />
                        <CheckBox Height="16" HorizontalAlignment="Left" Margin="22,0,0,164" Name="chkTaxreturns" VerticalAlignment="Bottom" Width="18" Grid.Column="3" />
                        <TextBox Grid.ColumnSpan="2" Height="23" Margin="105,59,132,0" Name="txtClient_name" VerticalAlignment="Top" Grid.Column="1" Visibility="Hidden" />
                        <CheckBox Height="15" Margin="0,0,0,101" Name="chkLinked_clients" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="17.992" Checked="chkLinked_clients_Checked"></CheckBox>
                    </Grid>
                </TabItem>
                <TabItem Header="Alert-Setup" Name="tiAlertSetup" ToolTip="Setup Alerts" >
                    <Grid x:Name="TabTwo" Height="426" Width="787">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="457*" />
                            <ColumnDefinition Width="330*" />
                        </Grid.ColumnDefinitions>
                        <Grid.Background>
                            <LinearGradientBrush EndPoint="0.486,0.986" StartPoint="0.486,0">
                                <GradientStop Color="White" Offset="0"/>
                                <GradientStop Color="White" Offset="1"/>
                                <GradientStop Color="DodgerBlue" Offset="0.558"/>
                                <GradientStop Color="DodgerBlue" Offset="0.76"/>
                                <!--<GradientStop Color="SkyBlue" Offset="0.615"/>-->
                            </LinearGradientBrush>
                        </Grid.Background>
                        <Label FontSize="12" Height="28" HorizontalAlignment="Left" Margin="38,62,0,0" Name="label15" VerticalAlignment="Top" Width="70">Client :</Label>
                        <TextBox Height="23" HorizontalAlignment="Left" Margin="105,62,0,0" Name="textBox9" VerticalAlignment="Top" Width="71" />
                        <ComboBox Height="23" Margin="182,62,135,0" Name="comboBox5" VerticalAlignment="Top" />
                        <Label FontSize="12" Height="28" Margin="195,28,223,0" Name="label14" VerticalAlignment="Top">Client Name</Label>
                        <Label FontSize="12" Height="28" HorizontalAlignment="Left" Margin="38,62,0,0" Name="label16" VerticalAlignment="Top" Width="61" Content="Client" ></Label>
                        <Label FontSize="12" Height="28" HorizontalAlignment="Left" Margin="124,28,0,0" Name="label17" VerticalAlignment="Top" Width="47">No</Label>
                        <TextBox Height="23" HorizontalAlignment="Left" Margin="105,62,0,0" Name="textBox31" VerticalAlignment="Top" Width="71" />
                        <ComboBox Height="23" Margin="182,62,135,0" Name="comboBox6" VerticalAlignment="Top" />
                        <Label FontSize="12" Height="28" HorizontalAlignment="Left" Margin="38,130,0,0" Name="label18" VerticalAlignment="Top" Width="70">Type</Label>
                        <TextBox Height="23" Margin="105,130,182,0" Name="textBox32" VerticalAlignment="Top">Limited Company, no adults</TextBox>
                        <RadioButton Height="20" HorizontalAlignment="Left" IsChecked="True" Margin="85,136,0,0" Name="radioButton9" VerticalAlignment="Top" Width="14" />
                        <Button FontSize="12" Foreground="White" HorizontalAlignment="Left" Margin="43,193,0,203" Template="{DynamicResource GlassButton}" Width="88">Add</Button>
                        <Button FontSize="12" Foreground="White" HorizontalAlignment="Left" Margin="147,193,0,203" Template="{DynamicResource GlassButton}" Width="88">Edit</Button>
                        <Button FontSize="12" Foreground="White" Margin="0,193,135,203" Template="{DynamicResource GlassButton}" HorizontalAlignment="Right" Width="74">Delete</Button>
                        <TextBox Height="23" Margin="105,0,182,141" Name="textBox35" VerticalAlignment="Bottom">P11D's</TextBox>
                        <RadioButton Height="20" HorizontalAlignment="Left" IsChecked="True" Margin="85,0,0,138" Name="radioButton10" VerticalAlignment="Bottom" Width="14" />
                        <Button FontSize="12" Foreground="White" Height="30" HorizontalAlignment="Left" Margin="43,0,0,71" Template="{DynamicResource GlassButton}" VerticalAlignment="Bottom" Width="88">Add</Button>
                        <Button FontSize="12" Foreground="White" Height="30" HorizontalAlignment="Left" Margin="147,0,0,71" Template="{DynamicResource GlassButton}" VerticalAlignment="Bottom" Width="88">Edit</Button>
                        <Button FontSize="12" Foreground="White" Height="30" Margin="0,0,135,71" Template="{DynamicResource GlassButton}" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="74">Delete</Button>
                        <TextBox Height="23" Margin="0,140,140,0" Name="textBox36" VerticalAlignment="Top" Grid.Column="1" HorizontalAlignment="Right" Width="71">7</TextBox>
                        <TextBox Height="23" Margin="0,94,140,0" Name="textBox37" VerticalAlignment="Top" Grid.Column="1" HorizontalAlignment="Right" Width="71">-30</TextBox>
                        <Label FontSize="12" Height="28" HorizontalAlignment="Left" Margin="41,92,0,0" Name="label19" VerticalAlignment="Top" Width="77" ContentStringFormat="Alerts" Content="Alerts        :" Grid.Column="1"></Label>
                        <Label FontSize="12" Height="28" HorizontalAlignment="Left" Margin="41,138,0,0" Name="label20" VerticalAlignment="Top" Width="78" Grid.Column="1">Frequency :</Label>
 
                        <Button Margin="0,91,121,0" Grid.Column="1" Height="16" HorizontalAlignment="Right" VerticalAlignment="Top" Width="19" Template="{DynamicResource GlassButton}">
                            <Path Fill="Black" Data="M 0 6 L 12 6 L 6 0 Z"/>
                        </Button>
                        <Button Margin="0,106,121,0" Grid.Column="1" HorizontalAlignment="Right" Width="19" Height="14" VerticalAlignment="Top" Template="{DynamicResource GlassButton}">
                            <Path Fill="Black" Data="M 0 0 L 6 6 L 12 0 Z"/>
                        </Button>
                        <Button Height="16" HorizontalAlignment="Right" Margin="0,138,121,0" VerticalAlignment="Top" Width="19" Grid.Column="1" Template="{DynamicResource GlassButton}">
                            <Path Data="M0,6L12,6 6,0z" Fill="Black" />
                        </Button>
                        <Button Height="14" HorizontalAlignment="Right" Margin="0,153,121,0" VerticalAlignment="Top" Width="19" Grid.Column="1" Template="{DynamicResource GlassButton}">
                            <Path Data="M0,0L6,6 12,0z" Fill="Black" />
                        </Button>
                        <Button FontSize="12" Foreground="White" Height="30" Margin="155.439,0,80.901,78.174" Template="{DynamicResource GlassButton}" VerticalAlignment="Bottom" Grid.Column="1">Edit</Button>
                        <Button FontSize="12" Foreground="White" Height="30" Margin="155.439,0,80.901,31.815" Template="{DynamicResource GlassButton}" VerticalAlignment="Bottom" Grid.Column="1">Delete</Button>
                        <Button FontSize="12" Foreground="White" Height="30" Margin="155.439,0,80.901,126.351" Template="{DynamicResource GlassButton}" VerticalAlignment="Bottom" Grid.Column="1">Save</Button>
                        <Button FontSize="12" Foreground="White" Margin="155.439,0,80.901,171.801" Template="{DynamicResource GlassButton}" Grid.Column="1" Height="29.676" VerticalAlignment="Bottom">New</Button>
                    </Grid>
                </TabItem>
                <TabItem Header="Staff"  Name="tiStaff" >
                    <Grid x:Name="TabThree" Height="426" Width="787">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="457*" />
                            <ColumnDefinition Width="330*" />
                        </Grid.ColumnDefinitions>
                        <Grid.Background>
                            <LinearGradientBrush EndPoint="0.486,0.986" StartPoint="0.486,0">
                                <GradientStop Color="White" Offset="0"/>
                                <GradientStop Color="White" Offset="1"/>
                                <GradientStop Color="DodgerBlue" Offset="0.558"/>
                                <GradientStop Color="DodgerBlue" Offset="0.76"/>
                                <!--<GradientStop Color="SkyBlue" Offset="0.615"/>-->
                            </LinearGradientBrush>
                        </Grid.Background>
                        <Label Height="28" Margin="25,99,0,0" Name="label21" VerticalAlignment="Top" HorizontalAlignment="Left" Width="103">Partner            :</Label>
                        <Label Height="28" Margin="133,65,221,0" Name="label22" VerticalAlignment="Top">Partner Name</Label>
                        <ComboBox Height="23" Margin="119,99,206,0" Name="comboBox7" VerticalAlignment="Top" />
                        <Label Height="28" HorizontalAlignment="Left" Margin="25,142,0,0" Name="label23" VerticalAlignment="Top" Width="103">Partner E-Mail  :</Label>
                        <TextBox Height="23" Margin="119,142,206,0" Name="textBox38" VerticalAlignment="Top" />
                        <Label Height="28" HorizontalAlignment="Right" Margin="0,99,277,0" Name="label24" VerticalAlignment="Top" Width="103" Grid.ColumnSpan="2">Staff           :</Label>
                        <Label Height="28" Margin="45,65,0,0" Name="label25" VerticalAlignment="Top" Grid.Column="1" HorizontalAlignment="Left" Width="103">Staff Name</Label>
                        <ComboBox Height="23" Margin="31,99,0,0" Name="comboBox8" VerticalAlignment="Top" Grid.Column="1" HorizontalAlignment="Left" Width="132" />
                        <Label Height="28" HorizontalAlignment="Right" Margin="0,142,277,0" Name="label26" VerticalAlignment="Top" Width="103" Grid.ColumnSpan="2">Staff  E-Mail :</Label>
                        <TextBox Height="23" Margin="31,142,0,0" Name="textBox39" VerticalAlignment="Top" Grid.Column="1" HorizontalAlignment="Left" Width="132" />
                        <ComboBox Height="23" HorizontalAlignment="Right" Margin="0,99,15,0" Name="comboBox9" VerticalAlignment="Top" Width="132" Grid.Column="1" />
                        <Label Height="28" HorizontalAlignment="Right" Margin="0,65,44,0" Name="label27" VerticalAlignment="Top" Width="103" Grid.Column="1">Linked to Partner</Label>
                        <Button FontSize="12" Foreground="White" Margin="33,0,0,145" Template="{DynamicResource GlassButton}" ToolTip="Add New Client" HorizontalAlignment="Left" Width="63" Height="30" VerticalAlignment="Bottom">New</Button>
                        <Button FontSize="12" Foreground="White" Margin="171,0,222,145" Template="{DynamicResource GlassButton}" ToolTip="Edit Existing Client Information " Height="30" VerticalAlignment="Bottom">Edit</Button>
                        <Button FontSize="12" Foreground="White" Margin="102,0,0,145" Template="{DynamicResource GlassButton}" ToolTip="Delete existing Client" HorizontalAlignment="Left" Width="63" Height="30" VerticalAlignment="Bottom">Delete</Button>
                        <Button FontSize="12" Foreground="White" Margin="0,0,152,145" Template="{DynamicResource GlassButton}" ToolTip="Save Client related information" HorizontalAlignment="Right" Width="64" Height="30" VerticalAlignment="Bottom">Save</Button>
                        <Button FontSize="12" Foreground="White" HorizontalAlignment="Right" Margin="0,0,273,148" Template="{DynamicResource GlassButton}" ToolTip="Add New Client" Width="63" Grid.ColumnSpan="2" Height="30" VerticalAlignment="Bottom">New</Button>
                        <Button FontSize="12" Foreground="White" Margin="132,0,134,148" Template="{DynamicResource GlassButton}" ToolTip="Edit Existing Client Information " Grid.Column="1" Height="30" VerticalAlignment="Bottom">Edit</Button>
                        <Button FontSize="12" Foreground="White" HorizontalAlignment="Left" Margin="63,0,0,148" Template="{DynamicResource GlassButton}" ToolTip="Delete existing Client" Width="63" Grid.Column="1" Height="30" VerticalAlignment="Bottom">Delete</Button>
                        <Button FontSize="12" Foreground="White" HorizontalAlignment="Right" Margin="0,0,64,148" Template="{DynamicResource GlassButton}" ToolTip="Save Client related information" Width="64" Grid.Column="1" Height="30" VerticalAlignment="Bottom">Save</Button>
                    </Grid>
 
                </TabItem>
                <TabItem Header="Templates" Name="tiTemplates" >
                    <Grid x:Name="TabFour" Height="426" Width="787">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="457*" />
                            <ColumnDefinition Width="330*" />
                        </Grid.ColumnDefinitions>
                        <Grid.Background>
                            <LinearGradientBrush EndPoint="0.486,0.986" StartPoint="0.486,0">
                                <GradientStop Color="White" Offset="0"/>
                                <GradientStop Color="White" Offset="1"/>
                                <GradientStop Color="DodgerBlue" Offset="0.558"/>
                                <GradientStop Color="DodgerBlue" Offset="0.76"/>
                                <!--<GradientStop Color="SkyBlue" Offset="0.615"/>-->
                            </LinearGradientBrush>
                        </Grid.Background>
                        <Label Height="28" HorizontalAlignment="Left" Margin="28,34,0,0" Name="label28" VerticalAlignment="Top" Width="120">Templates</Label>
                        <ComboBox Height="23" HorizontalAlignment="Left" Margin="94.327,34,0,0" Name="comboBox1" VerticalAlignment="Top" Width="120" />
                        <Label Height="28" HorizontalAlignment="Left" Margin="28,96,0,0" Name="label29" VerticalAlignment="Top" Width="120">Tasks</Label>
                        <Button FontSize="12" Foreground="White" Height="30" HorizontalAlignment="Left" Margin="115.446,0,0,29" Template="{DynamicResource GlassButton}" ToolTip="Add New Client" VerticalAlignment="Bottom" Width="64">New</Button>
                        <Button FontSize="12" Foreground="White" Height="30" Margin="193,0,200,29" Template="{DynamicResource GlassButton}" ToolTip="Edit Existing Client Information " VerticalAlignment="Bottom" Width="64">Edit</Button>
                        <Button FontSize="12" Foreground="White" Height="30" Margin="0,367,124,0" Template="{DynamicResource GlassButton}" ToolTip="Delete existing Client" VerticalAlignment="Top" HorizontalAlignment="Right" Width="64">Delete</Button>
                        <Button FontSize="12" Foreground="White" Height="30" Margin="0,0,45,29" Template="{DynamicResource GlassButton}" ToolTip="Save Client related information" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="64">Save</Button>
                        <ListView Name="ListViewAuthorDetails" Grid.ColumnSpan="2" Margin="94.327,96,220.673,125" Grid.Column="0" >
                            <ListView.View>
                                <GridView>
                                    <GridViewColumn Header="Narrative" Width="200" />
                                    <GridViewColumn Header="Default Timing +/-" Width="200"/>
                                    <GridViewColumn Width="80">
                                        <GridViewColumn.CellTemplate>
                                            <DataTemplate x:Name="btnUpDown">
 
                                            </DataTemplate>
                                        </GridViewColumn.CellTemplate>
                                    </GridViewColumn>
                                </GridView>
                            </ListView.View>
                        </ListView>
                    </Grid>
                </TabItem>
            </TabControl>
            <Image Height="75" Margin="12,12,0,0" Name="imgLogo" Stretch="Fill" VerticalAlignment="Top" HorizontalAlignment="Left" Width="207.827" Source="/easypeasy;component/Images/logo7-1.jpg" />
            <Button FontSize="15" Foreground="White" Name="btnActions" Height="85" HorizontalAlignment="Right" Margin="0,12,25,0" Template="{DynamicResource GlassButton}" VerticalAlignment="Top" Width="104" Click="btnActions_Click">Actions</Button>
            <TabControl Height="475.723" Margin="3.625,120.5,-6.375,-10.223" Name="tcNotes" Width="800.75">
                <TabItem Header="Notes" Name="tabItem1">
                    <Grid Height="426" Name="grid1" Width="787">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="457*" />
                            <ColumnDefinition Width="330*" />
                        </Grid.ColumnDefinitions>
                        <Grid.Background>
                            <LinearGradientBrush EndPoint="0.486,0.986" StartPoint="0.486,0">
                                <GradientStop Color="White" Offset="0" />
                                <GradientStop Color="White" Offset="1" />
                                <GradientStop Color="DodgerBlue" Offset="0.558" />
                                <GradientStop Color="DodgerBlue" Offset="0.76" />
                            </LinearGradientBrush>
                        </Grid.Background>
                        <Label Height="28" HorizontalAlignment="Left" Margin="51,42.638,0,0" Name="label33" VerticalAlignment="Top" Width="120">Clients</Label>
                        <ComboBox Height="23" Margin="117,42.139,168,0" Name="comboBox10" VerticalAlignment="Top" />
                        <Button FontSize="12" Foreground="White" Margin="96,0,146,39" Name="button2" Template="{DynamicResource GlassButton}" ToolTip="Add New Client" Grid.Column="1" Height="30" VerticalAlignment="Bottom">Export</Button>
                        <Button FontSize="12" Foreground="White" Height="30" Margin="0,0,33,39" Name="button3" Template="{DynamicResource GlassButton}" ToolTip="Add New Client" VerticalAlignment="Bottom" Grid.Column="1" HorizontalAlignment="Right" Width="88">Print</Button>
                        <Button FontSize="12" Foreground="White" Margin="37,0,0,39" Name="button4" Template="{DynamicResource GlassButton}" ToolTip="Add New Client" Height="30" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="88">Save</Button>
                        <Button FontSize="12" Foreground="White" Height="30" HorizontalAlignment="Right" Margin="0,0,256,39" Name="button5" Template="{DynamicResource GlassButton}" ToolTip="Add New Client" VerticalAlignment="Bottom" Width="88" Grid.ColumnSpan="2">Add</Button>
                        <ListView Name="ListViewClientDetails" Grid.ColumnSpan="2" Margin="57,90.638,299,130.362">
                            <ListView.View>
                                <GridView>
                                    <GridViewColumn Header="Date" Width="80" />
                                    <GridViewColumn Header="Notes" Width="345" />
                                </GridView>
                            </ListView.View>
                        </ListView>
                    </Grid>
                </TabItem>
            </TabControl>
            <TabControl Height="475.723" Margin="2.617,120.5,-5.367,-10.223" Name="tcReports" Width="800.75">
                <TabItem Header="Reports" Name="t">
                    <Grid x:Name="Reports" Height="426" Width="787">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="457*" />
                            <ColumnDefinition Width="330*" />
                        </Grid.ColumnDefinitions>
                        <Grid.Background>
                            <LinearGradientBrush EndPoint="0.486,0.986" StartPoint="0.486,0">
                                <GradientStop Color="White" Offset="0" />
                                <GradientStop Color="White" Offset="1" />
                                <GradientStop Color="DodgerBlue" Offset="0.558" />
                                <GradientStop Color="DodgerBlue" Offset="0.76" />
                                <!--<GradientStop Color="SkyBlue" Offset="0.615"/>-->
                            </LinearGradientBrush>
                        </Grid.Background>
                        <Label Height="28" HorizontalAlignment="Left" Margin="10,10,0,0" Name="label30" VerticalAlignment="Top" Width="120">Clients</Label>
                        <ComboBox Height="23" HorizontalAlignment="Left" Margin="76,9.501,0,0" Name="comboBox2" VerticalAlignment="Top" Width="120" />
                        <Label Height="28" HorizontalAlignment="Left" Margin="11.004,44,0,0" Name="label31" VerticalAlignment="Top" Width="120">Partners</Label>
                        <ComboBox Height="23" Margin="76,44,0,0" Name="comboBox3" VerticalAlignment="Top" HorizontalAlignment="Left" Width="120" />
                        <Label Height="28" HorizontalAlignment="Right" Margin="0,43,83,0" Name="label32" VerticalAlignment="Top" Width="120">Staff</Label>
                        <ComboBox Height="23" HorizontalAlignment="Right" Margin="0,43,18,0" Name="comboBox4" VerticalAlignment="Top" Width="120" />
                        <Button FontSize="12" Foreground="White" Height="30" Margin="86,39,156,0" Name="button1" Template="{DynamicResource GlassButton}" ToolTip="Add New Client" VerticalAlignment="Top" Grid.Column="1">GO</Button>
                        <Button FontSize="12" Foreground="White" Height="30" Margin="0,0,54,40" Name="button6" Template="{DynamicResource GlassButton}" ToolTip="Add New Client" VerticalAlignment="Bottom" Grid.Column="1" HorizontalAlignment="Right" Width="88">Print</Button>
                        <Button FontSize="12" Foreground="White" Height="30" Margin="72,0,0,40" Name="button7" Template="{DynamicResource GlassButton}" ToolTip="Add New Client" VerticalAlignment="Bottom" Grid.Column="1" HorizontalAlignment="Left" Width="88">Export</Button>
                    </Grid>
                </TabItem>
            </TabControl>
        </Grid>
        
 
 
</Window>

Open in new window

0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question