@@ -248,7 +248,7 @@ private static bool TryMoveFocusStatic(
248
248
// Return error if call is without focus navigation option in islands/ desktop
249
249
if ( pCore . GetHandle ( ) . InitializationType == InitializationType . IslandsOnly )
250
250
{
251
- throw new InvalidOperationException ( "Focus navigation options must be set for desktop apps ." ) ;
251
+ throw new InvalidOperationException ( "Focus navigation options must be set, provide a SearchRoot in FindNextElementOptions ." ) ;
252
252
}
253
253
254
254
// For compat reasons, these FocusManager static APIs need to always use the CoreWindow as the
@@ -380,7 +380,7 @@ private static IAsyncOperation<FocusMovementResult> TryFocusAsyncImpl(
380
380
if ( InIslandsMode ( ) )
381
381
{
382
382
// This api is not supported in islands/ desktop mode.
383
- throw new NotSupportedException ( "This API is not supported in desktop mode ." ) ;
383
+ throw new NotSupportedException ( "This API is no longer supported ." ) ;
384
384
}
385
385
386
386
XYFocusOptions xyFocusOptions = new XYFocusOptions ( ) ;
@@ -395,7 +395,7 @@ private static IAsyncOperation<FocusMovementResult> TryFocusAsyncImpl(
395
395
if ( InIslandsMode ( ) )
396
396
{
397
397
// This api is not supported in islands/ desktop mode.
398
- throw new NotSupportedException ( "This API is not supported in desktop mode ." ) ;
398
+ throw new NotSupportedException ( "This API is no longer supported ." ) ;
399
399
}
400
400
401
401
Rect hintRect = focusHintRectangle ;
@@ -690,7 +690,7 @@ internal static bool SetFocusedElementWithDirection(
690
690
// Return error if FindNextElement is called without focus navigation option in islands/desktop
691
691
if ( typeof ( FocusManager ) . Log ( ) . IsEnabled ( LogLevel . Error ) )
692
692
{
693
- typeof ( FocusManager ) . Log ( ) . LogError ( "FindNextElement override with FindNextElementOptions must be used in WinUI Desktop apps ." ) ;
693
+ typeof ( FocusManager ) . Log ( ) . LogError ( "FindNextElement override with FindNextElementOptions must be used instead ." ) ;
694
694
}
695
695
return null ;
696
696
}
0 commit comments