コード例 #1
0
ファイル: Label.cs プロジェクト: Givemebuff/WPFBoardDesigner
        public ControlWrapper GetCandy()
        {
            ControlWrapper cw = new ControlWrapper();

            cw.Protect(new BoardLabel());
            return(cw);
        }
コード例 #2
0
ファイル: Image.cs プロジェクト: Givemebuff/WPFBoardDesigner
        public ControlWrapper GetCandy()
        {
            ControlWrapper cw    = new ControlWrapper();
            BoardImage     image = new BoardImage();

            cw.Protect(image);
            return(cw);
        }
コード例 #3
0
ファイル: Video.cs プロジェクト: Givemebuff/WPFBoardDesigner
        public ControlWrapper GetCandy()
        {
            ControlWrapper   cw = new ControlWrapper();
            BoardMediaPlayer p  = new BoardMediaPlayer();

            cw.Protect(p);
            return(cw);
        }
コード例 #4
0
        public ControlWrapper GetCandy()
        {
            ControlWrapper cw    = new ControlWrapper();
            DesignerChart  dc    = new DesignerChart();
            BoardChart     chart = new BoardChart(dc);

            cw.Protect(chart);
            return(cw);
        }
コード例 #5
0
        public ControlWrapper GetCandy()
        {
            ControlWrapper cw = new ControlWrapper();
            DesignerTable  tb = new DesignerTable();

            tb.Size.Width  = 400;
            tb.Size.Height = 300;
            BoardDataGrid bf = new BoardDataGrid(tb);

            cw.Protect(bf);
            return(cw);
        }
コード例 #6
0
    { public ControlWrapper GetCandy()
      {
          ControlWrapper     cw = new ControlWrapper();
          DesignerProcessbar pb = new DesignerProcessbar();

          pb.Size.Width  = 200;
          pb.Size.Height = 50;
          BoardProcessbar bf = new BoardProcessbar(pb);

          cw.Protect(bf);
          return(cw);
      }
コード例 #7
0
        public ControlWrapper GetCandy()
        {
            ControlWrapper       cw = new ControlWrapper();
            DesignerDynamicLabel dg = new DesignerDynamicLabel();

            dg.Size.Width  = 150;
            dg.Size.Height = 50;
            dg.Text        = "动态文本";
            BoardDynamicLabel bf = new BoardDynamicLabel(dg);

            cw.Protect(bf);
            return(cw);
        }
コード例 #8
0
ファイル: Clock.cs プロジェクト: Givemebuff/WPFBoardDesigner
        public ControlWrapper GetCandy()
        {
            ControlWrapper cw    = new ControlWrapper();
            DesignerClock  clock = new DesignerClock();

            clock.Size.Width  = 200;
            clock.Size.Height = 50;

            BoardClock bf = new BoardClock(clock);

            cw.Protect(bf);
            return(cw);
        }
コード例 #9
0
        public ControlWrapper GetCandy()
        {
            ControlWrapper cw = new ControlWrapper();
            DesignerGif    dg = new DesignerGif();

            dg.Size.Width     = 200;
            dg.Size.Height    = 200;
            dg.GIFImageSource = "GifDemo.gif";
            dg.AutoPlay       = true;

            BoardGif bf = new BoardGif(dg);

            cw.Protect(bf);
            return(cw);
        }