File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 605
605
<Button Grid.Column=" 1"
606
606
Classes =" icon_button"
607
607
Width =" 28" Height =" 28"
608
- Click =" OnRemoveSelectedCustomAction" >
608
+ Click =" OnRemoveSelectedCustomAction"
609
+ IsEnabled =" {Binding #ThisControl.SelectedCustomAction, Converter={x:Static ObjectConverters.IsNotNull}}" >
609
610
<Path Width =" 14" Height =" 14" Data =" {StaticResource Icons.Minus}" />
610
611
</Button >
611
612
<Button Grid.Column=" 2"
612
613
Classes =" icon_button"
613
614
Width =" 28" Height =" 28"
614
- Click =" OnDuplicateSelectedCustomAction" >
615
+ Click =" OnDuplicateSelectedCustomAction"
616
+ IsEnabled =" {Binding #ThisControl.SelectedCustomAction, Converter={x:Static ObjectConverters.IsNotNull}}" >
615
617
<Path Width =" 14" Height =" 14" Data =" {StaticResource Icons.Copy}" />
616
618
</Button >
617
619
<Button Grid.Column=" 4"
Original file line number Diff line number Diff line change 434
434
<Button Grid.Column=" 1"
435
435
Classes =" icon_button"
436
436
Width =" 28" Height =" 28"
437
- Command =" {Binding RemoveSelectedCustomAction}" >
437
+ Command =" {Binding RemoveSelectedCustomAction}"
438
+ IsEnabled =" {Binding SelectedCustomAction, Converter={x:Static ObjectConverters.IsNotNull}}" >
438
439
<Path Width =" 14" Height =" 14" Data =" {StaticResource Icons.Minus}" />
439
440
</Button >
440
441
<Button Grid.Column=" 2"
441
442
Classes =" icon_button"
442
443
Width =" 28" Height =" 28"
443
- Command =" {Binding DuplicateSelectedCustomAction}" >
444
+ Command =" {Binding DuplicateSelectedCustomAction}"
445
+ IsEnabled =" {Binding SelectedCustomAction, Converter={x:Static ObjectConverters.IsNotNull}}" >
444
446
<Path Width =" 14" Height =" 14" Data =" {StaticResource Icons.Copy}" />
445
447
</Button >
446
448
<Button Grid.Column=" 4"
You can’t perform that action at this time.
0 commit comments