<ribbon:RibbonWindow x:Class="WpfRibbonApplication1.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:ribbon="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary"
        Title="Gmail Mail Sender"
		x:Name="RibbonWindow"
		Width="658" Height="480" Background="#FF110F0F" WindowStartupLocation="CenterScreen" ResizeMode="NoResize">

    <Grid x:Name="LayoutRoot" Height="446" Width="633">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Grid Grid.Row="1" Height="268" HorizontalAlignment="Left" Margin="12,15,0,0" x:Name="grid1" VerticalAlignment="Top" Width="600" RenderTransformOrigin="0.5,0.5" Visibility="Hidden">
            <Grid.RenderTransform>
                <TransformGroup>
                    <ScaleTransform />
                    <SkewTransform />
                    <RotateTransform />
                    <TranslateTransform />
                </TransformGroup>
            </Grid.RenderTransform>
            <Grid.Background>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FF707675" Offset="0" />
                    <GradientStop Color="#FF121413" Offset="1" />
                </LinearGradientBrush>
            </Grid.Background>
            <Label Content="Gmail User Name" Height="28" HorizontalAlignment="Left" Margin="121,86,0,0" x:Name="label1" VerticalAlignment="Top" Width="125" Foreground="#FFF1DEDE" />
            <TextBox Height="23" HorizontalAlignment="Left" Margin="244,86,0,0" x:Name="textBox1" VerticalAlignment="Top" Width="215" />
            <Label Content="Gmail Password" Height="28" HorizontalAlignment="Left" Margin="121,138,0,0" x:Name="label2" VerticalAlignment="Top" Width="125" Foreground="#FFE1DBDB" />
            <TextBox Height="28" HorizontalAlignment="Left" Margin="244,138,0,0" x:Name="textBox2" VerticalAlignment="Top" Width="215" />
            <Button Content="Sign In" Height="49" HorizontalAlignment="Left" Margin="494,201,0,0" Name="button3" VerticalAlignment="Top" Width="83" Click="button3_Click" />
        </Grid>
        <ribbon:Ribbon x:Name="Ribbon" Foreground="#FF1C1F21" Background="#FF4D4D4D" BorderBrush="#FFFFFCFC">
            <ribbon:Ribbon.ApplicationMenu>
                
                <ribbon:RibbonApplicationMenu SmallImageSource="Images\my_library_logo.png" Width="50">
                    
                    <ribbon:RibbonApplicationMenuItem Header="Log in" Click="Button1_Click_1"
                                                      x:Name="MenuItem2" Width="300"/>
                    <ribbon:RibbonApplicationMenuItem Header="Exit"
                                                      x:Name="MenuItem3" Width="300" Click="MenuItem3_Click"/>
                </ribbon:RibbonApplicationMenu>
                
            </ribbon:Ribbon.ApplicationMenu>
            <ribbon:RibbonTab x:Name="HomeTab" Header="Mail" Foreground="Beige">
                <ribbon:RibbonGroup x:Name="Group1" Header="User">
                    <ribbon:RibbonButton x:Name="Button1" LargeImageSource="Images\New_User_Icon.png" Label="Log in" Click="Button1_Click_1">
                        <ribbon:RibbonButton.FocusedBackground>
                            <ImageBrush ImageSource="/WpfRibbonApplication1;component/Images/New_User_Icon.png" />
                        </ribbon:RibbonButton.FocusedBackground>
                    </ribbon:RibbonButton>
                </ribbon:RibbonGroup>
                <ribbon:RibbonGroup x:Name="Group2" Header="Email">
                    <ribbon:RibbonButton x:Name="Button2" LargeImageSource="Images\fc-edit.png" Label="Create Email" Click="Button2_Click_1">
                        <ribbon:RibbonButton.FocusedBackground>
                            <ImageBrush ImageSource="/WpfRibbonApplication1;component/Images/New_User_Icon.png" />
                        </ribbon:RibbonButton.FocusedBackground>
                    </ribbon:RibbonButton>
                    <ribbon:RibbonButton x:Name="Butto2" LargeImageSource="Images\Delivery.png" Label="Sent Mail" Click="Button2_Click">
                        <ribbon:RibbonButton.FocusedBackground>
                            <ImageBrush ImageSource="/WpfRibbonApplication1;component/Images/New_User_Icon.png" />
                        </ribbon:RibbonButton.FocusedBackground>
                    </ribbon:RibbonButton>
                    <ribbon:RibbonButton x:Name="Butt" LargeImageSource="Images\mail_setting.png" Label="Sign Out" Click="Butt_Click">
                        <ribbon:RibbonButton.FocusedBackground>
                            <ImageBrush ImageSource="/WpfRibbonApplication1;component/Images/New_User_Icon.png" />
                        </ribbon:RibbonButton.FocusedBackground>
                    </ribbon:RibbonButton>
                </ribbon:RibbonGroup>
            </ribbon:RibbonTab>
            <ribbon:RibbonTab x:Name="Contacts" Header="Contacts" FontWeight="Normal" FontStyle="Normal" Foreground="#FFFFEFEF" BorderBrush="#FF1F1717" OpacityMask="#FF5A3939">
                <ribbon:RibbonGroup x:Name="Group3" Header="User">
                    <ribbon:RibbonButton x:Name="new" LargeImageSource="Images\User3.png" Label="New Contact" Click="Button1_Click">
                        <ribbon:RibbonButton.FocusedBackground>
                            <ImageBrush ImageSource="/WpfRibbonApplication1;component/Images/User3.png" />
                        </ribbon:RibbonButton.FocusedBackground>
                    </ribbon:RibbonButton>
                    <ribbon:RibbonButton x:Name="Button4" LargeImageSource="Images\NewNote.png" Label="Show All" Click="Button4_Click">
                        <ribbon:RibbonButton.FocusedBackground>
                            <ImageBrush ImageSource="/WpfRibbonApplication1;component/Images/NewNote.png" />
                        </ribbon:RibbonButton.FocusedBackground>
                    </ribbon:RibbonButton>
                </ribbon:RibbonGroup>
            </ribbon:RibbonTab>
        </ribbon:Ribbon>
        <Grid Height="283" HorizontalAlignment="Left" Margin="7,147,0,0" Name="grid2" VerticalAlignment="Top" Width="621" Visibility="Hidden" Grid.RowSpan="2">
            <Grid.Background>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="Black" Offset="0" />
                    <GradientStop Color="White" Offset="1" />
                </LinearGradientBrush>
            </Grid.Background>
         
            <DataGrid AutoGenerateColumns="False" Height="236" HorizontalAlignment="Left" Name="dataGrid1" VerticalAlignment="Top" Width="609" ItemsSource="{Binding Path=sent}" Margin="6,41,0,0">
                <DataGrid.Columns>
                    <DataGridTextColumn Header="Date" Width="100" Binding="{Binding Path=dates}" />
                    <DataGridTextColumn Header="To" Width="100" Binding="{Binding Path=to}" />
                    <DataGridTextColumn Header="subject" Width="150" Binding="{Binding Path=sub}" />
                    <DataGridTextColumn Header="Body" Width="*" Binding="{Binding Path=body}" />
                </DataGrid.Columns>
            </DataGrid>
            <TextBlock Height="23" HorizontalAlignment="Left" Margin="235,17,0,0" Name="textBlock1" Text="-|- All Mail -|-" VerticalAlignment="Top" FontSize="15" Foreground="#FFF2E2E2" FontFamily="Gabriola" />
        </Grid>
    </Grid>
</ribbon:RibbonWindow>
