File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
RetailCoder.VBE/UI/Refactorings/RemoveParameters Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 4
4
xmlns : mc =" http://schemas.openxmlformats.org/markup-compatibility/2006"
5
5
xmlns : d =" http://schemas.microsoft.com/expression/blend/2008"
6
6
xmlns : removeParameters =" clr-namespace:Rubberduck.UI.Refactorings.RemoveParameters"
7
+ xmlns : converters =" clr-namespace:Rubberduck.UI.Converters"
7
8
mc : Ignorable =" d"
8
9
d : DesignHeight =" 300" d : DesignWidth =" 300" >
9
10
<UserControl .Resources>
11
+ <converters : InvertBoolValueConverter x : Key =" InvertedBool" />
10
12
<removeParameters : ParameterTextDecorationConverter x : Key =" ParameterTextDecoration" />
11
13
</UserControl .Resources>
12
14
<Grid >
52
54
Margin =" 5,5,5,0"
53
55
Padding =" 5,0"
54
56
HorizontalContentAlignment =" Left"
57
+ IsEnabled =" {Binding ElementName=ParameterGrid, Path=SelectedItem.IsRemoved, Converter={StaticResource InvertedBool}}"
55
58
Command =" {Binding RemoveParameterCommand}"
56
59
CommandParameter =" {Binding ElementName=ParameterGrid, Path=SelectedItem}" >
57
60
<StackPanel Orientation =" Horizontal" >
64
67
Margin =" 5,5,5,0"
65
68
Padding =" 5,0"
66
69
HorizontalContentAlignment =" Left"
70
+ IsEnabled =" {Binding ElementName=ParameterGrid, Path=SelectedItem.IsRemoved}"
67
71
Command =" {Binding RestoreParameterCommand}"
68
72
CommandParameter =" {Binding ElementName=ParameterGrid, Path=SelectedItem}" >
69
73
<StackPanel Orientation =" Horizontal" >
You can’t perform that action at this time.
0 commit comments