コード例 #1
0
        public ImageSwitcher(Canvas sourceCanvas) : base(sourceCanvas)
        {
            Controller.name.Content = "ImageSwitcher";

            SwitcherImage = new GraphicImage(container);

            GraphicHeight = 500;
            GraphicWidth  = 500;
            X             = 200;
            Y             = 200;
        }
コード例 #2
0
        public Graphic(Canvas sourceCanvas)
        {
            InitializeComponent();
            RenderTransform       = new ScaleTransform();
            RenderTransformOrigin = new Point(0.5, 0.5);
            Panel.SetZIndex(this, 200 - GraphicController.rootList.Count);
            sourceCanvas.Children.Add(this);

            Image        = new GraphicImage(container);
            Controller   = new GraphicController(this);
            AnimationIn  = new GraphicAnimation(this, true);
            AnimationOut = new GraphicAnimation(this, false);

            editor.Target     = this;
            editor.Visibility = Windows.Source.Editing ? Visibility.Visible : Visibility.Collapsed;
        }
コード例 #3
0
ファイル: ImageSlider.cs プロジェクト: WildGenie/PetoGraphics
        public ImageSlider(Canvas sourceCanvas) : base(sourceCanvas)
        {
            Controller.name.Content = "Image Slider";
            changeTimer             = new DispatcherTimer();
            changeTimer.Interval    = TimeSpan.FromSeconds(10);
            changeTimer.Tick       += ChangeTimer_Elapsed;
            changeTimer.Start();

            GraphicHeight = 300;
            GraphicWidth  = 300;
            X             = 1500;
            Y             = 650;

            slider1         = new GraphicImage(container);
            slider1.Stretch = Stretch.Uniform;

            slider2         = new GraphicImage(container);
            slider2.Stretch = Stretch.Uniform;
            slider2.Opacity = 0;
        }