Browse Source

Merge pull request #1859 from MihaMarkic/spell_other_avalonia

Spellchecks all projects except for Base, Controls, Samples and Testing
pull/1863/head
Jeremy Koritzinsky 8 years ago
committed by GitHub
parent
commit
1f16de477e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/Android/Avalonia.Android/AndroidPlatform.cs
  2. 10
      src/Android/Avalonia.Android/AndroidThreadingInterface.cs
  3. 14
      src/Android/Avalonia.Android/AppBuilder.cs
  4. 9
      src/Android/Avalonia.Android/AvaloniaActivity.cs
  5. 9
      src/Android/Avalonia.Android/AvaloniaView.cs
  6. 2
      src/Android/Avalonia.Android/CursorFactory.cs
  7. 4
      src/Android/Avalonia.Android/Platform/ClipboardImpl.cs
  8. 5
      src/Android/Avalonia.Android/Platform/Input/AndroidKeyboardDevice.cs
  9. 2
      src/Android/Avalonia.Android/Platform/SkiaPlatform/AndroidFramebuffer.cs
  10. 10
      src/Android/Avalonia.Android/Platform/SkiaPlatform/InvalidationAwareSurfaceView.cs
  11. 9
      src/Android/Avalonia.Android/Platform/SkiaPlatform/PopupImpl.cs
  12. 13
      src/Android/Avalonia.Android/Platform/SkiaPlatform/TopLevelImpl.cs
  13. 8
      src/Android/Avalonia.Android/Platform/Specific/Helpers/AndroidKeyboardEventsHelper.cs
  14. 6
      src/Android/Avalonia.Android/Platform/Specific/Helpers/AndroidTouchEventsHelper.cs
  15. 9
      src/Android/Avalonia.Android/Platform/Specific/IAndroidView.cs
  16. 15
      src/Android/Avalonia.Android/PlatformIconLoader.cs
  17. 2
      src/Android/Avalonia.Android/SystemDialogImpl.cs
  18. 9
      src/Avalonia.Animation/Animatable.cs
  19. 12
      src/Avalonia.Animation/Animation.cs
  20. 4
      src/Avalonia.Animation/AnimatorKeyFrame.cs
  21. 17
      src/Avalonia.Animation/Animator`1.cs
  22. 2
      src/Avalonia.Animation/Cue.cs
  23. 11
      src/Avalonia.Animation/DoubleAnimator.cs
  24. 1
      src/Avalonia.Animation/DoubleTransition.cs
  25. 1
      src/Avalonia.Animation/Easing/BounceEaseIn.cs
  26. 5
      src/Avalonia.Animation/Easing/Easing.cs
  27. 3
      src/Avalonia.Animation/Easing/EasingTypeConverter.cs
  28. 2
      src/Avalonia.Animation/Easing/ElasticEaseIn.cs
  29. 2
      src/Avalonia.Animation/Easing/ElasticEaseOut.cs
  30. 2
      src/Avalonia.Animation/Easing/SineEaseIn.cs
  31. 2
      src/Avalonia.Animation/Easing/SineEaseOut.cs
  32. 6
      src/Avalonia.Animation/FillMode.cs
  33. 1
      src/Avalonia.Animation/FloatTransition.cs
  34. 2
      src/Avalonia.Animation/IAnimation.cs
  35. 1
      src/Avalonia.Animation/IAnimator.cs
  36. 2
      src/Avalonia.Animation/ITransition.cs
  37. 1
      src/Avalonia.Animation/IntegerTransition.cs
  38. 3
      src/Avalonia.Animation/KeyFrame.cs
  39. 11
      src/Avalonia.Animation/KeyFramePair`1.cs
  40. 8
      src/Avalonia.Animation/PlayState.cs
  41. 6
      src/Avalonia.Animation/PlaybackDirection.cs
  42. 5
      src/Avalonia.Animation/RepeatCount.cs
  43. 3
      src/Avalonia.Animation/RepeatCountTypeConverter.cs
  44. 2
      src/Avalonia.Animation/Timing.cs
  45. 3
      src/Avalonia.Animation/Transition`1.cs
  46. 2
      src/Avalonia.Animation/Utils/DoubleUtils.cs
  47. 1
      src/Avalonia.Base/Data/Core/Plugins/DataValidationBase.cs
  48. 2
      src/Avalonia.DesignerSupport/Remote/PreviewerWindowingPlatform.cs
  49. 5
      src/Avalonia.DesignerSupport/Remote/RemoteDesignerEntryPoint.cs
  50. 2
      src/Avalonia.Diagnostics/Debug.cs
  51. 1
      src/Avalonia.Diagnostics/ViewModels/LogicalTreeNode.cs
  52. 3
      src/Avalonia.Diagnostics/ViewModels/ViewModelBase.cs
  53. 2
      src/Avalonia.Diagnostics/Views/PropertyChangedExtenions.cs
  54. 1
      src/Avalonia.Diagnostics/Views/SimpleGrid.cs
  55. 9
      src/Avalonia.DotNetCoreRuntime/AppBuilder.cs
  56. 4
      src/Avalonia.DotNetCoreRuntime/RuntimeInfo.cs
  57. 2
      src/Avalonia.Input/AccessKeyHandler.cs
  58. 6
      src/Avalonia.Input/Cursors.cs
  59. 4
      src/Avalonia.Input/DataObject.cs
  60. 4
      src/Avalonia.Input/DragDrop.cs
  61. 1
      src/Avalonia.Input/ICustomKeyboardNavigation.cs
  62. 4
      src/Avalonia.Input/IDataObject.cs
  63. 8
      src/Avalonia.Input/IInputManager.cs
  64. 2
      src/Avalonia.Input/IPointerDevice.cs
  65. 1
      src/Avalonia.Input/InputElement.cs
  66. 4
      src/Avalonia.Input/InputExtensions.cs
  67. 2
      src/Avalonia.Input/InputManager.cs
  68. 2
      src/Avalonia.Input/Key.cs
  69. 5
      src/Avalonia.Input/KeyBinding.cs
  70. 1
      src/Avalonia.Input/KeyEventArgs.cs
  71. 6
      src/Avalonia.Input/KeyGesture.cs
  72. 3
      src/Avalonia.Input/KeyboardDevice.cs
  73. 2
      src/Avalonia.Input/KeyboardNavigationHandler.cs
  74. 5
      src/Avalonia.Input/MouseDevice.cs
  75. 4
      src/Avalonia.Input/Platform/IClipboard.cs
  76. 7
      src/Avalonia.Input/Platform/IPlatformDragSource.cs
  77. 5
      src/Avalonia.Input/Platform/IStandardCursorFactory.cs
  78. 1
      src/Avalonia.Input/PointerEventArgs.cs
  79. 6
      src/Avalonia.Input/Raw/IDragDropDevice.cs
  80. 8
      src/Avalonia.Input/Raw/RawDragEvent.cs
  81. 2
      src/Avalonia.Input/Raw/RawMouseWheelEventArgs.cs
  82. 5
      src/Avalonia.Input/TextInputEventArgs.cs
  83. 2
      src/Avalonia.Interactivity/IInteractive.cs
  84. 2
      src/Avalonia.Interactivity/Interactive.cs
  85. 2
      src/Avalonia.Layout/ILayoutManager.cs
  86. 5
      src/Avalonia.Layout/LayoutManager.cs
  87. 5
      src/Avalonia.Layout/Layoutable.cs
  88. 3
      src/Avalonia.Logging.Serilog/SerilogExtensions.cs
  89. 3
      src/Avalonia.ReactiveUI/AppBuilderExtensions.cs
  90. 4
      src/Avalonia.Remote.Protocol/AvaloniaRemoteMessageGuidAttribute.cs
  91. 1
      src/Avalonia.Remote.Protocol/BsonStreamTransport.cs
  92. 2
      src/Avalonia.Remote.Protocol/DefaultMessageTypeResolver.cs
  93. 3
      src/Avalonia.Remote.Protocol/ITransport.cs
  94. 4
      src/Avalonia.Remote.Protocol/InputMessages.cs
  95. 27
      src/Avalonia.Remote.Protocol/MetsysBson.cs
  96. 8
      src/Avalonia.Remote.Protocol/ViewportMessages.cs
  97. 1
      src/Avalonia.Styling/Controls/Classes.cs
  98. 2
      src/Avalonia.Styling/Controls/INameScope.cs
  99. 1
      src/Avalonia.Styling/Controls/IPseudoClasses.cs
  100. 1
      src/Avalonia.Styling/Controls/IResourceDictionary.cs

6
src/Android/Avalonia.Android/AndroidPlatform.cs

@ -1,8 +1,4 @@
using System; using System;
using System.IO;
using System.Linq;
using Android.Content;
using Android.Views;
using Avalonia.Android.Platform; using Avalonia.Android.Platform;
using Avalonia.Android.Platform.Input; using Avalonia.Android.Platform.Input;
using Avalonia.Android.Platform.SkiaPlatform; using Avalonia.Android.Platform.SkiaPlatform;
@ -79,4 +75,4 @@ namespace Avalonia.Android
return new PopupImpl(); return new PopupImpl();
} }
} }
} }

10
src/Android/Avalonia.Android/AndroidThreadingInterface.cs

@ -1,16 +1,7 @@
using System; using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Reactive.Disposables; using System.Reactive.Disposables;
using System.Text;
using System.Threading; using System.Threading;
using Android.App;
using Android.Content;
using Android.OS; using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Avalonia.Platform; using Avalonia.Platform;
using Avalonia.Threading; using Avalonia.Threading;
@ -88,4 +79,3 @@ namespace Avalonia.Android
public event Action<DispatcherPriority?> Signaled; public event Action<DispatcherPriority?> Signaled;
} }
} }

14
src/Android/Avalonia.Android/AppBuilder.cs

@ -1,16 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Avalonia.Controls; using Avalonia.Controls;
using Avalonia.Platform;
using Avalonia.Shared.PlatformSupport; using Avalonia.Shared.PlatformSupport;
namespace Avalonia namespace Avalonia
@ -23,4 +11,4 @@ namespace Avalonia
} }
} }
} }

9
src/Android/Avalonia.Android/AvaloniaActivity.cs

@ -1,14 +1,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Android.App; using Android.App;
using Android.Content;
using Android.OS; using Android.OS;
using Android.Runtime;
using Android.Views; using Android.Views;
using Android.Widget;
namespace Avalonia.Android namespace Avalonia.Android
{ {
@ -48,4 +41,4 @@ namespace Avalonia.Android
return View.DispatchKeyEvent(e); return View.DispatchKeyEvent(e);
} }
} }
} }

9
src/Android/Avalonia.Android/AvaloniaView.cs

@ -1,12 +1,5 @@
using System; using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Android.App;
using Android.Content; using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views; using Android.Views;
using Android.Widget; using Android.Widget;
using Avalonia.Android.Platform.SkiaPlatform; using Avalonia.Android.Platform.SkiaPlatform;
@ -66,4 +59,4 @@ namespace Avalonia.Android
public IDisposable ShowDialog() => null; public IDisposable ShowDialog() => null;
} }
} }
} }

2
src/Android/Avalonia.Android/CursorFactory.cs

@ -9,4 +9,4 @@ namespace Avalonia.Android
public IPlatformHandle GetCursor(StandardCursorType cursorType) public IPlatformHandle GetCursor(StandardCursorType cursorType)
=> new PlatformHandle(IntPtr.Zero, "ZeroCursor"); => new PlatformHandle(IntPtr.Zero, "ZeroCursor");
} }
} }

4
src/Android/Avalonia.Android/Platform/ClipboardImpl.cs

@ -1,9 +1,9 @@
using System.Threading.Tasks;
using Android.Content; using Android.Content;
using Android.Runtime; using Android.Runtime;
using Android.Views; using Android.Views;
using Avalonia.Input.Platform; using Avalonia.Input.Platform;
using Avalonia.Platform; using Avalonia.Platform;
using System.Threading.Tasks;
namespace Avalonia.Android.Platform namespace Avalonia.Android.Platform
{ {
@ -44,4 +44,4 @@ namespace Avalonia.Android.Platform
return Task.FromResult<object>(null); return Task.FromResult<object>(null);
} }
} }
} }

5
src/Android/Avalonia.Android/Platform/Input/AndroidKeyboardDevice.cs

@ -1,12 +1,11 @@
using System;
using Avalonia.Input;
//using Android.InputMethodServices; //using Android.InputMethodServices;
using System.Collections.Generic; using System.Collections.Generic;
using Android.Views; using Android.Views;
using Avalonia.Input;
namespace Avalonia.Android.Platform.Input namespace Avalonia.Android.Platform.Input
{ {
public class AndroidKeyboardDevice : KeyboardDevice, IKeyboardDevice { public class AndroidKeyboardDevice : KeyboardDevice, IKeyboardDevice {
private static readonly Dictionary<Keycode, Key> KeyDic = new Dictionary<Keycode, Key> private static readonly Dictionary<Keycode, Key> KeyDic = new Dictionary<Keycode, Key>
{ {
// { Keycode.Cancel?, Key.Cancel }, // { Keycode.Cancel?, Key.Cancel },

2
src/Android/Avalonia.Android/Platform/SkiaPlatform/AndroidFramebuffer.cs

@ -102,4 +102,4 @@ namespace Avalonia.Android.Platform.SkiaPlatform
uint reserved6; uint reserved6;
} }
} }
} }

10
src/Android/Avalonia.Android/Platform/SkiaPlatform/InvalidationAwareSurfaceView.cs

@ -1,17 +1,9 @@
using System; using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Android.App;
using Android.Content; using Android.Content;
using Android.Graphics; using Android.Graphics;
using Android.OS; using Android.OS;
using Android.Runtime;
using Android.Util; using Android.Util;
using Android.Views; using Android.Views;
using Android.Widget;
using Avalonia.Media;
using Avalonia.Platform; using Avalonia.Platform;
namespace Avalonia.Android namespace Avalonia.Android
@ -90,4 +82,4 @@ namespace Avalonia.Android
protected abstract void Draw(); protected abstract void Draw();
public string HandleDescriptor => "SurfaceView"; public string HandleDescriptor => "SurfaceView";
} }
} }

9
src/Android/Avalonia.Android/Platform/SkiaPlatform/PopupImpl.cs

@ -1,15 +1,8 @@
using System; using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Android.App;
using Android.Content; using Android.Content;
using Android.Graphics; using Android.Graphics;
using Android.OS;
using Android.Runtime; using Android.Runtime;
using Android.Views; using Android.Views;
using Android.Widget;
using Avalonia.Controls; using Avalonia.Controls;
using Avalonia.Platform; using Avalonia.Platform;
@ -116,4 +109,4 @@ namespace Avalonia.Android.Platform.SkiaPlatform
//Not supported //Not supported
} }
} }
} }

13
src/Android/Avalonia.Android/Platform/SkiaPlatform/TopLevelImpl.cs

@ -1,18 +1,15 @@
using Android.App; using System;
using System.Collections.Generic;
using Android.Content; using Android.Content;
using Android.Graphics; using Android.Graphics;
using Android.Views; using Android.Views;
using Avalonia.Android.Platform.Input;
using Avalonia.Android.Platform.Specific; using Avalonia.Android.Platform.Specific;
using Avalonia.Android.Platform.Specific.Helpers; using Avalonia.Android.Platform.Specific.Helpers;
using Avalonia.Controls.Platform.Surfaces;
using Avalonia.Input; using Avalonia.Input;
using Avalonia.Input.Raw; using Avalonia.Input.Raw;
using Avalonia.Platform; using Avalonia.Platform;
using System;
using System.Collections.Generic;
using System.Reactive.Disposables;
using Avalonia.Android.Platform.Input;
using Avalonia.Controls;
using Avalonia.Controls.Platform.Surfaces;
using Avalonia.Rendering; using Avalonia.Rendering;
namespace Avalonia.Android.Platform.SkiaPlatform namespace Avalonia.Android.Platform.SkiaPlatform
@ -196,4 +193,4 @@ namespace Avalonia.Android.Platform.SkiaPlatform
ILockedFramebuffer IFramebufferPlatformSurface.Lock()=>new AndroidFramebuffer(_view.Holder.Surface); ILockedFramebuffer IFramebufferPlatformSurface.Lock()=>new AndroidFramebuffer(_view.Holder.Surface);
} }
} }

8
src/Android/Avalonia.Android/Platform/Specific/Helpers/AndroidKeyboardEventsHelper.cs

@ -1,3 +1,5 @@
using System;
using System.ComponentModel;
using Android.Content; using Android.Content;
using Android.Runtime; using Android.Runtime;
using Android.Views; using Android.Views;
@ -7,8 +9,6 @@ using Avalonia.Controls;
using Avalonia.Input; using Avalonia.Input;
using Avalonia.Input.Raw; using Avalonia.Input.Raw;
using Avalonia.Platform; using Avalonia.Platform;
using System;
using System.ComponentModel;
namespace Avalonia.Android.Platform.Specific.Helpers namespace Avalonia.Android.Platform.Specific.Helpers
{ {
@ -120,7 +120,7 @@ namespace Avalonia.Android.Platform.Specific.Helpers
_lastFocusedElement = element; _lastFocusedElement = element;
} }
public void ActivateAutoShowKeybord() public void ActivateAutoShowKeyboard()
{ {
var kbDevice = (KeyboardDevice.Instance as INotifyPropertyChanged); var kbDevice = (KeyboardDevice.Instance as INotifyPropertyChanged);
@ -142,4 +142,4 @@ namespace Avalonia.Android.Platform.Specific.Helpers
HandleEvents = false; HandleEvents = false;
} }
} }
} }

6
src/Android/Avalonia.Android/Platform/Specific/Helpers/AndroidTouchEventsHelper.cs

@ -1,10 +1,8 @@
using Android.Graphics; using System;
using Android.Views; using Android.Views;
using Avalonia.Input; using Avalonia.Input;
using Avalonia.Input.Raw; using Avalonia.Input.Raw;
using Avalonia.Media;
using Avalonia.Platform; using Avalonia.Platform;
using System;
namespace Avalonia.Android.Platform.Specific.Helpers namespace Avalonia.Android.Platform.Specific.Helpers
{ {
@ -131,4 +129,4 @@ namespace Avalonia.Android.Platform.Specific.Helpers
HandleEvents = false; HandleEvents = false;
} }
} }
} }

9
src/Android/Avalonia.Android/Platform/Specific/IAndroidView.cs

@ -1,16 +1,9 @@
using Android.Graphics;
using Android.Views; using Android.Views;
using System;
using System.Collections.Generic;
namespace Avalonia.Android.Platform.Specific namespace Avalonia.Android.Platform.Specific
{ {
public interface IAndroidView public interface IAndroidView
{ {
View View { get; } View View { get; }
} }
}
}

15
src/Android/Avalonia.Android/PlatformIconLoader.cs

@ -1,16 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Avalonia.Platform;
using System.IO; using System.IO;
using Avalonia.Platform;
namespace Avalonia.Android namespace Avalonia.Android
{ {
@ -54,4 +43,4 @@ namespace Avalonia.Android
stream.CopyTo(outputStream); stream.CopyTo(outputStream);
} }
} }
} }

2
src/Android/Avalonia.Android/SystemDialogImpl.cs

@ -18,4 +18,4 @@ namespace Avalonia.Android
throw new NotImplementedException(); throw new NotImplementedException();
} }
} }
} }

9
src/Avalonia.Animation/Animatable.cs

@ -1,15 +1,12 @@
// Copyright (c) The Avalonia Project. All rights reserved. // Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information. // Licensed under the MIT license. See licence.md file in the project root for full license information.
using System.Linq;
using Avalonia.Data;
using System; using System;
using System.Collections.Generic;
using System.Linq;
using System.Reactive.Linq; using System.Reactive.Linq;
using Avalonia.Collections; using Avalonia.Collections;
using Avalonia.Animation; using Avalonia.Data;
using System.Collections.Generic;
using System.Threading;
using System.Collections.Concurrent;
namespace Avalonia.Animation namespace Avalonia.Animation
{ {

12
src/Avalonia.Animation/Animation.cs

@ -1,18 +1,14 @@
// Copyright (c) The Avalonia Project. All rights reserved. // Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information. // Licensed under the MIT license. See licence.md file in the project root for full license information.
using Avalonia.Animation.Easings;
using Avalonia.Animation;
using Avalonia.Collections;
using Avalonia.Metadata;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.Specialized;
using System.Reflection;
using System.Linq; using System.Linq;
using System.Threading.Tasks;
using System.Reactive.Linq;
using System.Reactive.Disposables; using System.Reactive.Disposables;
using System.Reactive.Linq;
using System.Threading.Tasks;
using Avalonia.Animation.Easings;
using Avalonia.Collections;
namespace Avalonia.Animation namespace Avalonia.Animation
{ {

4
src/Avalonia.Animation/AnimatorKeyFrame.cs

@ -1,9 +1,5 @@
using System; using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel; using System.ComponentModel;
using Avalonia.Metadata;
using Avalonia.Collections;
using Avalonia.Data; using Avalonia.Data;
using Avalonia.Reactive; using Avalonia.Reactive;

17
src/Avalonia.Animation/Animator`1.cs

@ -1,13 +1,10 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Text;
using Avalonia.Collections;
using System.ComponentModel;
using Avalonia.Animation.Utils;
using System.Reactive.Linq;
using System.Linq; using System.Linq;
using System.Reactive.Linq;
using Avalonia.Animation.Utils;
using Avalonia.Collections;
using Avalonia.Data; using Avalonia.Data;
using System.Reactive.Disposables;
namespace Avalonia.Animation namespace Avalonia.Animation
{ {
@ -21,7 +18,7 @@ namespace Avalonia.Animation
/// </summary> /// </summary>
private readonly SortedList<double, (AnimatorKeyFrame, bool isNeutral)> _convertedKeyframes = new SortedList<double, (AnimatorKeyFrame, bool)>(); private readonly SortedList<double, (AnimatorKeyFrame, bool isNeutral)> _convertedKeyframes = new SortedList<double, (AnimatorKeyFrame, bool)>();
private bool _isVerfifiedAndConverted; private bool _isVerifiedAndConverted;
/// <summary> /// <summary>
/// Gets or sets the target property for the keyframe. /// Gets or sets the target property for the keyframe.
@ -31,13 +28,13 @@ namespace Avalonia.Animation
public Animator() public Animator()
{ {
// Invalidate keyframes when changed. // Invalidate keyframes when changed.
this.CollectionChanged += delegate { _isVerfifiedAndConverted = false; }; this.CollectionChanged += delegate { _isVerifiedAndConverted = false; };
} }
/// <inheritdoc/> /// <inheritdoc/>
public virtual IDisposable Apply(Animation animation, Animatable control, IObservable<bool> obsMatch, Action onComplete) public virtual IDisposable Apply(Animation animation, Animatable control, IObservable<bool> obsMatch, Action onComplete)
{ {
if (!_isVerfifiedAndConverted) if (!_isVerifiedAndConverted)
VerifyConvertKeyFrames(); VerifyConvertKeyFrames();
return obsMatch return obsMatch
@ -124,7 +121,7 @@ namespace Avalonia.Animation
} }
AddNeutralKeyFramesIfNeeded(); AddNeutralKeyFramesIfNeeded();
_isVerfifiedAndConverted = true; _isVerifiedAndConverted = true;
} }

2
src/Avalonia.Animation/Cue.cs

@ -1,8 +1,6 @@
using System; using System;
using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
using System.Globalization; using System.Globalization;
using System.Text;
namespace Avalonia.Animation namespace Avalonia.Animation
{ {

11
src/Avalonia.Animation/DoubleAnimator.cs

@ -1,13 +1,4 @@
using System; namespace Avalonia.Animation
using System.Collections.Generic;
using System.Text;
using System.Linq;
using System.Reactive.Linq;
using System.Diagnostics;
using Avalonia.Animation.Utils;
using Avalonia.Data;
namespace Avalonia.Animation
{ {
/// <summary> /// <summary>
/// Animator that handles <see cref="double"/> properties. /// Animator that handles <see cref="double"/> properties.

1
src/Avalonia.Animation/DoubleTransition.cs

@ -1,7 +1,6 @@
// Copyright (c) The Avalonia Project. All rights reserved. // Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information. // Licensed under the MIT license. See licence.md file in the project root for full license information.
using Avalonia.Metadata;
using System; using System;
using System.Reactive.Linq; using System.Reactive.Linq;

1
src/Avalonia.Animation/Easing/BounceEaseIn.cs

@ -1,7 +1,6 @@
// Copyright (c) The Avalonia Project. All rights reserved. // Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information. // Licensed under the MIT license. See licence.md file in the project root for full license information.
using Avalonia.Animation.Utils; using Avalonia.Animation.Utils;
namespace Avalonia.Animation.Easings namespace Avalonia.Animation.Easings

5
src/Avalonia.Animation/Easing/Easing.cs

@ -1,10 +1,7 @@
using Avalonia.Collections;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Text;
using System.Reflection;
using System.Linq;
using System.ComponentModel; using System.ComponentModel;
using System.Linq;
namespace Avalonia.Animation.Easings namespace Avalonia.Animation.Easings
{ {

3
src/Avalonia.Animation/Easing/EasingTypeConverter.cs

@ -1,7 +1,6 @@
// Copyright (c) The Avalonia Project. All rights reserved. // Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information. // Licensed under the MIT license. See licence.md file in the project root for full license information.
using Avalonia.Animation.Easings;
using System; using System;
using System.ComponentModel; using System.ComponentModel;
using System.Globalization; using System.Globalization;
@ -20,4 +19,4 @@ namespace Avalonia.Animation.Easings
return Easing.Parse((string)value); return Easing.Parse((string)value);
} }
} }
} }

2
src/Avalonia.Animation/Easing/ElasticEaseIn.cs

@ -1,8 +1,8 @@
// Copyright (c) The Avalonia Project. All rights reserved. // Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information. // Licensed under the MIT license. See licence.md file in the project root for full license information.
using Avalonia.Animation.Utils;
using System; using System;
using Avalonia.Animation.Utils;
namespace Avalonia.Animation.Easings namespace Avalonia.Animation.Easings
{ {

2
src/Avalonia.Animation/Easing/ElasticEaseOut.cs

@ -1,8 +1,8 @@
// Copyright (c) The Avalonia Project. All rights reserved. // Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information. // Licensed under the MIT license. See licence.md file in the project root for full license information.
using Avalonia.Animation.Utils;
using System; using System;
using Avalonia.Animation.Utils;
namespace Avalonia.Animation.Easings namespace Avalonia.Animation.Easings
{ {

2
src/Avalonia.Animation/Easing/SineEaseIn.cs

@ -1,8 +1,8 @@
// Copyright (c) The Avalonia Project. All rights reserved. // Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information. // Licensed under the MIT license. See licence.md file in the project root for full license information.
using Avalonia.Animation.Utils;
using System; using System;
using Avalonia.Animation.Utils;
namespace Avalonia.Animation.Easings namespace Avalonia.Animation.Easings
{ {

2
src/Avalonia.Animation/Easing/SineEaseOut.cs

@ -1,8 +1,8 @@
// Copyright (c) The Avalonia Project. All rights reserved. // Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information. // Licensed under the MIT license. See licence.md file in the project root for full license information.
using Avalonia.Animation.Utils;
using System; using System;
using Avalonia.Animation.Utils;
namespace Avalonia.Animation.Easings namespace Avalonia.Animation.Easings
{ {

6
src/Avalonia.Animation/FillMode.cs

@ -1,8 +1,4 @@
using System; namespace Avalonia.Animation
using System.Collections.Generic;
using System.Text;
namespace Avalonia.Animation
{ {
public enum FillMode public enum FillMode
{ {

1
src/Avalonia.Animation/FloatTransition.cs

@ -1,7 +1,6 @@
// Copyright (c) The Avalonia Project. All rights reserved. // Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information. // Licensed under the MIT license. See licence.md file in the project root for full license information.
using Avalonia.Metadata;
using System; using System;
using System.Reactive.Linq; using System.Reactive.Linq;

2
src/Avalonia.Animation/IAnimation.cs

@ -1,6 +1,4 @@
using System; using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace Avalonia.Animation namespace Avalonia.Animation

1
src/Avalonia.Animation/IAnimator.cs

@ -1,6 +1,5 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Text;
namespace Avalonia.Animation namespace Avalonia.Animation
{ {

2
src/Avalonia.Animation/ITransition.cs

@ -1,9 +1,7 @@
// Copyright (c) The Avalonia Project. All rights reserved. // Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information. // Licensed under the MIT license. See licence.md file in the project root for full license information.
using Avalonia.Metadata;
using System; using System;
using System.Reactive.Linq;
namespace Avalonia.Animation namespace Avalonia.Animation
{ {

1
src/Avalonia.Animation/IntegerTransition.cs

@ -1,7 +1,6 @@
// Copyright (c) The Avalonia Project. All rights reserved. // Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information. // Licensed under the MIT license. See licence.md file in the project root for full license information.
using Avalonia.Metadata;
using System; using System;
using System.Reactive.Linq; using System.Reactive.Linq;

3
src/Avalonia.Animation/KeyFrame.cs

@ -1,8 +1,5 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using Avalonia.Metadata;
using Avalonia.Collections; using Avalonia.Collections;
namespace Avalonia.Animation namespace Avalonia.Animation

11
src/Avalonia.Animation/KeyFramePair`1.cs

@ -1,14 +1,3 @@
using System;
using System.Collections.Generic;
using System.Text;
using Avalonia.Collections;
using System.ComponentModel;
using Avalonia.Animation.Utils;
using System.Reactive.Linq;
using System.Linq;
using Avalonia.Data;
using System.Reactive.Disposables;
namespace Avalonia.Animation namespace Avalonia.Animation
{ {
/// <summary> /// <summary>

8
src/Avalonia.Animation/PlayState.cs

@ -1,8 +1,4 @@
using System; namespace Avalonia.Animation
using System.Collections.Generic;
using System.Text;
namespace Avalonia.Animation
{ {
/// <summary> /// <summary>
/// Determines the playback state of an animation. /// Determines the playback state of an animation.
@ -24,4 +20,4 @@ namespace Avalonia.Animation
/// </summary> /// </summary>
Stop Stop
} }
} }

6
src/Avalonia.Animation/PlaybackDirection.cs

@ -1,8 +1,4 @@
using System; namespace Avalonia.Animation
using System.Collections.Generic;
using System.Text;
namespace Avalonia.Animation
{ {
/// <summary> /// <summary>
/// Determines the playback direction of an animation. /// Determines the playback direction of an animation.

5
src/Avalonia.Animation/RepeatCount.cs

@ -1,12 +1,9 @@
// Copyright (c) The Avalonia Project. All rights reserved. // Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information. // Licensed under the MIT license. See licence.md file in the project root for full license information.
using Avalonia.Utilities;
using System; using System;
using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
using System.Globalization; using System.Globalization;
using System.Linq;
namespace Avalonia.Animation namespace Avalonia.Animation
{ {
@ -199,4 +196,4 @@ namespace Avalonia.Animation
} }
} }
} }
} }

3
src/Avalonia.Animation/RepeatCountTypeConverter.cs

@ -1,7 +1,6 @@
// Copyright (c) The Avalonia Project. All rights reserved. // Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information. // Licensed under the MIT license. See licence.md file in the project root for full license information.
using Avalonia.Animation.Easings;
using System; using System;
using System.ComponentModel; using System.ComponentModel;
using System.Globalization; using System.Globalization;
@ -20,4 +19,4 @@ namespace Avalonia.Animation
return RepeatCount.Parse((string)value); return RepeatCount.Parse((string)value);
} }
} }
} }

2
src/Avalonia.Animation/Timing.cs

@ -2,10 +2,8 @@
// Licensed under the MIT license. See licence.md file in the project root for full license information. // Licensed under the MIT license. See licence.md file in the project root for full license information.
using System; using System;
using System.Diagnostics;
using System.Linq; using System.Linq;
using System.Reactive.Linq; using System.Reactive.Linq;
using Avalonia.Data;
using Avalonia.Threading; using Avalonia.Threading;
namespace Avalonia.Animation namespace Avalonia.Animation

3
src/Avalonia.Animation/Transition`1.cs

@ -1,7 +1,6 @@
// Copyright (c) The Avalonia Project. All rights reserved. // Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information. // Licensed under the MIT license. See licence.md file in the project root for full license information.
using Avalonia.Metadata;
using System; using System;
using System.Reactive.Linq; using System.Reactive.Linq;
using Avalonia.Animation.Easings; using Avalonia.Animation.Easings;
@ -65,4 +64,4 @@ namespace Avalonia.Animation
return control.Bind(Property, transition, Data.BindingPriority.Animation); return control.Bind(Property, transition, Data.BindingPriority.Animation);
} }
} }
} }

2
src/Avalonia.Animation/Utils/DoubleUtils.cs

@ -2,8 +2,6 @@
// Licensed under the MIT license. See licence.md file in the project root for full license information. // Licensed under the MIT license. See licence.md file in the project root for full license information.
using System; using System;
using System.Collections.Generic;
using System.Text;
namespace Avalonia.Animation.Utils namespace Avalonia.Animation.Utils
{ {

1
src/Avalonia.Base/Data/Core/Plugins/DataValidationBase.cs

@ -2,7 +2,6 @@
// Licensed under the MIT license. See licence.md file in the project root for full license information. // Licensed under the MIT license. See licence.md file in the project root for full license information.
using System; using System;
using Avalonia.Data;
namespace Avalonia.Data.Core.Plugins namespace Avalonia.Data.Core.Plugins
{ {

2
src/Avalonia.DesignerSupport/Remote/PreviewerWindowingPlatform.cs

@ -63,4 +63,4 @@ namespace Avalonia.DesignerSupport.Remote
public Size DoubleClickSize { get; } = new Size(2, 2); public Size DoubleClickSize { get; } = new Size(2, 2);
public TimeSpan DoubleClickTime { get; } = TimeSpan.FromMilliseconds(500); public TimeSpan DoubleClickTime { get; } = TimeSpan.FromMilliseconds(500);
} }
} }

5
src/Avalonia.DesignerSupport/Remote/RemoteDesignerEntryPoint.cs

@ -1,11 +1,8 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Diagnostics;
using System.Net; using System.Net;
using System.Reflection; using System.Reflection;
using Avalonia.Controls; using Avalonia.Controls;
using Avalonia.Controls.Shapes;
using Avalonia.DesignerSupport;
using Avalonia.Input; using Avalonia.Input;
using Avalonia.Remote.Protocol; using Avalonia.Remote.Protocol;
using Avalonia.Remote.Protocol.Designer; using Avalonia.Remote.Protocol.Designer;
@ -207,4 +204,4 @@ namespace Avalonia.DesignerSupport.Remote
} }
}); });
} }
} }

2
src/Avalonia.Diagnostics/Debug.cs

@ -2,10 +2,8 @@
// Licensed under the MIT license. See licence.md file in the project root for full license information. // Licensed under the MIT license. See licence.md file in the project root for full license information.
using System; using System;
using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks;
using Avalonia.Controls; using Avalonia.Controls;
using Avalonia.Data; using Avalonia.Data;
using Avalonia.VisualTree; using Avalonia.VisualTree;

1
src/Avalonia.Diagnostics/ViewModels/LogicalTreeNode.cs

@ -1,7 +1,6 @@
// Copyright (c) The Avalonia Project. All rights reserved. // Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information. // Licensed under the MIT license. See licence.md file in the project root for full license information.
using System;
using Avalonia.Collections; using Avalonia.Collections;
using Avalonia.Controls; using Avalonia.Controls;
using Avalonia.LogicalTree; using Avalonia.LogicalTree;

3
src/Avalonia.Diagnostics/ViewModels/ViewModelBase.cs

@ -1,5 +1,4 @@
using System; using System.Collections.Generic;
using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
using JetBrains.Annotations; using JetBrains.Annotations;

2
src/Avalonia.Diagnostics/Views/PropertyChangedExtenions.cs

@ -5,7 +5,7 @@ using System.Reflection;
namespace Avalonia.Diagnostics.Views namespace Avalonia.Diagnostics.Views
{ {
internal static class PropertyChangedExtenions internal static class PropertyChangedExtensions
{ {
public static IObservable<T> GetObservable<T>(this INotifyPropertyChanged source, string propertyName) public static IObservable<T> GetObservable<T>(this INotifyPropertyChanged source, string propertyName)
{ {

1
src/Avalonia.Diagnostics/Views/SimpleGrid.cs

@ -2,7 +2,6 @@
// Licensed under the MIT license. See licence.md file in the project root for full license information. // Licensed under the MIT license. See licence.md file in the project root for full license information.
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq;
using Avalonia.Controls; using Avalonia.Controls;
namespace Avalonia.Diagnostics.Views namespace Avalonia.Diagnostics.Views

9
src/Avalonia.DotNetCoreRuntime/AppBuilder.cs

@ -1,9 +1,4 @@
using System; using System.Reflection;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using Avalonia.Controls; using Avalonia.Controls;
using Avalonia.Platform; using Avalonia.Platform;
using Avalonia.Shared.PlatformSupport; using Avalonia.Shared.PlatformSupport;
@ -60,4 +55,4 @@ namespace Avalonia
void LoadWin32() => this.UseWin32(); void LoadWin32() => this.UseWin32();
void LoadGtk3() => this.UseGtk3(); void LoadGtk3() => this.UseGtk3();
} }
} }

4
src/Avalonia.DotNetCoreRuntime/RuntimeInfo.cs

@ -1,9 +1,5 @@
using System; using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using Avalonia.Platform; using Avalonia.Platform;

2
src/Avalonia.Input/AccessKeyHandler.cs

@ -49,7 +49,7 @@ namespace Avalonia.Input
private bool _altIsDown; private bool _altIsDown;
/// <summary> /// <summary>
/// Element to restore folowing AltKey taking focus. /// Element to restore following AltKey taking focus.
/// </summary> /// </summary>
private IInputElement _restoreFocusElement; private IInputElement _restoreFocusElement;

6
src/Avalonia.Input/Cursors.cs

@ -2,10 +2,6 @@
// Licensed under the MIT license. See licence.md file in the project root for full license information. // Licensed under the MIT license. See licence.md file in the project root for full license information.
using System; using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Avalonia.Platform; using Avalonia.Platform;
namespace Avalonia.Input namespace Avalonia.Input
@ -69,7 +65,7 @@ namespace Avalonia.Input
{ {
return Enum.TryParse<StandardCursorType>(s, true, out var t) ? return Enum.TryParse<StandardCursorType>(s, true, out var t) ?
new Cursor(t) : new Cursor(t) :
throw new ArgumentException($"Unrecognised cursor type '{s}'."); throw new ArgumentException($"Unrecognized cursor type '{s}'.");
} }
private static IPlatformHandle GetCursor(StandardCursorType type) private static IPlatformHandle GetCursor(StandardCursorType type)

4
src/Avalonia.Input/DataObject.cs

@ -1,6 +1,4 @@
using System; using System.Collections.Generic;
using System.Collections.Generic;
using System.Text;
namespace Avalonia.Input namespace Avalonia.Input
{ {

4
src/Avalonia.Input/DragDrop.cs

@ -1,6 +1,6 @@
using System.Threading.Tasks; using System.Threading.Tasks;
using Avalonia.Interactivity;
using Avalonia.Input.Platform; using Avalonia.Input.Platform;
using Avalonia.Interactivity;
namespace Avalonia.Input namespace Avalonia.Input
{ {
@ -51,4 +51,4 @@ namespace Avalonia.Input
return src?.DoDragDrop(data, allowedEffects) ?? Task.FromResult(DragDropEffects.None); return src?.DoDragDrop(data, allowedEffects) ?? Task.FromResult(DragDropEffects.None);
} }
} }
} }

1
src/Avalonia.Input/ICustomKeyboardNavigation.cs

@ -1,7 +1,6 @@
// Copyright (c) The Avalonia Project. All rights reserved. // Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information. // Licensed under the MIT license. See licence.md file in the project root for full license information.
using System;
namespace Avalonia.Input namespace Avalonia.Input
{ {

4
src/Avalonia.Input/IDataObject.cs

@ -14,7 +14,7 @@ namespace Avalonia.Input
IEnumerable<string> GetDataFormats(); IEnumerable<string> GetDataFormats();
/// <summary> /// <summary>
/// Checks wether a given DataFormat is present in this object /// Checks whether a given DataFormat is present in this object
/// <seealso cref="DataFormats"/> /// <seealso cref="DataFormats"/>
/// </summary> /// </summary>
bool Contains(string dataFormat); bool Contains(string dataFormat);
@ -36,4 +36,4 @@ namespace Avalonia.Input
/// </summary> /// </summary>
object Get(string dataFormat); object Get(string dataFormat);
} }
} }

8
src/Avalonia.Input/IInputManager.cs

@ -7,24 +7,24 @@ using Avalonia.Input.Raw;
namespace Avalonia.Input namespace Avalonia.Input
{ {
/// <summary> /// <summary>
/// Recieves input from the windowing subsystem and dispatches it to interested parties /// Receives input from the windowing subsystem and dispatches it to interested parties
/// for processing. /// for processing.
/// </summary> /// </summary>
public interface IInputManager public interface IInputManager
{ {
/// <summary> /// <summary>
/// Gets an observable that notifies on each input event recieved before /// Gets an observable that notifies on each input event received before
/// <see cref="Process"/>. /// <see cref="Process"/>.
/// </summary> /// </summary>
IObservable<RawInputEventArgs> PreProcess { get; } IObservable<RawInputEventArgs> PreProcess { get; }
/// <summary> /// <summary>
/// Gets an observable that notifies on each input event recieved. /// Gets an observable that notifies on each input event received.
/// </summary> /// </summary>
IObservable<RawInputEventArgs> Process { get; } IObservable<RawInputEventArgs> Process { get; }
/// <summary> /// <summary>
/// Gets an observable that notifies on each input event recieved after /// Gets an observable that notifies on each input event received after
/// <see cref="Process"/>. /// <see cref="Process"/>.
/// </summary> /// </summary>
IObservable<RawInputEventArgs> PostProcess { get; } IObservable<RawInputEventArgs> PostProcess { get; }

2
src/Avalonia.Input/IPointerDevice.cs

@ -1,8 +1,6 @@
// Copyright (c) The Avalonia Project. All rights reserved. // Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information. // Licensed under the MIT license. See licence.md file in the project root for full license information.
using System;
using Avalonia.Interactivity;
using Avalonia.VisualTree; using Avalonia.VisualTree;
namespace Avalonia.Input namespace Avalonia.Input

1
src/Avalonia.Input/InputElement.cs

@ -5,7 +5,6 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using Avalonia.Interactivity; using Avalonia.Interactivity;
using Avalonia.Rendering;
using Avalonia.VisualTree; using Avalonia.VisualTree;
namespace Avalonia.Input namespace Avalonia.Input

4
src/Avalonia.Input/InputExtensions.cs

@ -1,10 +1,10 @@
// Copyright (c) The Avalonia Project. All rights reserved. // Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information. // Licensed under the MIT license. See licence.md file in the project root for full license information.
using Avalonia.VisualTree;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using Avalonia.VisualTree;
namespace Avalonia.Input namespace Avalonia.Input
{ {
@ -48,4 +48,4 @@ namespace Avalonia.Input
element.IsEnabledCore; element.IsEnabledCore;
} }
} }
} }

2
src/Avalonia.Input/InputManager.cs

@ -8,7 +8,7 @@ using Avalonia.Input.Raw;
namespace Avalonia.Input namespace Avalonia.Input
{ {
/// <summary> /// <summary>
/// Recieves input from the windowing subsystem and dispatches it to interested parties /// Receives input from the windowing subsystem and dispatches it to interested parties
/// for processing. /// for processing.
/// </summary> /// </summary>
public class InputManager : IInputManager public class InputManager : IInputManager

2
src/Avalonia.Input/Key.cs

@ -77,7 +77,7 @@ namespace Avalonia.Input
KanaMode = 9, KanaMode = 9,
/// <summary> /// <summary>
/// The IME Janja mode key. /// The IME Junja mode key.
/// </summary> /// </summary>
JunjaMode = 10, JunjaMode = 10,

5
src/Avalonia.Input/KeyBinding.cs

@ -1,8 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input; using System.Windows.Input;
namespace Avalonia.Input namespace Avalonia.Input

1
src/Avalonia.Input/KeyEventArgs.cs

@ -1,7 +1,6 @@
// Copyright (c) The Avalonia Project. All rights reserved. // Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information. // Licensed under the MIT license. See licence.md file in the project root for full license information.
using System;
using Avalonia.Interactivity; using Avalonia.Interactivity;
namespace Avalonia.Input namespace Avalonia.Input

6
src/Avalonia.Input/KeyGesture.cs

@ -1,8 +1,6 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Avalonia.Input namespace Avalonia.Input
{ {
@ -45,7 +43,7 @@ namespace Avalonia.Input
public InputModifiers Modifiers { get; set; } public InputModifiers Modifiers { get; set; }
static readonly Dictionary<string, Key> KeySynonims = new Dictionary<string, Key> static readonly Dictionary<string, Key> KeySynonyms = new Dictionary<string, Key>
{ {
{"+", Key.OemPlus }, {"+", Key.OemPlus },
{"-", Key.OemMinus}, {"-", Key.OemMinus},
@ -56,7 +54,7 @@ namespace Avalonia.Input
static Key ParseKey(string key) static Key ParseKey(string key)
{ {
Key rv; Key rv;
if (KeySynonims.TryGetValue(key.ToLower(), out rv)) if (KeySynonyms.TryGetValue(key.ToLower(), out rv))
return rv; return rv;
return (Key)Enum.Parse(typeof (Key), key, true); return (Key)Enum.Parse(typeof (Key), key, true);
} }

3
src/Avalonia.Input/KeyboardDevice.cs

@ -1,10 +1,7 @@
// Copyright (c) The Avalonia Project. All rights reserved. // Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information. // Licensed under the MIT license. See licence.md file in the project root for full license information.
using System;
using System.ComponentModel; using System.ComponentModel;
using System.Linq;
using System.Reactive.Linq;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
using Avalonia.Input.Raw; using Avalonia.Input.Raw;
using Avalonia.Interactivity; using Avalonia.Interactivity;

2
src/Avalonia.Input/KeyboardNavigationHandler.cs

@ -46,7 +46,7 @@ namespace Avalonia.Input
/// <param name="direction">The navigation direction.</param> /// <param name="direction">The navigation direction.</param>
/// <returns> /// <returns>
/// The next element in the specified direction, or null if <paramref name="element"/> /// The next element in the specified direction, or null if <paramref name="element"/>
/// was the last in therequested direction. /// was the last in the requested direction.
/// </returns> /// </returns>
public static IInputElement GetNext( public static IInputElement GetNext(
IInputElement element, IInputElement element,

5
src/Avalonia.Input/MouseDevice.cs

@ -2,7 +2,6 @@
// Licensed under the MIT license. See licence.md file in the project root for full license information. // Licensed under the MIT license. See licence.md file in the project root for full license information.
using System; using System;
using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Reactive.Linq; using System.Reactive.Linq;
using Avalonia.Input.Raw; using Avalonia.Input.Raw;
@ -27,7 +26,7 @@ namespace Avalonia.Input
/// Gets the control that is currently capturing by the mouse, if any. /// Gets the control that is currently capturing by the mouse, if any.
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// When an element captures the mouse, it recieves mouse input whether the cursor is /// When an element captures the mouse, it receives mouse input whether the cursor is
/// within the control's bounds or not. To set the mouse capture, call the /// within the control's bounds or not. To set the mouse capture, call the
/// <see cref="Capture"/> method. /// <see cref="Capture"/> method.
/// </remarks> /// </remarks>
@ -66,7 +65,7 @@ namespace Avalonia.Input
/// </summary> /// </summary>
/// <param name="control">The control.</param> /// <param name="control">The control.</param>
/// <remarks> /// <remarks>
/// When an element captures the mouse, it recieves mouse input whether the cursor is /// When an element captures the mouse, it receives mouse input whether the cursor is
/// within the control's bounds or not. The current mouse capture control is exposed /// within the control's bounds or not. The current mouse capture control is exposed
/// by the <see cref="Captured"/> property. /// by the <see cref="Captured"/> property.
/// </remarks> /// </remarks>

4
src/Avalonia.Input/Platform/IClipboard.cs

@ -1,10 +1,6 @@
// Copyright (c) The Avalonia Project. All rights reserved. // Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information. // Licensed under the MIT license. See licence.md file in the project root for full license information.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace Avalonia.Input.Platform namespace Avalonia.Input.Platform

7
src/Avalonia.Input/Platform/IPlatformDragSource.cs

@ -1,9 +1,4 @@
using System; using System.Threading.Tasks;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Avalonia.Input;
using Avalonia.Interactivity;
namespace Avalonia.Input.Platform namespace Avalonia.Input.Platform
{ {

5
src/Avalonia.Input/Platform/IStandardCursorFactory.cs

@ -1,11 +1,6 @@
// Copyright (c) The Avalonia Project. All rights reserved. // Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information. // Licensed under the MIT license. See licence.md file in the project root for full license information.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Avalonia.Input; using Avalonia.Input;
namespace Avalonia.Platform namespace Avalonia.Platform

1
src/Avalonia.Input/PointerEventArgs.cs

@ -1,7 +1,6 @@
// Copyright (c) The Avalonia Project. All rights reserved. // Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information. // Licensed under the MIT license. See licence.md file in the project root for full license information.
using System;
using Avalonia.Interactivity; using Avalonia.Interactivity;
using Avalonia.VisualTree; using Avalonia.VisualTree;

6
src/Avalonia.Input/Raw/IDragDropDevice.cs

@ -1,8 +1,6 @@
using Avalonia.Input; namespace Avalonia.Input.Raw
namespace Avalonia.Input.Raw
{ {
public interface IDragDropDevice : IInputDevice public interface IDragDropDevice : IInputDevice
{ {
} }
} }

8
src/Avalonia.Input/Raw/RawDragEvent.cs

@ -1,8 +1,4 @@
using System; namespace Avalonia.Input.Raw
using Avalonia.Input;
using Avalonia.Input.Raw;
namespace Avalonia.Input.Raw
{ {
public class RawDragEvent : RawInputEventArgs public class RawDragEvent : RawInputEventArgs
{ {
@ -25,4 +21,4 @@ namespace Avalonia.Input.Raw
Modifiers = modifiers; Modifiers = modifiers;
} }
} }
} }

2
src/Avalonia.Input/Raw/RawMouseWheelEventArgs.cs

@ -1,8 +1,6 @@
// Copyright (c) The Avalonia Project. All rights reserved. // Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information. // Licensed under the MIT license. See licence.md file in the project root for full license information.
using System;
using Avalonia.Layout;
namespace Avalonia.Input.Raw namespace Avalonia.Input.Raw
{ {

5
src/Avalonia.Input/TextInputEventArgs.cs

@ -1,11 +1,6 @@
// Copyright (c) The Avalonia Project. All rights reserved. // Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information. // Licensed under the MIT license. See licence.md file in the project root for full license information.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Avalonia.Interactivity; using Avalonia.Interactivity;
namespace Avalonia.Input namespace Avalonia.Input

2
src/Avalonia.Interactivity/IInteractive.cs

@ -11,7 +11,7 @@ namespace Avalonia.Interactivity
public interface IInteractive public interface IInteractive
{ {
/// <summary> /// <summary>
/// Gets the interactive parent of the object for bubbling and tunnelling events. /// Gets the interactive parent of the object for bubbling and tunneling events.
/// </summary> /// </summary>
IInteractive InteractiveParent { get; } IInteractive InteractiveParent { get; }

2
src/Avalonia.Interactivity/Interactive.cs

@ -19,7 +19,7 @@ namespace Avalonia.Interactivity
private Dictionary<RoutedEvent, List<EventSubscription>> _eventHandlers; private Dictionary<RoutedEvent, List<EventSubscription>> _eventHandlers;
/// <summary> /// <summary>
/// Gets the interactive parent of the object for bubbling and tunnelling events. /// Gets the interactive parent of the object for bubbling and tunneling events.
/// </summary> /// </summary>
IInteractive IInteractive.InteractiveParent => ((IVisual)this).VisualParent as IInteractive; IInteractive IInteractive.InteractiveParent => ((IVisual)this).VisualParent as IInteractive;

2
src/Avalonia.Layout/ILayoutManager.cs

@ -1,8 +1,6 @@
// Copyright (c) The Avalonia Project. All rights reserved. // Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information. // Licensed under the MIT license. See licence.md file in the project root for full license information.
using System;
using System.Reactive;
namespace Avalonia.Layout namespace Avalonia.Layout
{ {

5
src/Avalonia.Layout/LayoutManager.cs

@ -3,7 +3,6 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq;
using Avalonia.Logging; using Avalonia.Logging;
using Avalonia.Threading; using Avalonia.Threading;
@ -100,7 +99,7 @@ namespace Avalonia.Layout
} }
stopwatch.Stop(); stopwatch.Stop();
Logger.Information(LogArea.Layout, this, "Layout pass finised in {Time}", stopwatch.Elapsed); Logger.Information(LogArea.Layout, this, "Layout pass finished in {Time}", stopwatch.Elapsed);
} }
_queued = false; _queued = false;
@ -150,7 +149,7 @@ namespace Avalonia.Layout
// Controls closest to the visual root need to be arranged first. We don't try to store // Controls closest to the visual root need to be arranged first. We don't try to store
// ordered invalidation lists, instead we traverse the tree upwards, measuring the // ordered invalidation lists, instead we traverse the tree upwards, measuring the
// controls closest to the root first. This has been shown by benchmarks to be the // controls closest to the root first. This has been shown by benchmarks to be the
// fastest and most memory-efficent algorithm. // fastest and most memory-efficient algorithm.
if (control.VisualParent is ILayoutable parent) if (control.VisualParent is ILayoutable parent)
{ {
Measure(parent); Measure(parent);

5
src/Avalonia.Layout/Layoutable.cs

@ -4,7 +4,6 @@
using System; using System;
using System.Linq; using System.Linq;
using Avalonia.Logging; using Avalonia.Logging;
using Avalonia.Platform;
using Avalonia.VisualTree; using Avalonia.VisualTree;
namespace Avalonia.Layout namespace Avalonia.Layout
@ -654,7 +653,7 @@ namespace Avalonia.Layout
} }
/// <summary> /// <summary>
/// Tests whether any of a <see cref="Rect"/>'s properties incude nagative values, /// Tests whether any of a <see cref="Rect"/>'s properties include negative values,
/// a NaN or Infinity. /// a NaN or Infinity.
/// </summary> /// </summary>
/// <param name="rect">The rect.</param> /// <param name="rect">The rect.</param>
@ -669,7 +668,7 @@ namespace Avalonia.Layout
} }
/// <summary> /// <summary>
/// Tests whether any of a <see cref="Size"/>'s properties incude nagative values, /// Tests whether any of a <see cref="Size"/>'s properties include negative values,
/// a NaN or Infinity. /// a NaN or Infinity.
/// </summary> /// </summary>
/// <param name="size">The size.</param> /// <param name="size">The size.</param>

3
src/Avalonia.Logging.Serilog/SerilogExtensions.cs

@ -1,5 +1,4 @@
using System; using Avalonia.Controls;
using Avalonia.Controls;
using Serilog; using Serilog;
using SerilogLevel = Serilog.Events.LogEventLevel; using SerilogLevel = Serilog.Events.LogEventLevel;

3
src/Avalonia.ReactiveUI/AppBuilderExtensions.cs

@ -4,9 +4,6 @@
using Avalonia.Controls; using Avalonia.Controls;
using Avalonia.Threading; using Avalonia.Threading;
using ReactiveUI; using ReactiveUI;
using System;
using System.Reactive.Concurrency;
using System.Threading;
namespace Avalonia namespace Avalonia
{ {

4
src/Avalonia.Remote.Protocol/AvaloniaRemoteMessageGuidAttribute.cs

@ -1,8 +1,4 @@
using System; using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Avalonia.Remote.Protocol namespace Avalonia.Remote.Protocol
{ {

1
src/Avalonia.Remote.Protocol/BsonStreamTransport.cs

@ -1,5 +1,4 @@
using System; using System;
using System.Collections.Generic;
using System.IO; using System.IO;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;

2
src/Avalonia.Remote.Protocol/DefaultMessageTypeResolver.cs

@ -2,8 +2,6 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Reflection; using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace Avalonia.Remote.Protocol namespace Avalonia.Remote.Protocol
{ {

3
src/Avalonia.Remote.Protocol/ITransport.cs

@ -1,7 +1,4 @@
using System; using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace Avalonia.Remote.Protocol namespace Avalonia.Remote.Protocol

4
src/Avalonia.Remote.Protocol/InputMessages.cs

@ -1,8 +1,4 @@
using System; using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
/* /*
We are keeping copies of core events here, so they can be used We are keeping copies of core events here, so they can be used
without referencing Avalonia itself, e. g. from projects that without referencing Avalonia itself, e. g. from projects that

27
src/Avalonia.Remote.Protocol/MetsysBson.cs

@ -28,20 +28,19 @@ Code imported from https://github.com/elaberge/Metsys.Bson without any changes
*/ */
using System.Text; using System;
using System.Text.RegularExpressions;
using System.IO;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using System.Net; using System.IO;
using System.Security.Cryptography;
using System.Linq; using System.Linq;
using System.Linq.Expressions; using System.Linq.Expressions;
using System.Net;
using System.Reflection; using System.Reflection;
using System;
using System.Runtime.Serialization; using System.Runtime.Serialization;
using System.Security.Cryptography;
using System.Text;
using System.Text.RegularExpressions;
using Metsys.Bson.Configuration; using Metsys.Bson.Configuration;
// ReSharper disable All // ReSharper disable All
@ -251,7 +250,7 @@ namespace Metsys.Bson
_writer.Write((long)((DateTime)value).ToUniversalTime().Subtract(Helper.Epoch).TotalMilliseconds); _writer.Write((long)((DateTime)value).ToUniversalTime().Subtract(Helper.Epoch).TotalMilliseconds);
return; return;
case Types.Binary: case Types.Binary:
WriteBinnary(value); WriteBinary(value);
return; return;
case Types.ScopedCode: case Types.ScopedCode:
Write((ScopedCode)value); Write((ScopedCode)value);
@ -309,7 +308,7 @@ namespace Metsys.Bson
} }
} }
private void WriteBinnary(object value) private void WriteBinary(object value)
{ {
if (value is byte[]) if (value is byte[])
{ {
@ -833,14 +832,14 @@ namespace Metsys.Bson
return enumerableType.IsGenericType ? enumerableType.GetGenericArguments()[0] : typeof(object); return enumerableType.IsGenericType ? enumerableType.GetGenericArguments()[0] : typeof(object);
} }
public static Type GetDictionarKeyType(Type enumerableType) public static Type GetDictionaryKeyType(Type enumerableType)
{ {
return enumerableType.IsGenericType return enumerableType.IsGenericType
? enumerableType.GetGenericArguments()[0] ? enumerableType.GetGenericArguments()[0]
: typeof(object); : typeof(object);
} }
public static Type GetDictionarValueType(Type enumerableType) public static Type GetDictionaryValueType(Type enumerableType)
{ {
return enumerableType.IsGenericType return enumerableType.IsGenericType
? enumerableType.GetGenericArguments()[1] ? enumerableType.GetGenericArguments()[1]
@ -1259,9 +1258,9 @@ namespace Metsys.Bson
private object ReadDictionary(Type listType, object existingContainer, Options options) private object ReadDictionary(Type listType, object existingContainer, Options options)
{ {
var valueType = ListHelper.GetDictionarValueType(listType); var valueType = ListHelper.GetDictionaryValueType(listType);
var isObject = typeof(object) == valueType; var isObject = typeof(object) == valueType;
var container = existingContainer == null ? ListHelper.CreateDictionary(listType, ListHelper.GetDictionarKeyType(listType), valueType) : (IDictionary)existingContainer; var container = existingContainer == null ? ListHelper.CreateDictionary(listType, ListHelper.GetDictionaryKeyType(listType), valueType) : (IDictionary)existingContainer;
while (!IsDone()) while (!IsDone())
{ {
@ -1310,7 +1309,7 @@ namespace Metsys.Bson
private string ReadString() private string ReadString()
{ {
var length = _reader.ReadInt32(); var length = _reader.ReadInt32();
var buffer = _reader.ReadBytes(length - 1); //todo: again, look at fragementation prevention var buffer = _reader.ReadBytes(length - 1); //todo: again, look at fragmentation prevention
_reader.ReadByte(); //null; _reader.ReadByte(); //null;
Read(4 + length); Read(4 + length);

8
src/Avalonia.Remote.Protocol/ViewportMessages.cs

@ -1,10 +1,4 @@
using System; namespace Avalonia.Remote.Protocol.Viewport
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Avalonia.Remote.Protocol.Viewport
{ {
public enum PixelFormat public enum PixelFormat
{ {

1
src/Avalonia.Styling/Controls/Classes.cs

@ -3,7 +3,6 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq;
using Avalonia.Collections; using Avalonia.Collections;
namespace Avalonia.Controls namespace Avalonia.Controls

2
src/Avalonia.Styling/Controls/INameScope.cs

@ -21,7 +21,7 @@ namespace Avalonia.Controls
event EventHandler<NameScopeEventArgs> Unregistered; event EventHandler<NameScopeEventArgs> Unregistered;
/// <summary> /// <summary>
/// Registers an element eith the name scope. /// Registers an element in the name scope.
/// </summary> /// </summary>
/// <param name="name">The element name.</param> /// <param name="name">The element name.</param>
/// <param name="element">The element.</param> /// <param name="element">The element.</param>

1
src/Avalonia.Styling/Controls/IPseudoClasses.cs

@ -1,7 +1,6 @@
// Copyright (c) The Avalonia Project. All rights reserved. // Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information. // Licensed under the MIT license. See licence.md file in the project root for full license information.
using System;
namespace Avalonia.Controls namespace Avalonia.Controls
{ {

1
src/Avalonia.Styling/Controls/IResourceDictionary.cs

@ -1,7 +1,6 @@
// Copyright (c) The Avalonia Project. All rights reserved. // Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information. // Licensed under the MIT license. See licence.md file in the project root for full license information.
using System;
using System.Collections.Generic; using System.Collections.Generic;
namespace Avalonia.Controls namespace Avalonia.Controls

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save