-
Notifications
You must be signed in to change notification settings - Fork 1
/
MainWindow.xaml.cs
32 lines (30 loc) · 1.07 KB
/
MainWindow.xaml.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using DevExpress.Xpf.Core;
using DevExpress.Xpf.Scheduling;
using System.Windows;
namespace DXSchedulerSelection
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : DXWindow
{
public MainWindow()
{
InitializeComponent();
}
private void schedulerControl_DependencyPropertyChanged(object sender, DependencyPropertyChangedEventArgs e)
{
SchedulerControl scheduler = sender as SchedulerControl;
if (e.Property == SchedulerControl.SelectedIntervalProperty)
{
OutputBox.AppendText(string.Format("SelectedInterval is changed. New value is {0} \r\n", e.NewValue));
OutputBox.ScrollToEnd();
}
if (e.Property == SchedulerControl.SelectedResourceProperty)
{
OutputBox.AppendText(string.Format("SelectedResource is changed. New value is {0} \r\n", ((ResourceItem)e.NewValue).Caption));
OutputBox.ScrollToEnd();
}
}
}
}