public SwimlanePanel() { this.Swimlanes = new ObservableCollection<SwimlaneDefinition>(); this.Swimlanes.CollectionChanged += OnSwimLaneCollectionChanged; this.clipShield = new ClipShield(); this.Children.Add(this.clipShield); Panel.SetZIndex(this.clipShield, 1); this.clipShield.SetBinding(ClipShield.BackgroundProperty, new Binding { Source = this, Path = new PropertyPath(BackgroundProperty) }); this.ClipToBounds = true; }
public SwimlanePanel() { this.Swimlanes = new ObservableCollection <SwimlaneDefinition>(); this.Swimlanes.CollectionChanged += OnSwimLaneCollectionChanged; this.clipShield = new ClipShield(); this.Children.Add(this.clipShield); Panel.SetZIndex(this.clipShield, 1); this.clipShield.SetBinding(ClipShield.BackgroundProperty, new Binding { Source = this, Path = new PropertyPath(BackgroundProperty) }); this.ClipToBounds = true; }