TestTemplatedControl.cs 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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 event EventHandler<AvaloniaPropertyChangedEventArgs> InheritablePropertyChanged;
  14. public abstract Classes Classes
  15. {
  16. get;
  17. }
  18. public abstract string Name
  19. {
  20. get;
  21. }
  22. public abstract Type StyleKey
  23. {
  24. get;
  25. }
  26. public abstract ITemplatedControl TemplatedParent
  27. {
  28. get;
  29. }
  30. IAvaloniaReadOnlyList<string> IStyleable.Classes => Classes;
  31. IObservable<IStyleable> IStyleable.StyleDetach { get; }
  32. public object GetValue(AvaloniaProperty property)
  33. {
  34. throw new NotImplementedException();
  35. }
  36. public T GetValue<T>(AvaloniaProperty<T> property)
  37. {
  38. throw new NotImplementedException();
  39. }
  40. public void SetValue(AvaloniaProperty property, object value, BindingPriority priority)
  41. {
  42. throw new NotImplementedException();
  43. }
  44. public void SetValue<T>(AvaloniaProperty<T> property, T value, BindingPriority priority = BindingPriority.LocalValue)
  45. {
  46. throw new NotImplementedException();
  47. }
  48. public IDisposable Bind(AvaloniaProperty property, IObservable<object> source, BindingPriority priority = BindingPriority.LocalValue)
  49. {
  50. throw new NotImplementedException();
  51. }
  52. public IDisposable Bind<T>(AvaloniaProperty<T> property, IObservable<T> source, BindingPriority priority = BindingPriority.LocalValue)
  53. {
  54. throw new NotImplementedException();
  55. }
  56. public bool IsAnimating(AvaloniaProperty property)
  57. {
  58. throw new NotImplementedException();
  59. }
  60. public bool IsSet(AvaloniaProperty property)
  61. {
  62. throw new NotImplementedException();
  63. }
  64. }
  65. }