@@ -142,7 +142,7 @@ void IExpandCollapseProvider.Expand()
142
142
UIElement owner = GetWrapper ( ) ;
143
143
if ( owner == null )
144
144
{
145
- throw new ElementNotAvailableException ( Microsoft . Windows . Controls . SR . Get ( Microsoft . Windows . Controls . SRID . VirtualizedElement ) ) ;
145
+ throw new ElementNotAvailableException ( Microsoft . Windows . Controls . SR . VirtualizedElement ) ;
146
146
}
147
147
148
148
RibbonMenuItem menuItemOwner = owner as RibbonMenuItem ;
@@ -153,14 +153,14 @@ void IExpandCollapseProvider.Expand()
153
153
if ( ( role != MenuItemRole . TopLevelHeader && role != MenuItemRole . SubmenuHeader )
154
154
|| ! menuItemOwner . HasItems )
155
155
{
156
- throw new InvalidOperationException ( Microsoft . Windows . Controls . SR . Get ( Microsoft . Windows . Controls . SRID . UIA_OperationCannotBePerformed ) ) ;
156
+ throw new InvalidOperationException ( Microsoft . Windows . Controls . SR . UIA_OperationCannotBePerformed ) ;
157
157
}
158
158
159
159
menuItemOwner . IsSubmenuOpen = true ;
160
160
}
161
161
else
162
162
{
163
- throw new InvalidOperationException ( Microsoft . Windows . Controls . SR . Get ( Microsoft . Windows . Controls . SRID . UIA_OperationCannotBePerformed ) ) ;
163
+ throw new InvalidOperationException ( Microsoft . Windows . Controls . SR . UIA_OperationCannotBePerformed ) ;
164
164
}
165
165
}
166
166
@@ -173,7 +173,7 @@ void IExpandCollapseProvider.Collapse()
173
173
UIElement owner = GetWrapper ( ) ;
174
174
if ( owner == null )
175
175
{
176
- throw new ElementNotAvailableException ( Microsoft . Windows . Controls . SR . Get ( Microsoft . Windows . Controls . SRID . VirtualizedElement ) ) ;
176
+ throw new ElementNotAvailableException ( Microsoft . Windows . Controls . SR . VirtualizedElement ) ;
177
177
}
178
178
179
179
RibbonMenuItem menuItemOwner = owner as RibbonMenuItem ;
@@ -184,14 +184,14 @@ void IExpandCollapseProvider.Collapse()
184
184
if ( ( role != MenuItemRole . TopLevelHeader && role != MenuItemRole . SubmenuHeader )
185
185
|| ! menuItemOwner . HasItems )
186
186
{
187
- throw new InvalidOperationException ( Microsoft . Windows . Controls . SR . Get ( Microsoft . Windows . Controls . SRID . UIA_OperationCannotBePerformed ) ) ;
187
+ throw new InvalidOperationException ( Microsoft . Windows . Controls . SR . UIA_OperationCannotBePerformed ) ;
188
188
}
189
189
190
190
menuItemOwner . IsSubmenuOpen = false ;
191
191
}
192
192
else
193
193
{
194
- throw new InvalidOperationException ( Microsoft . Windows . Controls . SR . Get ( Microsoft . Windows . Controls . SRID . UIA_OperationCannotBePerformed ) ) ;
194
+ throw new InvalidOperationException ( Microsoft . Windows . Controls . SR . UIA_OperationCannotBePerformed ) ;
195
195
}
196
196
}
197
197
@@ -203,7 +203,7 @@ ExpandCollapseState IExpandCollapseProvider.ExpandCollapseState
203
203
UIElement owner = GetWrapper ( ) ;
204
204
if ( owner == null )
205
205
{
206
- throw new ElementNotAvailableException ( Microsoft . Windows . Controls . SR . Get ( Microsoft . Windows . Controls . SRID . VirtualizedElement ) ) ;
206
+ throw new ElementNotAvailableException ( Microsoft . Windows . Controls . SR . VirtualizedElement ) ;
207
207
}
208
208
209
209
ExpandCollapseState result = ExpandCollapseState . Collapsed ;
@@ -224,7 +224,7 @@ ExpandCollapseState IExpandCollapseProvider.ExpandCollapseState
224
224
}
225
225
else
226
226
{
227
- throw new InvalidOperationException ( Microsoft . Windows . Controls . SR . Get ( Microsoft . Windows . Controls . SRID . UIA_OperationCannotBePerformed ) ) ;
227
+ throw new InvalidOperationException ( Microsoft . Windows . Controls . SR . UIA_OperationCannotBePerformed ) ;
228
228
}
229
229
230
230
return result ;
@@ -243,13 +243,13 @@ void IInvokeProvider.Invoke()
243
243
UIElement owner = GetWrapper ( ) ;
244
244
if ( owner == null )
245
245
{
246
- throw new ElementNotAvailableException ( Microsoft . Windows . Controls . SR . Get ( Microsoft . Windows . Controls . SRID . VirtualizedElement ) ) ;
246
+ throw new ElementNotAvailableException ( Microsoft . Windows . Controls . SR . VirtualizedElement ) ;
247
247
}
248
248
249
249
RibbonMenuItem menuItemOwner = owner as RibbonMenuItem ;
250
250
if ( menuItemOwner == null )
251
251
{
252
- throw new InvalidOperationException ( Microsoft . Windows . Controls . SR . Get ( Microsoft . Windows . Controls . SRID . UIA_OperationCannotBePerformed ) ) ;
252
+ throw new InvalidOperationException ( Microsoft . Windows . Controls . SR . UIA_OperationCannotBePerformed ) ;
253
253
}
254
254
255
255
menuItemOwner . ClickItemInternal ( ) ;
@@ -267,13 +267,13 @@ void IToggleProvider.Toggle()
267
267
UIElement owner = GetWrapper ( ) ;
268
268
if ( owner == null )
269
269
{
270
- throw new ElementNotAvailableException ( Microsoft . Windows . Controls . SR . Get ( Microsoft . Windows . Controls . SRID . VirtualizedElement ) ) ;
270
+ throw new ElementNotAvailableException ( Microsoft . Windows . Controls . SR . VirtualizedElement ) ;
271
271
}
272
272
273
273
RibbonMenuItem menuItemOwner = owner as RibbonMenuItem ;
274
274
if ( menuItemOwner == null || ! menuItemOwner . IsCheckable )
275
275
{
276
- throw new InvalidOperationException ( Microsoft . Windows . Controls . SR . Get ( Microsoft . Windows . Controls . SRID . UIA_OperationCannotBePerformed ) ) ;
276
+ throw new InvalidOperationException ( Microsoft . Windows . Controls . SR . UIA_OperationCannotBePerformed ) ;
277
277
}
278
278
279
279
menuItemOwner . IsChecked = ! menuItemOwner . IsChecked ;
@@ -287,13 +287,13 @@ ToggleState IToggleProvider.ToggleState
287
287
UIElement owner = GetWrapper ( ) ;
288
288
if ( owner == null )
289
289
{
290
- throw new ElementNotAvailableException ( Microsoft . Windows . Controls . SR . Get ( Microsoft . Windows . Controls . SRID . VirtualizedElement ) ) ;
290
+ throw new ElementNotAvailableException ( Microsoft . Windows . Controls . SR . VirtualizedElement ) ;
291
291
}
292
292
293
293
RibbonMenuItem menuItemOwner = owner as RibbonMenuItem ;
294
294
if ( menuItemOwner == null )
295
295
{
296
- throw new InvalidOperationException ( Microsoft . Windows . Controls . SR . Get ( Microsoft . Windows . Controls . SRID . UIA_OperationCannotBePerformed ) ) ;
296
+ throw new InvalidOperationException ( Microsoft . Windows . Controls . SR . UIA_OperationCannotBePerformed ) ;
297
297
}
298
298
299
299
return menuItemOwner . IsChecked ? ToggleState . On : ToggleState . Off ;
@@ -330,7 +330,7 @@ bool ITransformProvider.CanRotate
330
330
331
331
void ITransformProvider . Move ( double x , double y )
332
332
{
333
- throw new InvalidOperationException ( Microsoft . Windows . Controls . SR . Get ( Microsoft . Windows . Controls . SRID . UIA_OperationCannotBePerformed ) ) ;
333
+ throw new InvalidOperationException ( Microsoft . Windows . Controls . SR . UIA_OperationCannotBePerformed ) ;
334
334
}
335
335
336
336
void ITransformProvider . Resize ( double width , double height )
@@ -341,27 +341,27 @@ void ITransformProvider.Resize(double width, double height)
341
341
UIElement owner = GetWrapper ( ) ;
342
342
if ( owner == null )
343
343
{
344
- throw new ElementNotAvailableException ( Microsoft . Windows . Controls . SR . Get ( Microsoft . Windows . Controls . SRID . VirtualizedElement ) ) ;
344
+ throw new ElementNotAvailableException ( Microsoft . Windows . Controls . SR . VirtualizedElement ) ;
345
345
}
346
346
347
347
RibbonMenuItem menuItemOwner = owner as RibbonMenuItem ;
348
348
if ( menuItemOwner == null )
349
349
{
350
- throw new InvalidOperationException ( Microsoft . Windows . Controls . SR . Get ( Microsoft . Windows . Controls . SRID . UIA_OperationCannotBePerformed ) ) ;
350
+ throw new InvalidOperationException ( Microsoft . Windows . Controls . SR . UIA_OperationCannotBePerformed ) ;
351
351
}
352
352
353
353
if ( ! ( ( ITransformProvider ) this ) . CanResize || width <= 0 || height <= 0 )
354
- throw new InvalidOperationException ( Microsoft . Windows . Controls . SR . Get ( Microsoft . Windows . Controls . SRID . UIA_OperationCannotBePerformed ) ) ;
354
+ throw new InvalidOperationException ( Microsoft . Windows . Controls . SR . UIA_OperationCannotBePerformed ) ;
355
355
356
356
if ( ! menuItemOwner . ResizePopupInternal ( width , height ) )
357
357
{
358
- throw new InvalidOperationException ( Microsoft . Windows . Controls . SR . Get ( Microsoft . Windows . Controls . SRID . ResizeParametersNotValid ) ) ;
358
+ throw new InvalidOperationException ( Microsoft . Windows . Controls . SR . ResizeParametersNotValid ) ;
359
359
}
360
360
}
361
361
362
362
void ITransformProvider . Rotate ( double degrees )
363
363
{
364
- throw new InvalidOperationException ( Microsoft . Windows . Controls . SR . Get ( Microsoft . Windows . Controls . SRID . UIA_OperationCannotBePerformed ) ) ;
364
+ throw new InvalidOperationException ( Microsoft . Windows . Controls . SR . UIA_OperationCannotBePerformed ) ;
365
365
}
366
366
367
367
#endregion
0 commit comments