Inheritance: IDisposable
コード例 #1
0
 public void setTool(GenericWindow gen)
 {
     this.DataContext = current = gen;
     current.Disposing += Current_Disposing;
     BitmapSource bitmap = gen.GetImage();
     double scale = screenShot.Width / (bitmap.Width > bitmap.Height ? bitmap.Width : bitmap.Height);
     screenShot.Source = new TransformedBitmap(bitmap, new ScaleTransform(scale, scale));
 }
コード例 #2
0
 private void taskPanePanel_ToolMouseOver(object sender, GenericWindow e)
 {
     taskPaneInfoPanel.setTool(e);
     if (!TaskPaneInfoPanelOpen)
     {
         TaskPaneInfoPanelOpen = true;
         taskPaneInfoPanel.BeginDoubleAnimation(WidthProperty, 300, 100);
     }
 }
コード例 #3
0
        public void setTool(GenericWindow gen)
        {
            this.DataContext   = current = gen;
            current.Disposing += Current_Disposing;
            BitmapSource bitmap = gen.GetImage();
            double       scale  = screenShot.Width / (bitmap.Width > bitmap.Height ? bitmap.Width : bitmap.Height);

            screenShot.Source = new TransformedBitmap(bitmap, new ScaleTransform(scale, scale));
        }
コード例 #4
0
 private void taskPanePanel_ToolMouseOver(object sender, GenericWindow e)
 {
     taskPaneInfoPanel.setTool(e);
     if (!TaskPaneInfoPanelOpen)
     {
         TaskPaneInfoPanelOpen = true;
         taskPaneInfoPanel.BeginDoubleAnimation(WidthProperty, 300, 100);
     }
 }