TestTemplatedControl.cs 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  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<BindingValue<object>> source, BindingPriority priority = BindingPriority.LocalValue)
  49. {
  50. throw new NotImplementedException();
  51. }
  52. public IDisposable Bind<T>(AvaloniaProperty<T> property, IObservable<BindingValue<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. public void ClearValue(AvaloniaProperty property)
  65. {
  66. throw new NotImplementedException();
  67. }
  68. public void ClearValue<T>(AvaloniaProperty<T> property)
  69. {
  70. throw new NotImplementedException();
  71. }
  72. public void AddInheritanceChild(IAvaloniaObject child)
  73. {
  74. throw new NotImplementedException();
  75. }
  76. public void RemoveInheritanceChild(IAvaloniaObject child)
  77. {
  78. throw new NotImplementedException();
  79. }
  80. public void InheritanceParentChanged<T>(StyledPropertyBase<T> property, IAvaloniaObject oldParent, IAvaloniaObject newParent)
  81. {
  82. throw new NotImplementedException();
  83. }
  84. public void InheritedPropertyChanged<T>(AvaloniaProperty<T> property, Optional<T> oldValue, Optional<T> newValue)
  85. {
  86. throw new NotImplementedException();
  87. }
  88. public void ClearValue<T>(StyledPropertyBase<T> property)
  89. {
  90. throw new NotImplementedException();
  91. }
  92. public void ClearValue<T>(DirectPropertyBase<T> property)
  93. {
  94. throw new NotImplementedException();
  95. }
  96. public T GetValue<T>(StyledPropertyBase<T> property)
  97. {
  98. throw new NotImplementedException();
  99. }
  100. public T GetValue<T>(DirectPropertyBase<T> property)
  101. {
  102. throw new NotImplementedException();
  103. }
  104. public void SetValue<T>(StyledPropertyBase<T> property, T value, BindingPriority priority = BindingPriority.LocalValue)
  105. {
  106. throw new NotImplementedException();
  107. }
  108. public void SetValue<T>(DirectPropertyBase<T> property, T value)
  109. {
  110. throw new NotImplementedException();
  111. }
  112. public IDisposable Bind<T>(StyledPropertyBase<T> property, IObservable<BindingValue<T>> source, BindingPriority priority = BindingPriority.LocalValue)
  113. {
  114. throw new NotImplementedException();
  115. }
  116. public IDisposable Bind<T>(DirectPropertyBase<T> property, IObservable<BindingValue<T>> source)
  117. {
  118. throw new NotImplementedException();
  119. }
  120. }
  121. }