TestTemplatedControl.cs 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. // Copyright (c) The Avalonia Project. All rights reserved.
  2. // Licensed under the MIT license. See licence.md file in the project root for full license information.
  3. using System;
  4. using System.Reactive;
  5. using Avalonia.Collections;
  6. using Avalonia.Controls;
  7. using Avalonia.Data;
  8. namespace Avalonia.Styling.UnitTests
  9. {
  10. public abstract class TestTemplatedControl : ITemplatedControl, IStyleable
  11. {
  12. public event EventHandler<AvaloniaPropertyChangedEventArgs> PropertyChanged;
  13. public abstract Classes Classes
  14. {
  15. get;
  16. }
  17. public abstract string Name
  18. {
  19. get;
  20. }
  21. public abstract Type StyleKey
  22. {
  23. get;
  24. }
  25. public abstract ITemplatedControl TemplatedParent
  26. {
  27. get;
  28. }
  29. IAvaloniaReadOnlyList<string> IStyleable.Classes => Classes;
  30. IObservable<IStyleable> IStyleable.StyleDetach { get; }
  31. public object GetValue(AvaloniaProperty property)
  32. {
  33. throw new NotImplementedException();
  34. }
  35. public T GetValue<T>(AvaloniaProperty<T> property)
  36. {
  37. throw new NotImplementedException();
  38. }
  39. public void SetValue(AvaloniaProperty property, object value, BindingPriority priority)
  40. {
  41. throw new NotImplementedException();
  42. }
  43. public void SetValue<T>(AvaloniaProperty<T> property, T value, BindingPriority priority = BindingPriority.LocalValue)
  44. {
  45. throw new NotImplementedException();
  46. }
  47. public IDisposable Bind(AvaloniaProperty property, IObservable<object> source, BindingPriority priority = BindingPriority.LocalValue)
  48. {
  49. throw new NotImplementedException();
  50. }
  51. public IDisposable Bind<T>(AvaloniaProperty<T> property, IObservable<T> source, BindingPriority priority = BindingPriority.LocalValue)
  52. {
  53. throw new NotImplementedException();
  54. }
  55. public bool IsAnimating(AvaloniaProperty property)
  56. {
  57. throw new NotImplementedException();
  58. }
  59. public bool IsSet(AvaloniaProperty property)
  60. {
  61. throw new NotImplementedException();
  62. }
  63. }
  64. }