'Declaration Public Property OwnerNavigationStyle As OwnerNavigationStyle
public OwnerNavigationStyle OwnerNavigationStyle {get; set;}
Imports Infragistics.Win Imports Infragistics.Win.UltraWinSchedule Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click ' Clear the Owners collection Me.ultraWeekView1.CalendarInfo.Owners.Clear() ' Hide the unassigned owner Me.ultraWeekView1.CalendarInfo.Owners.UnassignedOwner.Visible = False ' Add some owners Me.ultraWeekView1.CalendarInfo.Owners.Add("arthur_fonzarelli", "Fonzie") Me.ultraWeekView1.CalendarInfo.Owners.Add("richard_cunningham", "Richie Cunningham") Me.ultraWeekView1.CalendarInfo.Owners.Add("warren_weber", "Potsie") Me.ultraWeekView1.CalendarInfo.Owners.Add("ralph_malph", "Ralph Malph") ' Set the OwnerDisplayStyle property to 'Separate' so that ' owners are displayed separately Me.ultraWeekView1.OwnerDisplayStyle = OwnerDisplayStyle.Separate ' Set the OwnerNavigationStyle property to Scrollbar so the end user ' can navigate through owners with a horizontal scrollbar Me.ultraWeekView1.OwnerNavigationStyle = OwnerNavigationStyle.Scrollbar ' Set the MaximumOwnersInView property to 2 so the end user can view ' up to 2 owners at a time Me.ultraWeekView1.MaximumOwnersInView = 2 ' Set the ShowOwnerHeader property to true so that headers ' are displayed for the owners Me.ultraWeekView1.ShowOwnerHeader = DefaultableBoolean.True End Sub
using Infragistics.Win; using Infragistics.Win.UltraWinSchedule; using System.Diagnostics; private void button1_Click(object sender, System.EventArgs e) { // Clear the Owners collection this.ultraWeekView1.CalendarInfo.Owners.Clear(); // Hide the unassigned owner this.ultraWeekView1.CalendarInfo.Owners.UnassignedOwner.Visible = false; // Add some owners this.ultraWeekView1.CalendarInfo.Owners.Add( "arthur_fonzarelli", "Fonzie" ); this.ultraWeekView1.CalendarInfo.Owners.Add( "richard_cunningham", "Richie Cunningham" ); this.ultraWeekView1.CalendarInfo.Owners.Add( "warren_weber", "Potsie" ); this.ultraWeekView1.CalendarInfo.Owners.Add( "ralph_malph", "Ralph Malph" ); // Set the OwnerDisplayStyle property to 'Separate' so that // owners are displayed separately this.ultraWeekView1.OwnerDisplayStyle = OwnerDisplayStyle.Separate; // Set the OwnerNavigationStyle property to Scrollbar so the end user // can navigate through owners with a horizontal scrollbar this.ultraWeekView1.OwnerNavigationStyle = OwnerNavigationStyle.Scrollbar; // Set the MaximumOwnersInView property to 2 so the end user can view // up to 2 owners at a time this.ultraWeekView1.MaximumOwnersInView = 2; // Set the ShowOwnerHeader property to true so that headers // are displayed for the owners this.ultraWeekView1.ShowOwnerHeader = DefaultableBoolean.True; }
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2