Mini Kabibi Habibi

Current Path : C:/Users/Public/Documents/DXperience 13.1 Demos/WPF/DevExpress.MailClient.Wpf/Bin/
Upload File :
Current File : C:/Users/Public/Documents/DXperience 13.1 Demos/WPF/DevExpress.MailClient.Wpf/Bin/MainView.xaml

<UserControl x:Class="DevExpress.MailClient.Xpf.View.MainView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
             xmlns:dxei="http://schemas.devexpress.com/winfx/2008/xaml/editors/internal"
             xmlns:dxn="http://schemas.devexpress.com/winfx/2008/xaml/navbar"
             xmlns:dxr="http://schemas.devexpress.com/winfx/2008/xaml/ribbon"
             xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars"
             xmlns:viewmodel="clr-namespace:DevExpress.MailClient.Xpf.ViewModel"
             xmlns:view="clr-namespace:DevExpress.MailClient.Xpf.View"
             xmlns:helper="clr-namespace:DevExpress.MailClient.Xpf.Helpers"
             mc:Ignorable="d"
             d:DesignHeight="300" d:DesignWidth="300">
    <UserControl.Resources>
        <dxn:IsActiveToAnimationProgressConverter x:Key="IsActiveToAnimationProgressConverter"/>
    </UserControl.Resources>
    <dxb:BarManager>
        <dxb:BarManager.Items>
            <dxb:BarButtonItem Content="About" x:Name="bAbout" Command="{Binding Commands.ShowAbout}" LargeGlyph="/DevExpress.MailClient.Xpf;component/Images/About_32x32.png"/>
            <dxb:BarButtonItem Content="Exit" x:Name="bExit" Command="{Binding Commands.Exit}" LargeGlyph="/DevExpress.MailClient.Xpf;component/Images/Mail/Close.png"/>
            <dxb:BarButtonItem Content="Mail" x:Name="bMail" Command="{Binding Commands.OpenMail}" Glyph="/DevExpress.MailClient.Xpf;component/Images/Mail_16x16.png" LargeGlyph="/DevExpress.MailClient.Xpf;component/Images/Mail_32x32.png" />
            <dxb:BarButtonItem Content="Calendar" x:Name="bCalendar" Command="{Binding Commands.OpenCalendar}" Glyph="/DevExpress.MailClient.Xpf;component/Images/Today_16x16.png" LargeGlyph="/DevExpress.MailClient.Xpf;component/Images/Today_32x32.png" />
            <dxb:BarButtonItem Content="Contacts" x:Name="bContacts" Command="{Binding Commands.OpenContacts}" Glyph="/DevExpress.MailClient.Xpf;component/Images/Contact_16x16.png" LargeGlyph="/DevExpress.MailClient.Xpf;component/Images/Contact_32x32.png" />
            <dxb:BarButtonItem Content="Feeds" x:Name="bFeeds" Command="{Binding Commands.OpenFeeds}" Glyph="/DevExpress.MailClient.Xpf;component/Images/Feeds_16x16.png" LargeGlyph="/DevExpress.MailClient.Xpf;component/Images/Feeds_32x32.png" />
            <dxb:BarSubItem Content="Navigation" x:Name="bNavigation" Glyph="/DevExpress.MailClient.Xpf;component/Images/NavigationBar_16x16.png" LargeGlyph="/DevExpress.MailClient.Xpf;component/Images/NavigationBar_32x32.png">
                <dxb:BarSubItem.ItemLinks>
                    <dxb:BarButtonItemLink BarItemName="bMail"/>
                    <dxb:BarButtonItemLink BarItemName="bCalendar"/>
                    <dxb:BarButtonItemLink BarItemName="bContacts"/>
                    <dxb:BarButtonItemLink BarItemName="bFeeds"/>
                </dxb:BarSubItem.ItemLinks>
            </dxb:BarSubItem>
            <dxr:RibbonGalleryBarItem x:Name="bThemes" DropDownGalleryInit="OnThemeDropDownGalleryInit">
                <dxr:RibbonGalleryBarItem.Gallery>
                    <dxb:Gallery MinColCount="4" AllowHoverImages="True" IsItemCaptionVisible="False" ItemCheckMode="Single" AllowHoverAnimation="True" FilterCaption="Themes" ItemCaptionHorizontalAlignment="Center" HoverGlyphSize="96,96" >
                        <dxb:Gallery.Groups>
                            <dxb:GalleryItemGroup Caption="Standard">
                                <dxb:GalleryItem Caption="DXStyle" Command="{Binding Commands.SetTheme}" CommandParameter="DXStyle" Tag="DXStyle" Glyph="/DevExpress.MailClient.Xpf;component/Images/ThemeIcons/DXStyle.png">
                                    <dxb:GalleryItem.IsChecked>
                                        <Binding Path="CurrentTheme">
                                            <Binding.Converter>
                                                <view:CurrentThemeToIsCheckedConverter ThemeName="DXStyle"/>
                                            </Binding.Converter>
                                        </Binding>
                                    </dxb:GalleryItem.IsChecked>
                                </dxb:GalleryItem>
                                <dxb:GalleryItem Caption="VS2010" Command="{Binding Commands.SetTheme}" CommandParameter="VS2010" Tag="VS2010" Glyph="/DevExpress.MailClient.Xpf;component/Images/ThemeIcons/VS2010.png">
                                    <dxb:GalleryItem.IsChecked>
                                        <Binding Path="CurrentTheme">
                                            <Binding.Converter>
                                                <view:CurrentThemeToIsCheckedConverter ThemeName="VS2010"/>
                                            </Binding.Converter>
                                        </Binding>
                                    </dxb:GalleryItem.IsChecked>
                                </dxb:GalleryItem>
                                <dxb:GalleryItem Caption="Metropolis Dark" Command="{Binding Commands.SetTheme}" CommandParameter="MetropolisDark" Tag="MetropolisDark" Glyph="/DevExpress.MailClient.Xpf;component/Images/ThemeIcons/MetropolisDark.png">
                                    <dxb:GalleryItem.IsChecked>
                                        <Binding Path="CurrentTheme">
                                            <Binding.Converter>
                                                <view:CurrentThemeToIsCheckedConverter ThemeName="MetropolisDark"/>
                                            </Binding.Converter>
                                        </Binding>
                                    </dxb:GalleryItem.IsChecked>
                                </dxb:GalleryItem>
                                <dxb:GalleryItem Caption="Metropolis Light" Command="{Binding Commands.SetTheme}" CommandParameter="MetropolisLight" Tag="MetropolisLight" Glyph="/DevExpress.MailClient.Xpf;component/Images/ThemeIcons/MetropolisLight_48x48.png">
                                    <dxb:GalleryItem.IsChecked>
                                        <Binding Path="CurrentTheme">
                                            <Binding.Converter>
                                                <view:CurrentThemeToIsCheckedConverter ThemeName="MetropolisLight"/>
                                            </Binding.Converter>
                                        </Binding>
                                    </dxb:GalleryItem.IsChecked>
                                </dxb:GalleryItem>
                                <dxb:GalleryItem Caption="Seven" Command="{Binding Commands.SetTheme}" CommandParameter="Seven" Tag="Seven" Glyph="/DevExpress.MailClient.Xpf;component/Images/ThemeIcons/Seven_48x48.png">
                                    <dxb:GalleryItem.IsChecked>
                                        <Binding Path="CurrentTheme">
                                            <Binding.Converter>
                                                <view:CurrentThemeToIsCheckedConverter ThemeName="Seven"/>
                                            </Binding.Converter>
                                        </Binding>
                                    </dxb:GalleryItem.IsChecked>
                                </dxb:GalleryItem>
                                <dxb:GalleryItem Caption="Light Gray" Command="{Binding Commands.SetTheme}" CommandParameter="LightGray" Tag="LightGray" Glyph="/DevExpress.MailClient.Xpf;component/Images/ThemeIcons/LightGray_48x48.png" >
                                    <dxb:GalleryItem.IsChecked>
                                        <Binding Path="CurrentTheme">
                                            <Binding.Converter>
                                                <view:CurrentThemeToIsCheckedConverter ThemeName="LightGray"/>
                                            </Binding.Converter>
                                        </Binding>
                                    </dxb:GalleryItem.IsChecked>
                                </dxb:GalleryItem>
                                <dxb:GalleryItem Caption="Deep Blue" Command="{Binding Commands.SetTheme}" CommandParameter="DeepBlue" Tag="DeepBlue" Glyph="/DevExpress.MailClient.Xpf;component/Images/ThemeIcons/DeepBlue_48x48.png">
                                    <dxb:GalleryItem.IsChecked>
                                        <Binding Path="CurrentTheme">
                                            <Binding.Converter>
                                                <view:CurrentThemeToIsCheckedConverter ThemeName="DeepBlue"/>
                                            </Binding.Converter>
                                        </Binding>
                                    </dxb:GalleryItem.IsChecked>
                                </dxb:GalleryItem>
                            </dxb:GalleryItemGroup>
                            <dxb:GalleryItemGroup Caption="Office2007">
                                <dxb:GalleryItem Caption="Office 2007 Black" Command="{Binding Commands.SetTheme}" CommandParameter="Office2007Black" Tag="Office2007Black" Glyph="/DevExpress.MailClient.Xpf;component/Images/ThemeIcons/Office2007Black_48x48.png">
                                    <dxb:GalleryItem.IsChecked>
                                        <Binding Path="CurrentTheme">
                                            <Binding.Converter>
                                                <view:CurrentThemeToIsCheckedConverter ThemeName="Office2007Black"/>
                                            </Binding.Converter>
                                        </Binding>
                                    </dxb:GalleryItem.IsChecked>
                                </dxb:GalleryItem>
                                <dxb:GalleryItem Caption="Office 2007 Blue" Command="{Binding Commands.SetTheme}" CommandParameter="Office2007Blue" Tag="Office2007Blue" Glyph="/DevExpress.MailClient.Xpf;component/Images/ThemeIcons/Office2007Blue_48x48.png">
                                    <dxb:GalleryItem.IsChecked>
                                        <Binding Path="CurrentTheme">
                                            <Binding.Converter>
                                                <view:CurrentThemeToIsCheckedConverter ThemeName="Office2007Blue"/>
                                            </Binding.Converter>
                                        </Binding>
                                    </dxb:GalleryItem.IsChecked>
                                </dxb:GalleryItem>
                                <dxb:GalleryItem Caption="Office 2007 Silver" Command="{Binding Commands.SetTheme}" CommandParameter="Office2007Silver" Tag="Office2007Silver" Glyph="/DevExpress.MailClient.Xpf;component/Images/ThemeIcons/Office2007Silver_48x48.png">
                                    <dxb:GalleryItem.IsChecked>
                                        <Binding Path="CurrentTheme">
                                            <Binding.Converter>
                                                <view:CurrentThemeToIsCheckedConverter ThemeName="Office2007Silver"/>
                                            </Binding.Converter>
                                        </Binding>
                                    </dxb:GalleryItem.IsChecked>
                                </dxb:GalleryItem>
                            </dxb:GalleryItemGroup>
                            <dxb:GalleryItemGroup Caption="Office2010">
                                <dxb:GalleryItem Caption="Office 2010 Black" Command="{Binding Commands.SetTheme}" CommandParameter="Office2010Black" Tag="Office2010Black" Glyph="/DevExpress.MailClient.Xpf;component/Images/ThemeIcons/Office2010Black_48x48.png">
                                    <dxb:GalleryItem.IsChecked>
                                        <Binding Path="CurrentTheme">
                                            <Binding.Converter>
                                                <view:CurrentThemeToIsCheckedConverter ThemeName="Office2010Black"/>
                                            </Binding.Converter>
                                        </Binding>
                                    </dxb:GalleryItem.IsChecked>
                                </dxb:GalleryItem>
                                <dxb:GalleryItem Caption="Office 2010 Blue" Command="{Binding Commands.SetTheme}" CommandParameter="Office2010Blue" Tag="Office2010Blue" Glyph="/DevExpress.MailClient.Xpf;component/Images/ThemeIcons/Office2010Blue_48x48.png">
                                    <dxb:GalleryItem.IsChecked>
                                        <Binding Path="CurrentTheme">
                                            <Binding.Converter>
                                                <view:CurrentThemeToIsCheckedConverter ThemeName="Office2010Blue"/>
                                            </Binding.Converter>
                                        </Binding>
                                    </dxb:GalleryItem.IsChecked>
                                </dxb:GalleryItem>
                                <dxb:GalleryItem Caption="Office 2010 Silver" Command="{Binding Commands.SetTheme}" CommandParameter="Office2010Silver" Tag="Office2010Silver" Glyph="/DevExpress.MailClient.Xpf;component/Images/ThemeIcons/Office2010Silver_48x48.png">
                                    <dxb:GalleryItem.IsChecked>
                                        <Binding Path="CurrentTheme">
                                            <Binding.Converter>
                                                <view:CurrentThemeToIsCheckedConverter ThemeName="Office2010Silver"/>
                                            </Binding.Converter>
                                        </Binding>
                                    </dxb:GalleryItem.IsChecked>
                                </dxb:GalleryItem>
                            </dxb:GalleryItemGroup>
                            <dxb:GalleryItemGroup Caption="Office2013">
                                <dxb:GalleryItem Caption="Office 2013" Command="{Binding Commands.SetTheme}" CommandParameter="Office2013" Tag="Office2013" Glyph="/DevExpress.MailClient.Xpf;component/Images/ThemeIcons/Office2013_48x48.png">
                                    <dxb:GalleryItem.IsChecked>
                                        <Binding Path="CurrentTheme">
                                            <Binding.Converter>
                                                <view:CurrentThemeToIsCheckedConverter ThemeName="Office2013"/>
                                            </Binding.Converter>
                                        </Binding>
                                    </dxb:GalleryItem.IsChecked>
                                </dxb:GalleryItem>
                            </dxb:GalleryItemGroup>
                        </dxb:Gallery.Groups>
                    </dxb:Gallery>
                </dxr:RibbonGalleryBarItem.Gallery>
            </dxr:RibbonGalleryBarItem>
        </dxb:BarManager.Items>
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <dxr:RibbonControl Grid.Row="0" Grid.ColumnSpan="2" x:Name="mainRibbonControl" ToolbarShowMode="Hide" RibbonStyle="Office2010">
                <dxr:RibbonControl.ApplicationMenu>
                    <dxr:ApplicationMenu RightPaneWidth="100" ShowRightPane="false">
                        <dxr:ApplicationMenu.ItemLinks>
                            <dxb:BarButtonItemLink BarItemName="bAbout" />
                            <dxb:BarButtonItemLink BarItemName="bExit" />
                        </dxr:ApplicationMenu.ItemLinks>
                    </dxr:ApplicationMenu>
                </dxr:RibbonControl.ApplicationMenu>
                <dxr:RibbonDefaultPageCategory Caption="Default Category">
                    <dxr:RibbonPage Caption="View" x:Name="viewRibbonPage">
                        <dxr:RibbonPageGroup Caption="Navigation" x:Name="navigationRibbonPageGroup">
                            <dxb:BarSubItemLink BarItemName="bNavigation" />
                        </dxr:RibbonPageGroup>
                        <dxr:RibbonPageGroup Caption="Theme" x:Name="appearanceRibbonPageGroup">
                            <dxr:RibbonGalleryBarItemLink BarItemName="bThemes"/>
                        </dxr:RibbonPageGroup>
                    </dxr:RibbonPage>
                </dxr:RibbonDefaultPageCategory>
            </dxr:RibbonControl>
            <dxn:NavBarControl Margin="6" Grid.Row="1" ActiveGroup="{Binding CurrentModule, Mode=TwoWay}" x:Name="modulesNavBar" ItemsSource="{Binding Path=ViewModelCollection}">
                <dxn:NavBarControl.Resources>
                    <Style TargetType="dxn:NavBarGroup">
                        <Setter Property="Content" Value="{Binding NavBarViewModel}"/>
                        <Setter Property="DisplaySource" Value="Content"/>
                        <Setter Property="ImageSource" Value="{Binding ImageSource}"/>
                        <Setter Property="Header" Value="{Binding Header}"/>
                    </Style>
                </dxn:NavBarControl.Resources>
                <dxn:NavBarControl.View>
                    <dxn:NavigationPaneView ExpandedWidth="250" ActiveGroupChanging="NavigationPaneView_ActiveGroupChanging">
                        <dxn:NavigationPaneView.GroupImageSettings>
                            <dxn:ImageSettings Height="32" Width="32"/>
                        </dxn:NavigationPaneView.GroupImageSettings>
                    </dxn:NavigationPaneView>
                </dxn:NavBarControl.View>
            </dxn:NavBarControl>
            <ContentControl Grid.Row="1" Margin="6" Grid.Column="1" x:Name="moduleContent" VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch" Content="{Binding Path=ActiveGroup.DataContext.MainViewModel, ElementName=modulesNavBar}"/>
        </Grid>
    </dxb:BarManager>
</UserControl>