Mini Kabibi Habibi

Current Path : C:/Users/Public/Documents/DXperience 13.1 Demos/WPF/CS/SchedulerDemo.Wpf/Modules/
Upload File :
Current File : C:/Users/Public/Documents/DXperience 13.1 Demos/WPF/CS/SchedulerDemo.Wpf/Modules/RibbonBars.xaml

<local:SchedulerDemoModule x:Class="SchedulerDemo.RibbonBars" Height="400" Width="800"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
    xmlns:collections="clr-namespace:System.Collections;assembly=mscorlib"
    xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
    xmlns:dxsch="http://schemas.devexpress.com/winfx/2008/xaml/scheduler"
    xmlns:local="clr-namespace:SchedulerDemo"
    xmlns:dxdb="http://schemas.devexpress.com/winfx/2008/xaml/demobase"
    xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars"
    xmlns:dxr="http://schemas.devexpress.com/winfx/2008/xaml/ribbon">
    <local:SchedulerDemoModule.Resources>
        <ResourceDictionary>
            <dxsch:SchedulerUICommand x:Key="commands" />
            <dxsch:SchedulerControlStringIdConverter x:Key="stringIdConverter" />
        </ResourceDictionary>
    </local:SchedulerDemoModule.Resources>
    <dxdb:DemoModuleControl>
        <Grid>
            <dxb:BarManager Name="barManager1" ToolbarGlyphSize="Small">
                <dxb:BarManager.Items>
                    <dxb:BarButtonItem Command="{Binding Path=NavigateViewBackward, Mode=OneTime, Source={StaticResource commands}}" CommandParameter="{Binding ElementName=scheduler}" Name="biNavigateViewBackward" />
                    <dxb:BarButtonItem Command="{Binding Path=NavigateViewForward, Mode=OneTime, Source={StaticResource commands}}" CommandParameter="{Binding ElementName=scheduler}" Name="biNavigateViewForward" />
                    <dxb:BarButtonItem Command="{Binding Path=GotoToday, Mode=OneTime, Source={StaticResource commands}}" CommandParameter="{Binding ElementName=scheduler}" Name="biGotoToday" />
                    <dxb:BarButtonItem Command="{Binding Path=ViewZoomIn, Mode=OneTime, Source={StaticResource commands}}" CommandParameter="{Binding ElementName=scheduler}" Name="biViewZoomIn" />
                    <dxb:BarButtonItem Command="{Binding Path=ViewZoomOut, Mode=OneTime, Source={StaticResource commands}}" CommandParameter="{Binding ElementName=scheduler}" Name="biViewZoomOut" />
                    <dxb:BarCheckItem Command="{Binding Path=SwitchToDayView, Mode=OneTime, Source={StaticResource commands}}" CommandParameter="{Binding ElementName=scheduler}" Name="biSwitchToDayView" />
                    <dxb:BarCheckItem Command="{Binding Path=SwitchToWorkWeekView, Mode=OneTime, Source={StaticResource commands}}" CommandParameter="{Binding ElementName=scheduler}" Name="biSwitchToWorkWeekView" />
                    <dxb:BarCheckItem Command="{Binding Path=SwitchToWeekView, Mode=OneTime, Source={StaticResource commands}}" CommandParameter="{Binding ElementName=scheduler}" Name="biSwitchToWeekView" />
                    <dxb:BarCheckItem Command="{Binding Path=SwitchToMonthView, Mode=OneTime, Source={StaticResource commands}}" CommandParameter="{Binding ElementName=scheduler}" Name="biSwitchToMonthView" />
                    <dxb:BarCheckItem Command="{Binding Path=SwitchToTimelineView, Mode=OneTime, Source={StaticResource commands}}" CommandParameter="{Binding ElementName=scheduler}" Name="biSwitchToTimelineView" />
                    <dxb:BarButtonItem Content="Button 1" x:Name="itmBtn1" />
                    <dxb:BarCheckItem Command="{Binding Path=SwitchToGroupByNone, Mode=OneTime, Source={StaticResource commands}}" CommandParameter="{Binding ElementName=scheduler}" Name="biSwitchToGroupByNone" />
                    <dxb:BarCheckItem Command="{Binding Path=SwitchToGroupByDate, Mode=OneTime, Source={StaticResource commands}}" CommandParameter="{Binding ElementName=scheduler}" Name="biSwitchToGroupByDate" />
                    <dxb:BarCheckItem Command="{Binding Path=SwitchToGroupByResource, Mode=OneTime, Source={StaticResource commands}}" CommandParameter="{Binding ElementName=scheduler}" Name="biSwitchToGroupByResource" />
                </dxb:BarManager.Items>
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="*"/>
                    </Grid.RowDefinitions>
                    <dxr:RibbonControl ApplicationButtonLargeIcon="/SchedulerDemo;component/Images/ribbon-application-32x32.png">
                        <dxr:RibbonControl.ApplicationMenu>
                            <dxr:ApplicationMenu RightPaneWidth="100" ShowRightPane="false">
                                <dxr:ApplicationMenu.ItemLinks>
                                    <dxb:BarButtonItemLink BarItemName="biNavigateViewBackward" />
                                    <dxb:BarButtonItemLink BarItemName="biNavigateViewForward" />
                                    <dxb:BarButtonItemLink BarItemName="biGotoToday" />
                                    <dxb:BarButtonItemLink BarItemName="biViewZoomIn" />
                                    <dxb:BarButtonItemLink BarItemName="biViewZoomOut" />
                                </dxr:ApplicationMenu.ItemLinks>
                            </dxr:ApplicationMenu>
                        </dxr:RibbonControl.ApplicationMenu>
                        <dxr:RibbonDefaultPageCategory>
                            <dxr:RibbonPage Caption="{Binding Source={StaticResource stringIdConverter}, ConverterParameter=Caption_PageViewNavigator, Converter={StaticResource stringIdConverter}, Mode=OneTime}" Name="pageViewNavigator">
                                <dxr:RibbonPageGroup Caption="{Binding Source={StaticResource stringIdConverter}, ConverterParameter=Caption_GroupViewNavigator, Converter={StaticResource stringIdConverter}, Mode=OneTime}" Name="grpViewNavigator">
                                    <dxb:BarButtonItemLink BarItemName="biNavigateViewBackward" />
                                    <dxb:BarButtonItemLink BarItemName="biNavigateViewForward" />
                                    <dxb:BarButtonItemLink BarItemName="biGotoToday" />
                                    <dxb:BarButtonItemLink BarItemName="biViewZoomIn" />
                                    <dxb:BarButtonItemLink BarItemName="biViewZoomOut" />
                                </dxr:RibbonPageGroup>
                            </dxr:RibbonPage>
                            <dxr:RibbonPage Caption="{Binding Source={StaticResource stringIdConverter}, ConverterParameter=Caption_PageViewSelector, Converter={StaticResource stringIdConverter}, Mode=OneTime}" Name="pageViewSelector">
                                <dxr:RibbonPageGroup Caption="{Binding Source={StaticResource stringIdConverter}, ConverterParameter=Caption_GroupViewSelector, Converter={StaticResource stringIdConverter}, Mode=OneTime}" Name="grpViewSelector">
                                    <dxb:BarCheckItemLink BarItemName="biSwitchToDayView" />
                                    <dxb:BarCheckItemLink BarItemName="biSwitchToWorkWeekView" />
                                    <dxb:BarCheckItemLink BarItemName="biSwitchToWeekView" />
                                    <dxb:BarCheckItemLink BarItemName="biSwitchToMonthView" />
                                    <dxb:BarCheckItemLink BarItemName="biSwitchToTimelineView" />
                                </dxr:RibbonPageGroup>
                            </dxr:RibbonPage>
                            <dxr:RibbonPage Caption="{Binding Source={StaticResource stringIdConverter}, ConverterParameter=Caption_PageGroupBy, Converter={StaticResource stringIdConverter}, Mode=OneTime}" Name="pageGroupBy">
                                <dxr:RibbonPageGroup Caption="{Binding Source={StaticResource stringIdConverter}, ConverterParameter=Caption_GroupGroupBy, Converter={StaticResource stringIdConverter}, Mode=OneTime}" Name="grpGroupBy" ShowCaptionButton="False">
                                    <dxb:BarCheckItemLink BarItemName="biSwitchToGroupByNone" />
                                    <dxb:BarCheckItemLink BarItemName="biSwitchToGroupByDate" />
                                    <dxb:BarCheckItemLink BarItemName="biSwitchToGroupByResource" />
                                </dxr:RibbonPageGroup>
                            </dxr:RibbonPage>
                        </dxr:RibbonDefaultPageCategory>
                        <dxr:RibbonControl.ToolbarItemLinks>
                            <dxb:BarButtonItemLink BarItemName="biNavigateViewBackward" />
                            <dxb:BarButtonItemLink BarItemName="biGotoToday" />
                            <dxb:BarButtonItemLink BarItemName="biNavigateViewForward" />
                        </dxr:RibbonControl.ToolbarItemLinks>
                    </dxr:RibbonControl>
                    <dxsch:SchedulerControl Grid.Row="1" x:Name="scheduler" ActiveViewType="Day" SnapsToDevicePixels="False" BarManager="{Binding ElementName=barManager1, Mode=OneTime}"></dxsch:SchedulerControl>
                </Grid>
            </dxb:BarManager>
        </Grid>
    </dxdb:DemoModuleControl>
</local:SchedulerDemoModule>