1

イベントを試したアプリの時間を表示するのではなく、すべての予定のキャプションを変更したいのですが、アプリのツールヒントのみが変更されます
InitAppointmentDisplayText

private void schedulerControl1_InitAppointmentDisplayText(object sender, AppointmentDisplayTextEventArgs e)
        {
            e.Text = string.Format("Schedule: {0}, Time: {1}", e.Appointment.Description, e.Appointment.Start.ToShortTimeString());
            e.Description = string.Format("Schedule: {0}, Time: {1}", e.Appointment.Description, e.Appointment.Start.ToShortTimeString());
        }

ここに画像の説明を入力

4

1 に答える 1

3

以下に示すように、InitAppointmentDisplayText イベントを処理し、Scheduler.Views.MonthView プロパティも設定する必要があります。

schedulerControl1.Views.MonthView.AppointmentDisplayOptions.EndTimeVisibility = DevExpress.XtraScheduler.AppointmentTimeVisibility.Never;

schedulerControl1.Views.MonthView.AppointmentDisplayOptions.StartTimeVisibility = DevExpress.XtraScheduler.AppointmentTimeVisibility.Never;

schedulerControl1.Views.MonthView.AppointmentDisplayOptions.TimeDisplayType = DevExpress.XtraScheduler.AppointmentTimeDisplayType.Text;

        private void schedulerControl1_InitAppointmentDisplayText(object sender, DevExpress.XtraScheduler.AppointmentDisplayTextEventArgs e) {
            e.Text = "test";
        }        

アップデート

カスタム編集フォームを実装する方法については、ドキュメントの次のトピックを参照してください。

方法: カスタム フィールドを使用してカスタム EditAppointment フォームを作成する

方法: カスタム定期的な予定フォームを作成する

于 2011-04-07T10:43:17.337 に答える