private void RemoveWidget(IComponent iWidget) { IDraw iDrawable = iWidget as IDraw; if (iDrawable != null) { serviceDocument.RemoveWidget(iWidget.Component as Widget); canvasDraw.Children.Remove(iDrawable as UIElement); } }
private void RemoveWidget(IComponent iWidget) { IDraw iDrawable = iWidget as IDraw; if (iDrawable != null) { serviceDocument.RemoveWidget(iWidget.Component as Widget); canvasDraw.Children.Remove(iDrawable as UIElement); } }