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;
 }
Example #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);
        }
 public PluginLib.IExternalControlData CreateEditorContent(string filePath)
 {
     ControlData ret = new ControlData();
     ret.Control = new AudioPanel(filePath);
     return ret;
 }