Ejemplo n.º 1
0
 public ElementViewModel(ObservableCollection<ElementBaseViewModel> sourceElement, DesignerItem designerItem)
 {
     Source = sourceElement;
     ShowOnPlanCommand = new RelayCommand(OnShowOnPlan);
     DesignerItem = designerItem;
     DesignerItem.PropertyChanged += (s, e) =>
     {
         if (e.PropertyName == "Title")
             OnPropertyChanged("Name");
     };
 }
Ejemplo n.º 2
0
		public ElementViewModel(DesignerItem designerItem)
		{
			ShowOnPlanCommand = new RelayCommand(OnShowOnPlan);
			DesignerItem = designerItem;
			DesignerItem.TitleChanged += (s, e) => OnPropertyChanged(() => Name);
			IsGroupHasChild = true;
			IconSource = DesignerItem.IconSource;
			DesignerItem.IconSourceChanged += (s, e) =>
			{
				IconSource = DesignerItem.IconSource;
				OnPropertyChanged(() => IconSource);
			};
		}
Ejemplo n.º 3
0
 public ResizeChrome(DesignerItem designerItem)
 {
     DesignerItem = designerItem;
     AddHandler(Thumb.DragDeltaEvent, new DragDeltaEventHandler(ResizeThumb_DragDelta));
     Loaded += (s, e) => UpdateZoom();
 }
Ejemplo n.º 4
0
		public override void RegisterDesignerItem(DesignerItem designerItem)
		{
			base.RegisterDesignerItem(designerItem);
			PlansViewModel.RegisterDesignerItem(designerItem);
		}
Ejemplo n.º 5
0
		public virtual void RegisterDesignerItem(DesignerItem designerItem)
		{
		}
Ejemplo n.º 6
0
		public ResizeChrome(DesignerItem designerItem)
		{
			_isRendered = true;
			_visibleTransform = new ScaleTransform(0, 0);
			_canResize = false;
			_isVisible = false;
			DesignerItem = designerItem;
			ResetElement();
		}
Ejemplo n.º 7
0
		public ResizeChromePoint(DesignerItem designerItem)
			: base(designerItem)
		{
			PrepareBounds();
		}
Ejemplo n.º 8
0
 public ResizeChromeShape(DesignerItem designerItem)
     : base(designerItem)
 {
     Loaded += new RoutedEventHandler(ResizeChromeShape_Loaded);
 }
Ejemplo n.º 9
0
		public void RemoveDesignerItem(DesignerItem designerItem)
		{
			RemoveElement(designerItem.Element);
			Remove(designerItem);
			Refresh();
		}
Ejemplo n.º 10
0
 public void RegisterDesignerItem(DesignerItem designerItem)
 {
     foreach (var planExtension in _planExtensions)
         planExtension.RegisterDesignerItem(designerItem);
 }
Ejemplo n.º 11
0
 public ResizeChromePoint(DesignerItem designerItem)
     : base(designerItem)
 {
 }
Ejemplo n.º 12
0
		public ResizeChromeShape(DesignerItem designerItem)
			: base(designerItem)
		{
			PrepareSizableBounds();
		}