diff --git a/wpf/Diagram/Interaction/Deletion.md b/wpf/Diagram/Interaction/Deletion.md index 4cb0c5382b..cae1a9fdc9 100644 --- a/wpf/Diagram/Interaction/Deletion.md +++ b/wpf/Diagram/Interaction/Deletion.md @@ -11,27 +11,27 @@ documentation: ug Selected objects can be deleted by using the Delete key or In-built Delete command through QuickCommand. -* [ItemDeletedEvent](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Diagram.IGraphInfo.html) will notify you with the deleted item in argument. To explore about arguments , please refer to [ItemDeletedEventArgs](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Diagram.ItemDeletedEventArgs.html). +* [ItemDeletedEvent](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Diagram.IGraphInfo.html#Syncfusion_UI_Xaml_Diagram_IGraphInfo_ItemDeleted) will notify you with the deleted item in argument. To explore about arguments , please refer to [ItemDeletedEventArgs](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Diagram.ItemDeletedEventArgs.html). -* [ItemDeletingEvent](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Diagram.IGraphInfo.html) will notify you with the item , option to cancel the deleting operation of item and option to decide on deleting dependent Connector when its Source/Target gets deleting. To explore about arguments , please refer to [ItemDeletingEventArgs](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Diagram.ItemDeletingEventArgs.html). +* [ItemDeletingEvent](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Diagram.IGraphInfo.html#Syncfusion_UI_Xaml_Diagram_IGraphInfo_ItemDeletingEvent) will notify you with the item , option to cancel the deleting operation of item and option to decide on deleting dependent Connector when its Source/Target gets deleting. To explore about arguments , please refer to [ItemDeletingEventArgs](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Diagram.ItemDeletingEventArgs.html). {% tabs %} {% highlight C# %} (diagram.Info as IGraphInfo).ItemDeletingEvent += MainWindow_ItemDeletingEvent; - /// - /// DiagramPreviewEventArgs is the Base class for EventArgs. - /// Casting the args will help us to get ItemDeletingEventArgs. - /// - /// - /// - private void MainWindow_ItemDeletingEvent(object sender, DiagramPreviewEventArgs args) - { - //For Deleting Node Without its Dependent Connector - - (args as ItemDeletingEventArgs).DeleteDependentConnector = false; - } +/// +/// DiagramPreviewEventArgs is the Base class for EventArgs. +/// Casting the args will help us to get ItemDeletingEventArgs. +/// +/// +/// +private void MainWindow_ItemDeletingEvent(object sender, DiagramPreviewEventArgs args) +{ + //For Deleting Node Without its Dependent Connector + + (args as ItemDeletingEventArgs).DeleteDependentConnector = false; +} {% endhighlight %} {% endtabs %} diff --git a/wpf/Diagram/Interaction/Interaction_images/Delete.gif b/wpf/Diagram/Interaction/Interaction_images/Delete.gif index 68cd683e9c..10849229d2 100644 Binary files a/wpf/Diagram/Interaction/Interaction_images/Delete.gif and b/wpf/Diagram/Interaction/Interaction_images/Delete.gif differ