public void RectFillTest()
 {
     RenderedLiveWindow target = new RenderedLiveWindow(); // TODO: Initialize to an appropriate value
     Brush expected = null; // TODO: Initialize to an appropriate value
     Brush actual;
     target.RectFill = expected;
     actual = target.RectFill;
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
 public void RenderedLiveWindowConstructorTest()
 {
     RenderedLiveWindow target = new RenderedLiveWindow();
     Assert.Inconclusive("TODO: Implement code to verify target");
 }
Ejemplo n.º 3
0
 private void DugPublicSpace(MeTLLib.DataTypes.LiveWindowSetup setup)
 {
     if (target != "notepad") return;
     Dispatcher.adopt((Action)delegate
     {
         var view = new Rect(setup.origin, new Size(setup.frame.Width, setup.frame.Height));
         var liveWindow = new Rectangle
         {
             Width = setup.frame.Width,
             Height = setup.frame.Height,
             Fill = new VisualBrush
             {
                 Visual = setup.visualSource,
                 TileMode = TileMode.None,
                 Stretch = Stretch.None,
                 AlignmentX = AlignmentX.Left,
                 AlignmentY = AlignmentY.Top,
                 ViewboxUnits = BrushMappingMode.Absolute,
                 Viewbox = view
             },
             Tag = setup.snapshotAtTimeOfCreation
         };
         var RLW = new MeTLLib.DataTypes.RenderedLiveWindow()
         {
             Rectangle = liveWindow,
             Height = liveWindow.Height,
             Width = liveWindow.Width
         };
         Children.Add(RLW);
         InkCanvas.SetLeft(RLW, setup.target.X);
         InkCanvas.SetTop(RLW, setup.target.Y);
     });
 }