|
@@ -118,25 +118,13 @@ namespace Avalonia
|
|
/// </value>
|
|
/// </value>
|
|
public DataTemplates DataTemplates => _dataTemplates ?? (_dataTemplates = new DataTemplates());
|
|
public DataTemplates DataTemplates => _dataTemplates ?? (_dataTemplates = new DataTemplates());
|
|
|
|
|
|
- /// <summary>
|
|
|
|
- /// Gets the application's focus manager.
|
|
|
|
- /// </summary>
|
|
|
|
- /// <value>
|
|
|
|
- /// The application's focus manager.
|
|
|
|
- /// </value>
|
|
|
|
- public IFocusManager? FocusManager
|
|
|
|
- {
|
|
|
|
- get;
|
|
|
|
- private set;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
/// Gets the application's input manager.
|
|
/// Gets the application's input manager.
|
|
/// </summary>
|
|
/// </summary>
|
|
/// <value>
|
|
/// <value>
|
|
/// The application's input manager.
|
|
/// The application's input manager.
|
|
/// </value>
|
|
/// </value>
|
|
- public InputManager? InputManager
|
|
|
|
|
|
+ internal InputManager? InputManager
|
|
{
|
|
{
|
|
get;
|
|
get;
|
|
private set;
|
|
private set;
|
|
@@ -238,7 +226,7 @@ namespace Avalonia
|
|
public virtual void RegisterServices()
|
|
public virtual void RegisterServices()
|
|
{
|
|
{
|
|
AvaloniaSynchronizationContext.InstallIfNeeded();
|
|
AvaloniaSynchronizationContext.InstallIfNeeded();
|
|
- FocusManager = new FocusManager();
|
|
|
|
|
|
+ var focusManager = new FocusManager();
|
|
InputManager = new InputManager();
|
|
InputManager = new InputManager();
|
|
|
|
|
|
var settings = AvaloniaLocator.Current.GetRequiredService<IPlatformSettings>();
|
|
var settings = AvaloniaLocator.Current.GetRequiredService<IPlatformSettings>();
|
|
@@ -250,7 +238,7 @@ namespace Avalonia
|
|
.Bind<IGlobalDataTemplates>().ToConstant(this)
|
|
.Bind<IGlobalDataTemplates>().ToConstant(this)
|
|
.Bind<IGlobalStyles>().ToConstant(this)
|
|
.Bind<IGlobalStyles>().ToConstant(this)
|
|
.Bind<IThemeVariantHost>().ToConstant(this)
|
|
.Bind<IThemeVariantHost>().ToConstant(this)
|
|
- .Bind<IFocusManager>().ToConstant(FocusManager)
|
|
|
|
|
|
+ .Bind<IFocusManager>().ToConstant(focusManager)
|
|
.Bind<IInputManager>().ToConstant(InputManager)
|
|
.Bind<IInputManager>().ToConstant(InputManager)
|
|
.Bind<IKeyboardNavigationHandler>().ToTransient<KeyboardNavigationHandler>()
|
|
.Bind<IKeyboardNavigationHandler>().ToTransient<KeyboardNavigationHandler>()
|
|
.Bind<IDragDropDevice>().ToConstant(DragDropDevice.Instance);
|
|
.Bind<IDragDropDevice>().ToConstant(DragDropDevice.Instance);
|