This is a migrated thread and some comments may be shown as answers.

Z-index changed event?

1 Answer 155 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Dario Concilio
Top achievements
Rank 2
Dario Concilio asked on 14 Jun 2017, 10:20 AM
Which event triggers when the Z-index of a shape changes?

1 Answer, 1 is accepted

Sort by
0
Dario Concilio
Top achievements
Rank 2
answered on 14 Jun 2017, 11:45 AM

I found it....

private void topRadDiagram_CommandExecuted(object sender, CommandRoutedEventArgs e)
{
    //Indietro
    if (e.Command.Name == "Send Backward")
    {
        foreach (RadDiagramShape item in this.topRadDiagram.SelectedItems)
        {
            if (item.ZIndex < 2)
                item.ZIndex = 2;
        }
    }
 
    //Secondo piano
    if (e.Command.Name == "Send To Back")
    {
        foreach (RadDiagramShape item in this.topRadDiagram.SelectedItems)
        {
            if (item.ZIndex < 2)
                item.ZIndex = 2;
        }
    }
 
}
Tags
Diagram
Asked by
Dario Concilio
Top achievements
Rank 2
Answers by
Dario Concilio
Top achievements
Rank 2
Share this question
or