Mini Kabibi Habibi

Current Path : C:/Users/Public/Documents/DXperience 13.1 Demos/Silverlight/VB/SchedulerDemo/Modules/
Upload File :
Current File : C:/Users/Public/Documents/DXperience 13.1 Demos/Silverlight/VB/SchedulerDemo/Modules/Bars.SL.xaml

<local:SchedulerDemoModule x:Class="SchedulerDemo.Bars" Height="400" Width="800" xmlns:local="clr-namespace:SchedulerDemo" 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:dxdb="http://schemas.devexpress.com/winfx/2008/xaml/demobase" xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars">
    <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.Bars>
                    <dxb:Bar Caption="{Binding Source={StaticResource stringIdConverter}, ConverterParameter=Caption_GroupViewNavigator, Converter={StaticResource stringIdConverter}, Mode=OneTime}" Name="barViewNavigator">
                        <dxb:Bar.DockInfo>
                            <dxb:BarDockInfo ContainerType="Top" />
                        </dxb:Bar.DockInfo>
                        <dxb:Bar.ItemLinks>
                            <dxb:BarButtonItemLink BarItemName="biNavigateViewBackward" />
                            <dxb:BarButtonItemLink BarItemName="biNavigateViewForward" />
                            <dxb:BarButtonItemLink BarItemName="biGotoToday" />
                            <dxb:BarButtonItemLink BarItemName="biViewZoomIn" />
                            <dxb:BarButtonItemLink BarItemName="biViewZoomOut" />
                        </dxb:Bar.ItemLinks>
                    </dxb:Bar>
                    <dxb:Bar Caption="{Binding Source={StaticResource stringIdConverter}, ConverterParameter=Caption_GroupViewSelector, Converter={StaticResource stringIdConverter}, Mode=OneTime}" Name="barViewSelector">
                        <dxb:Bar.DockInfo>
                            <dxb:BarDockInfo ContainerType="Top" />
                        </dxb:Bar.DockInfo>
                        <dxb:Bar.ItemLinks>
                            <dxb:BarCheckItemLink BarItemName="biSwitchToDayView" />
                            <dxb:BarCheckItemLink BarItemName="biSwitchToWorkWeekView" />
                            <dxb:BarCheckItemLink BarItemName="biSwitchToWeekView" />
                            <dxb:BarCheckItemLink BarItemName="biSwitchToMonthView" />
                            <dxb:BarCheckItemLink BarItemName="biSwitchToTimelineView" />
                        </dxb:Bar.ItemLinks>
                    </dxb:Bar>
                    <dxb:Bar Caption="{Binding Source={StaticResource stringIdConverter}, ConverterParameter=Caption_GroupGroupBy, Converter={StaticResource stringIdConverter}, Mode=OneTime}" Name="barGroupBy">
                        <dxb:Bar.DockInfo>
                            <dxb:BarDockInfo ContainerType="Top" />
                        </dxb:Bar.DockInfo>
                        <dxb:Bar.ItemLinks>
                            <dxb:BarCheckItemLink BarItemName="biSwitchToGroupByNone" />
                            <dxb:BarCheckItemLink BarItemName="biSwitchToGroupByDate" />
                            <dxb:BarCheckItemLink BarItemName="biSwitchToGroupByResource" />
                        </dxb:Bar.ItemLinks>
                    </dxb:Bar>
                    <dxb:Bar Caption="Resources" Name="barResources">
                        <dxb:Bar.DockInfo>
                            <dxb:BarDockInfo ContainerType="Top" />
                        </dxb:Bar.DockInfo>
                        <dxb:Bar.ItemLinks>
                            <dxb:BarEditItemLink BarItemName="biResourcesSelector" />
                        </dxb:Bar.ItemLinks>
                    </dxb:Bar>
                </dxb:BarManager.Bars>
                <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:BarEditItem Name="biResourcesSelector" EditWidth="200" Content="Filter resources" Description="Filter resources" Hint="Filter available resources.">
                        <dxb:BarEditItem.EditSettings>
                            <dxsch:ResourcesPopupCheckedListBoxControlSettings SchedulerControl="{Binding ElementName=scheduler}" />
                        </dxb:BarEditItem.EditSettings>
                    </dxb:BarEditItem>
                    <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>
                <dxsch:SchedulerControl x:Name="scheduler" ActiveViewType="Day" VerticalAlignment="Stretch" UseLayoutRounding="False" GroupType="Resource" BarManager="{Binding ElementName=barManager1, Mode=OneTime}" />
            </dxb:BarManager>
        </Grid>
    </dxdb:DemoModuleControl>
</local:SchedulerDemoModule>