Imports Infragistics.Win Imports Infragistics.Win.UltraWinSchedule Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click ' If the AppointmentShadowVisible property resolves to false, ' set it to DefaultableBoolean.True If Not Me.UltraDayView1.AppointmentShadowVisibleResolved Then Me.UltraDayView1.AppointmentShadowVisible = DefaultableBoolean.True End If End Sub
using Infragistics.Win; using Infragistics.Win.UltraWinSchedule; private void Button1_Click(object sender, System.EventArgs e) { // If the AppointmentShadowVisible property resolves to false, // set it to DefaultableBoolean.True if ( ! this.ultraDayView1.AppointmentShadowVisibleResolved ) this.ultraDayView1.AppointmentShadowVisible = DefaultableBoolean.True; }