public MainWindow() { InitializeComponent(); this.slc = (SharedLayoutCoordinator)((Grid)this.Content).FindResource("slc"); slc.ItemsSource = typeof(Brushes).GetProperties().Select(p => p.Name).OrderBy(a => a).ToArray(); }
protected override void OnVisualParentChanged(DependencyObject oldParent) { base.OnVisualParentChanged(oldParent); this.SLC = SharedLayoutCoordinator.GetParentSharedLayoutController(this); if (SLC != null) { this.SLC.Panel = this; } InvalidateMeasure(); }
public SharedLayoutRegion(SharedLayoutCoordinator coord, int index) { this.Coordinator = coord; this.Index = index; }