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 610610 <Button Grid.Column=" 1"
611611 Classes =" icon_button"
612612 Width =" 28" Height =" 28"
613- Click =" OnRemoveSelectedCustomAction" >
613+ Click =" OnRemoveSelectedCustomAction"
614+ IsEnabled =" {Binding #ThisControl.SelectedCustomAction, Converter={x:Static ObjectConverters.IsNotNull}}" >
614615 <Path Width =" 14" Height =" 14" Data =" {StaticResource Icons.Minus}" />
615616 </Button >
616617 <Button Grid.Column=" 2"
617618 Classes =" icon_button"
618619 Width =" 28" Height =" 28"
619- Click =" OnDuplicateSelectedCustomAction" >
620+ Click =" OnDuplicateSelectedCustomAction"
621+ IsEnabled =" {Binding #ThisControl.SelectedCustomAction, Converter={x:Static ObjectConverters.IsNotNull}}" >
620622 <Path Width =" 14" Height =" 14" Data =" {StaticResource Icons.Copy}" />
621623 </Button >
622624 <Button Grid.Column=" 4"
Original file line number Diff line number Diff line change 434434 <Button Grid.Column=" 1"
435435 Classes =" icon_button"
436436 Width =" 28" Height =" 28"
437- Command =" {Binding RemoveSelectedCustomAction}" >
437+ Command =" {Binding RemoveSelectedCustomAction}"
438+ IsEnabled =" {Binding SelectedCustomAction, Converter={x:Static ObjectConverters.IsNotNull}}" >
438439 <Path Width =" 14" Height =" 14" Data =" {StaticResource Icons.Minus}" />
439440 </Button >
440441 <Button Grid.Column=" 2"
441442 Classes =" icon_button"
442443 Width =" 28" Height =" 28"
443- Command =" {Binding DuplicateSelectedCustomAction}" >
444+ Command =" {Binding DuplicateSelectedCustomAction}"
445+ IsEnabled =" {Binding SelectedCustomAction, Converter={x:Static ObjectConverters.IsNotNull}}" >
444446 <Path Width =" 14" Height =" 14" Data =" {StaticResource Icons.Copy}" />
445447 </Button >
446448 <Button Grid.Column=" 4"
You can’t perform that action at this time.
0 commit comments