internal void RemoveDraggableComponent(DraggableComponent draggableComponent) { CurrentLayer.RemoveDraggableComponent(draggableComponent); }
internal void RemoveDraggableComponent(DraggableComponent draggableComponent) { if (draggableComponent.GetType() == typeof (AnchoredTag)) { ((AnchoredTag) draggableComponent).Unset(); } layerModel.Components.Remove(draggableComponent); RaisePropertyChanged("DraggableComponents"); RaisePropertyChanged("RemoveDraggableComponent"); // To update the view through LayerContainer.xaml.cs }