Ignore:
Timestamp:
Nov 21, 2010, 12:38:17 PM (11 years ago)
Author:
matkovic
Message:

-LogPresentation completely new designed
-Usability improved
-Style Changed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/WorkspaceManager/View/Container/WorkSpaceEditorView.xaml.cs

    r2072 r2118  
    3333    public partial class WorkSpaceEditorView : UserControl
    3434    {
    35         private double prevX = 0, prevY = 0;
    36         private bool IsDragStarted;
    3735        private Point previousDragPoint = new Point();
    3836        private ConnectorView selectedConnector;
    3937        private PluginContainerView selectedPluginContainer;
    4038        private CryptoLineView dummyLine = new CryptoLineView();
    41         private Point point;
    4239        private PluginContainerView currentFullViewContainer;
    4340        private Panel root { get { return (this.ViewBox.Content as Panel); } }
     
    205202
    206203            Binding binding = new Binding();
    207             binding.Source = connectable;
    208             binding.Path = new PropertyPath(ConnectorView.X);
    209             multiBinding.Bindings.Add(binding);
    210 
    211             binding = new Binding();
    212             binding.Source = connectable;
    213             binding.Path = new PropertyPath(ConnectorView.Y);
     204            binding.Source = connectable.Parent;
     205            binding.Path = new PropertyPath(PluginContainerView.X);
     206            multiBinding.Bindings.Add(binding);
     207
     208            binding = new Binding();
     209            binding.Source = connectable.Parent;
     210            binding.Path = new PropertyPath(PluginContainerView.Y);
    214211            multiBinding.Bindings.Add(binding);
    215212
     
    224221            multiBinding.Bindings.Add(binding);
    225222
     223            binding = new Binding();
     224            binding.Source = connectable.Parent.West;
     225            binding.Path = new PropertyPath(FrameworkElement.ActualHeightProperty);
     226            multiBinding.Bindings.Add(binding);
     227
     228            binding = new Binding();
     229            binding.Source = connectable.Parent.East;
     230            binding.Path = new PropertyPath(FrameworkElement.ActualHeightProperty);
     231            multiBinding.Bindings.Add(binding);
     232
     233            binding = new Binding();
     234            binding.Source = connectable.Parent.North;
     235            binding.Path = new PropertyPath(FrameworkElement.ActualWidthProperty);
     236            multiBinding.Bindings.Add(binding);
     237
     238            binding = new Binding();
     239            binding.Source = connectable.Parent.South;
     240            binding.Path = new PropertyPath(FrameworkElement.ActualWidthProperty);
     241            multiBinding.Bindings.Add(binding);
    226242
    227243            return multiBinding;
Note: See TracChangeset for help on using the changeset viewer.