コード例 #1
0
 public ImagePositioner(CollagePresenter presenterToUse, UIElement controlToPosition, ICollageView view)
 {
     this.presenter = presenterToUse;
     this.control   = controlToPosition;
     this.control.Measure(new Size(double.PositiveInfinity, double.PositiveInfinity));
     this.controlWidth   = Convert.ToInt32(this.control.DesiredSize.Width);
     this.controlHeight  = Convert.ToInt32(this.control.DesiredSize.Height);
     this.viewportHeight = Convert.ToInt32(view.WindowActualHeight);
     this.viewportWidth  = Convert.ToInt32(view.WindowActualWidth);
 }
コード例 #2
0
 public void Reset()
 {
     this.collagePresenter = null;
 }