コード例 #1
0
        public MainWindow()
        {
            InitializeComponent();

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