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/DragDropData.xaml

<local:SchedulerDemoModule xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid" xmlns:dxsch="http://schemas.devexpress.com/winfx/2008/xaml/scheduler" x:Class="SchedulerDemo.DragDropData"
             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:local="clr-namespace:SchedulerDemo"
             mc:Ignorable="d"
             xmlns:dxdb="http://schemas.devexpress.com/winfx/2008/xaml/demobase"
             d:DesignHeight="300" d:DesignWidth="300" xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars">
    <local:SchedulerDemoModule.Resources>
        <ResourceDictionary>
            <dxsch:SchedulerUICommand x:Key="commands" />
        </ResourceDictionary>
    </local:SchedulerDemoModule.Resources>
    <dxdb:DemoModuleControl>
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="*" MinHeight="150" />
                <RowDefinition Height="3" />
                <RowDefinition Height="150" />
            </Grid.RowDefinitions>

            <dxb:BarManager Name="barManager1" ToolbarGlyphSize="Small">
                <dxb:BarManager.Bars>
                    <dxb:Bar Caption="View Selector" 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="Group By" 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:BarManager.Bars>
                <dxb:BarManager.Items>
                    <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: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 Name="scheduler" BarManager="{Binding ElementName=barManager1, Mode=OneTime}" GroupType="Resource" Margin="6,6,6,0">
                    <dxsch:SchedulerControl.DayView>
                        <dxsch:DayView ResourcesPerPage="3">
                        </dxsch:DayView>
                    </dxsch:SchedulerControl.DayView>
                    <dxsch:SchedulerControl.WorkWeekView>
                        <dxsch:WorkWeekView ResourcesPerPage="3">
                        </dxsch:WorkWeekView>
                    </dxsch:SchedulerControl.WorkWeekView>
                    <dxsch:SchedulerControl.WeekView>
                        <dxsch:WeekView ResourcesPerPage="3">
                        </dxsch:WeekView>
                    </dxsch:SchedulerControl.WeekView>
                    <dxsch:SchedulerControl.MonthView>
                        <dxsch:MonthView ResourcesPerPage="3">
                        </dxsch:MonthView>
                    </dxsch:SchedulerControl.MonthView>
                    <dxsch:SchedulerControl.TimelineView>
                        <dxsch:TimelineView ResourcesPerPage="4">
                        </dxsch:TimelineView>
                    </dxsch:SchedulerControl.TimelineView>
                </dxsch:SchedulerControl>
            </dxb:BarManager>

            <dxg:GridControl Name="grdTasks" Grid.Row="2" Margin="6,0,6,6">
                <dxg:GridControl.View>
                    <dxg:TableView ShowGroupPanel="False" AllowPerPixelScrolling="True"/>
                </dxg:GridControl.View>
                <dxg:GridControl.Columns>
                    <dxg:GridColumn FieldName="Subject" Header="Subject" Width="160" />
                    <dxg:GridColumn FieldName="Duration" Header="Duration (h)" />
                    <dxg:GridColumn FieldName="Priority" Header="Priority" Width="60" />
                    <dxg:GridColumn FieldName="Severity" Header="Severity" Width="60" />
                    <dxg:GridColumn FieldName="Description" Header="Description" Width="300" />
                </dxg:GridControl.Columns>
            </dxg:GridControl>

        </Grid>
    </dxdb:DemoModuleControl>
</local:SchedulerDemoModule>