When I add Command in SfDiagram it is not clickable.

Hello,

I've included an example below. I add Command="syncfusion:DiagramCommands.Cut" parameter to the button, but the button is no longer clickable. Is there something else I need to do additionally to use this function? I have included sample code below.


Attachment: WpfApp9_f243f57d.rar

1 Reply

KR Karkuvel Rajan Shanmugavel Syncfusion Team May 19, 2023 11:43 AM UTC

Hi Ozgur,


We have fixed the reported issue of “Cut command is not working” in the sample level. When we used DiagramCommands in Command we need to set Focus to its parent element. Please find the code changes in below table and updated sample in the attachment.


 

<StackPanel Orientation="Horizontal" FocusManager.IsFocusScope="True" Focusable="True">

            <Button Content="Cut"

                    Command="syncfusion:DiagramCommands.Cut"

                    CommandParameter="Cut" />

        </StackPanel>

 


Regards,

Karkuvel Rajan S


Attachment: WpfApp9_Updated_b0d7ab20.zip

Loader.
Up arrow icon