示例#1
0
 public ResizableMasterDetail()
 {
     this.InitializeComponent();
     DataContext        = this;
     width              = MasterDefaultWidth;
     MasterColumn.Width = new GridLength(width);
     Splitter.AddHandler(Button.PointerPressedEvent, new PointerEventHandler(Splitter_PointerPressed), true);
     Splitter.AddHandler(Button.PointerReleasedEvent, new PointerEventHandler(Splitter_PointerReleased), true);
 }
 public HorizontalSplitGrid()
 {
     this.InitializeComponent();
     DataContext        = this;
     width              = 0;
     Splitter.IsEnabled = false;
     Detailcolumn.Width = new GridLength(width);
     Splitter.AddHandler(Button.PointerPressedEvent, new PointerEventHandler(Splitter_PointerPressed), true);
     Splitter.AddHandler(Button.PointerReleasedEvent, new PointerEventHandler(Splitter_PointerReleased), true);
 }