コード例 #1
0
        public DesignSurface()
        {
            Controller = new DesignSurfaceController(this, new FunctionDefinition());
            Width      = _defaultSize.X;
            Height     = _defaultSize.Y;

            Background = new SolidColorBrush(Colors.LightGray);
        }
コード例 #2
0
        public DesignSurface()
        {
            Controller = new DesignSurfaceController(this, new FunctionDefinition());
              Width = _defaultSize.X;
              Height = _defaultSize.Y;

              Background = new SolidColorBrush(Colors.LightGray);
        }
コード例 #3
0
 private void OnNewFunctionExecute(object parameter)
 {
     if (Controller != null)
     {
         Controller.Teardown();
     }
     Controller = new DesignSurfaceController(this, new FunctionDefinition());
     ClearCommand.RaiseCanExecuteChanged();
     ClearCommand.RaiseCanExecuteChanged();
 }
コード例 #4
0
 private void OnNewFunctionExecute(object parameter)
 {
     if (Controller != null) Controller.Teardown();
       Controller = new DesignSurfaceController(this, new FunctionDefinition());
       ClearCommand.RaiseCanExecuteChanged();
       ClearCommand.RaiseCanExecuteChanged();
 }