Experimente
This commit is contained in:
@@ -3,7 +3,10 @@
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:uc="clr-namespace:BeWo.Controls;assembly=BeWo.Controls"
|
||||
xmlns:uvc="clr-namespace:BeWo.View.Controls"
|
||||
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
|
||||
xmlns:dxsch="http://schemas.devexpress.com/winfx/2008/xaml/scheduler"
|
||||
xmlns:XtraScheduler="clr-namespace:DevExpress.XtraScheduler;assembly=DevExpress.XtraScheduler.v23.2.Core"
|
||||
xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars"
|
||||
xmlns:localView="clr-namespace:BeWo.View"
|
||||
xmlns:localSearchView="clr-namespace:BeWo.View.Search"
|
||||
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
|
||||
@@ -443,8 +446,50 @@
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
<dxsch:SchedulerControl >
|
||||
|
||||
<dxsch:SchedulerControl dx:ThemeManager.ThemeName="Office2010Black" GroupType="Resource" PopupMenuShowing="SchedulerControl_PopupMenuShowing" >
|
||||
<dxsch:SchedulerControl.DefaultMenuCustomizations>
|
||||
<dxb:RemoveBarItemAndLinkAction ItemName="NewAllDayEvent" />
|
||||
<dxb:RemoveBarItemAndLinkAction ItemName="NewRecurringAppointment" />
|
||||
<dxb:RemoveBarItemAndLinkAction ItemName="NewRecurringEvent" />
|
||||
</dxsch:SchedulerControl.DefaultMenuCustomizations>
|
||||
<dxsch:SchedulerControl.OptionsCustomization>
|
||||
<dxsch:OptionsCustomization AllowAppointmentCopy="None" AllowAppointmentCreate="All" AllowAppointmentDelete="None" AllowAppointmentDrag="None"
|
||||
AllowAppointmentDragBetweenResources="None" AllowAppointmentEdit="All" AllowAppointmentResize="None" AllowInplaceEditor="None"
|
||||
AllowAppointmentMultiSelect="False" />
|
||||
</dxsch:SchedulerControl.OptionsCustomization>
|
||||
<dxsch:SchedulerControl.OptionsView>
|
||||
<dxsch:OptionsView />
|
||||
</dxsch:SchedulerControl.OptionsView>
|
||||
<dxsch:SchedulerControl.OptionsBehavior>
|
||||
<dxsch:OptionsBehavior />
|
||||
</dxsch:SchedulerControl.OptionsBehavior>
|
||||
<dxsch:SchedulerControl.DayView>
|
||||
<dxsch:DayView Enabled="false" />
|
||||
</dxsch:SchedulerControl.DayView>
|
||||
<dxsch:SchedulerControl.FullWeekView>
|
||||
<dxsch:FullWeekView Enabled="false" />
|
||||
</dxsch:SchedulerControl.FullWeekView>
|
||||
<dxsch:SchedulerControl.MonthView>
|
||||
<dxsch:MonthView Enabled="False" />
|
||||
</dxsch:SchedulerControl.MonthView>
|
||||
<dxsch:SchedulerControl.WeekView>
|
||||
<dxsch:WeekView Enabled="false" />
|
||||
</dxsch:SchedulerControl.WeekView>
|
||||
<dxsch:SchedulerControl.WorkWeekView>
|
||||
<dxsch:WorkWeekView Enabled="false" />
|
||||
</dxsch:SchedulerControl.WorkWeekView>
|
||||
<dxsch:SchedulerControl.TimelineView>
|
||||
<dxsch:TimelineView ResourcesPerPage="10" IntervalCount="31" TimelineScrollBarVisibility="Auto" AppointmentToolTipVisibility="Never">
|
||||
<dxsch:TimelineView.Scales>
|
||||
<XtraScheduler:TimeScaleYear />
|
||||
<XtraScheduler:TimeScaleMonth />
|
||||
<XtraScheduler:TimeScaleDay />
|
||||
</dxsch:TimelineView.Scales>
|
||||
<dxsch:TimelineView.AppointmentDisplayOptions>
|
||||
<dxsch:SchedulerTimelineViewAppointmentDisplayOptions SnapToCellsMode="Auto" EndTimeVisibility="Never" StartTimeVisibility="Never" />
|
||||
</dxsch:TimelineView.AppointmentDisplayOptions>
|
||||
</dxsch:TimelineView>
|
||||
</dxsch:SchedulerControl.TimelineView>
|
||||
</dxsch:SchedulerControl>
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
|
||||
@@ -565,5 +565,10 @@ namespace BeWo.View.Detail
|
||||
|
||||
popup_newBelegung.IsOpen = true;
|
||||
}
|
||||
|
||||
private void SchedulerControl_PopupMenuShowing(object sender, DevExpress.Xpf.Scheduler.SchedulerMenuEventArgs e)
|
||||
{
|
||||
e.Handled = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user