Ejemplo n.º 1
0
 public PluginLib.IExternalControlData CreateEditorContent(string filePath)
 {
     StackPanel grid = new StackPanel();
     Image img = new Image();
     grid.Children.Add(img);
     grid.CanVerticallyScroll = true;
     grid.CanHorizontallyScroll = true;
     grid.HorizontalAlignment = System.Windows.HorizontalAlignment.Center;
     grid.VerticalAlignment = System.Windows.VerticalAlignment.Center;
     img.MouseWheel += img_MouseWheel;
     img.Source = new BitmapImage(new Uri(filePath));
     img.Width = img.Source.Width;
     img.Height = img.Source.Height;
     ControlData ret = new ControlData();
     ret.Control = grid;
     img.Tag = ret;
     return ret;
 }
Ejemplo n.º 2
0
        public PluginLib.IExternalControlData CreateEditorContent(string filePath)
        {
            StackPanel grid = new StackPanel();
            Image      img  = new Image();

            grid.Children.Add(img);
            grid.CanVerticallyScroll   = true;
            grid.CanHorizontallyScroll = true;
            grid.HorizontalAlignment   = System.Windows.HorizontalAlignment.Center;
            grid.VerticalAlignment     = System.Windows.VerticalAlignment.Center;
            img.MouseWheel            += img_MouseWheel;
            img.Source = new BitmapImage(new Uri(filePath));
            img.Width  = img.Source.Width;
            img.Height = img.Source.Height;
            ControlData ret = new ControlData();

            ret.Control = grid;
            img.Tag     = ret;
            return(ret);
        }
Ejemplo n.º 3
0
 public PluginLib.IExternalControlData CreateEditorContent(string filePath)
 {
     ControlData ret = new ControlData();
     ret.Control = new AudioPanel(filePath);
     return ret;
 }