|
17 | 17 | <converters:BoolToVisibleVisibilityConverter x:Key="BoolToVisibleVisibility" /> |
18 | 18 | <BitmapImage x:Key="InvalidNameImage" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/cross-circle.png" /> |
19 | 19 | <Style TargetType="Image" x:Key="InvalidNameIconStyle"> |
20 | | - <Setter Property="Source" Value="{StaticResource InvalidNameImage}" /> |
| 20 | + <Setter Property="Source" Value="{DynamicResource InvalidNameImage}" /> |
21 | 21 | <Setter Property="Height" Value="16" /> |
22 | 22 | <Setter Property="Margin" Value="0,0,-8,0" /> |
23 | 23 | <Setter Property="HorizontalAlignment" Value="Right" /> |
|
36 | 36 | <RowDefinition Height="*" /> |
37 | 37 | <RowDefinition Height="40" /> |
38 | 38 | </Grid.RowDefinitions> |
39 | | - <StackPanel Grid.Row="0" Background="{StaticResource BackgroundLightBrush}"> |
| 39 | + <StackPanel Grid.Row="0" Background="{DynamicResource BackgroundLightBrush}"> |
40 | 40 | <Label Content="{Resx ResxName=Rubberduck.Refactorings.RefactoringsUI, Key=EncapsulateField_TitleText}" |
41 | 41 | FontWeight="Bold" /> |
42 | 42 | <TextBlock Text="{Resx ResxName=Rubberduck.Refactorings.RefactoringsUI, Key=EncapsulateField_InstructionText}" |
|
67 | 67 | HorizontalAlignment="Left" |
68 | 68 | DisplayMemberPath="FieldDeclarationBlock" |
69 | 69 | SelectedItem="{Binding SelectedObjectStateUDT, Mode=TwoWay}" |
70 | | - Visibility="{Binding ShowStateUDTSelections, Converter={StaticResource BoolToVisibleVisibility}}"> |
| 70 | + Visibility="{Binding ShowStateUDTSelections, Converter={DynamicResource BoolToVisibleVisibility}}"> |
71 | 71 | </ComboBox> |
72 | 72 | </StackPanel> |
73 | 73 | <Grid Grid.Row="1" Margin="5"> |
|
84 | 84 | <TextBlock Grid.Column="0" Margin="0,5" |
85 | 85 | Text="{Resx ResxName=Rubberduck.Refactorings.RefactoringsUI, Key=ExtractInterface_MembersGroupBox}" /> |
86 | 86 | <StackPanel Grid.Column="1" Margin="5" Orientation="Horizontal"> |
87 | | - <Button Style="{StaticResource CommandButtonStyle}" TabIndex="2" |
| 87 | + <Button Style="{DynamicResource CommandButtonStyle}" TabIndex="2" |
88 | 88 | Content="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=SelectAll_Button}" |
89 | 89 | Command="{Binding SelectAllCommand}" /> |
90 | | - <Button Style="{StaticResource CommandButtonStyle}" TabIndex="3" |
| 90 | + <Button Style="{DynamicResource CommandButtonStyle}" TabIndex="3" |
91 | 91 | Content="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=DeselectAll_Button}" |
92 | 92 | Command="{Binding DeselectAllCommand}"> |
93 | 93 | </Button> |
|
112 | 112 | Text="{Binding TargetDeclarationExpression, Mode=OneWay}" |
113 | 113 | FontWeight="Bold"> |
114 | 114 | </TextBlock> |
115 | | - <Image Style="{StaticResource InvalidNameIconStyle}" |
116 | | - Visibility="{Binding Path=HasValidEncapsulationAttributes, Converter={StaticResource BoolToHiddenVisibility}}" /> |
| 115 | + <Image Style="{DynamicResource InvalidNameIconStyle}" |
| 116 | + Visibility="{Binding Path=HasValidEncapsulationAttributes, Converter={DynamicResource BoolToHiddenVisibility}}" /> |
117 | 117 | </StackPanel> |
118 | 118 | </DataTemplate> |
119 | 119 | </ListBox.ItemTemplate> |
120 | 120 | </ListBox> |
121 | 121 | </StackPanel> |
122 | 122 | </Grid> |
123 | | - <Grid Grid.Row="2" Margin="5" Visibility="{Binding Path=SelectedFieldIsNotFlagged, Converter={StaticResource BoolToHiddenVisibility}}"> |
| 123 | + <Grid Grid.Row="2" Margin="5" Visibility="{Binding Path=SelectedFieldIsNotFlagged, Converter={DynamicResource BoolToHiddenVisibility}}"> |
124 | 124 | <Grid.ColumnDefinitions> |
125 | 125 | <ColumnDefinition Width="Auto" /> |
126 | 126 | <ColumnDefinition Width="*" /> |
127 | 127 | </Grid.ColumnDefinitions> |
128 | 128 | <StackPanel> |
129 | | - <GroupBox Visibility="{Binding Path=IsEmptyList, Converter={StaticResource BoolToHiddenVisibility}}" |
| 129 | + <GroupBox Visibility="{Binding Path=IsEmptyList, Converter={DynamicResource BoolToHiddenVisibility}}" |
130 | 130 | Margin="5"> |
131 | 131 | <GroupBox.Header> |
132 | 132 | <TextBlock Text="{Binding Path=GroupBoxHeaderContent}" FontWeight="Bold" /> |
|
137 | 137 | <RowDefinition Height="Auto"/> |
138 | 138 | <RowDefinition Height="Auto"/> |
139 | 139 | </Grid.RowDefinitions> |
140 | | - <TextBlock Grid.Row="0" Visibility="{Binding Path=SelectedFieldIsPrivateUDT, Converter={StaticResource BoolToVisibleVisibility}}" |
| 140 | + <TextBlock Grid.Row="0" Visibility="{Binding Path=SelectedFieldIsPrivateUDT, Converter={DynamicResource BoolToVisibleVisibility}}" |
141 | 141 | Text="{Resx ResxName=Rubberduck.Refactorings.RefactoringsUI, Key=EncapsulateField_PrivateUDTPropertyText}" |
142 | 142 | Margin="10,5" /> |
143 | | - <TextBox Grid.Row="1" Visibility="{Binding Path=SelectedFieldHasEditablePropertyName, Converter={StaticResource BoolToVisibleVisibility}}" |
| 143 | + <TextBox Grid.Row="1" Visibility="{Binding Path=SelectedFieldHasEditablePropertyName, Converter={DynamicResource BoolToVisibleVisibility}}" |
144 | 144 | Text="{Binding Path=PropertyName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" |
145 | 145 | TabIndex="1" Margin="10,5" |
146 | 146 | VerticalAlignment="Center" |
147 | 147 | VerticalContentAlignment="Center" |
148 | 148 | Height="22" /> |
149 | | - <Image Grid.Row="1" Style="{StaticResource InvalidNameIconStyle}" |
150 | | - Visibility="{Binding Path=SelectionHasValidEncapsulationAttributes, Converter={StaticResource BoolToHiddenVisibility}}" /> |
| 149 | + <Image Grid.Row="1" Style="{DynamicResource InvalidNameIconStyle}" |
| 150 | + Visibility="{Binding Path=SelectionHasValidEncapsulationAttributes, Converter={DynamicResource BoolToHiddenVisibility}}" /> |
151 | 151 | </Grid> |
152 | 152 | <CheckBox IsChecked="{Binding Path=IsReadOnly, Mode=TwoWay}" |
153 | 153 | IsEnabled="{Binding Path=EnableReadOnlyOption}" |
|
168 | 168 | <StackPanel Grid.Row="3" Margin="10,5" Orientation="Horizontal"> |
169 | 169 | <TextBlock Text="{Resx ResxName=Rubberduck.Refactorings.RefactoringsUI, Key=EncapsulateField_Preview}" |
170 | 170 | FontSize="14" FontWeight="Bold" /> |
171 | | - <Image Style="{StaticResource InvalidNameIconStyle}" Margin="0,-4" |
172 | | - Visibility="{Binding Path=HasValidNames, Converter={StaticResource BoolToHiddenVisibility}}" /> |
| 171 | + <Image Style="{DynamicResource InvalidNameIconStyle}" Margin="0,-4" |
| 172 | + Visibility="{Binding Path=HasValidNames, Converter={DynamicResource BoolToHiddenVisibility}}" /> |
173 | 173 | </StackPanel> |
174 | 174 | <controls:BindableTextEditor Grid.Row="4" Margin="10" BorderThickness="1" |
175 | 175 | FontFamily="Courier New " |
|
188 | 188 | </Grid.ColumnDefinitions> |
189 | 189 | <Button Content="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=OK}" |
190 | 190 | Grid.Column="0" |
191 | | - Style="{StaticResource CommandButtonStyle}" |
| 191 | + Style="{DynamicResource CommandButtonStyle}" |
192 | 192 | IsEnabled="{Binding IsValidInterfaceName}" |
193 | 193 | Command="{Binding OkButtonCommand}" /> |
194 | 194 | <Button Content="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=CancelButtonText}" |
195 | 195 | Grid.Column="1" |
196 | | - Style="{StaticResource CommandButtonStyle}" |
| 196 | + Style="{DynamicResource CommandButtonStyle}" |
197 | 197 | Command="{Binding CancelButtonCommand}"/> |
198 | 198 | </Grid> |
199 | 199 | </Grid> |
|
0 commit comments