TestTemplatedControl.cs 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. // Copyright (c) The Perspex 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.Collections.Generic;
  5. using System.Reactive.Subjects;
  6. using Perspex.Collections;
  7. using Perspex.Controls;
  8. namespace Perspex.Styling.UnitTests
  9. {
  10. public abstract class TestTemplatedControl : ITemplatedControl, IStyleable
  11. {
  12. public abstract Classes Classes
  13. {
  14. get;
  15. }
  16. public abstract string Name
  17. {
  18. get;
  19. }
  20. public abstract Type StyleKey
  21. {
  22. get;
  23. }
  24. public abstract ITemplatedControl TemplatedParent
  25. {
  26. get;
  27. }
  28. public abstract IEnumerable<IVisual> VisualChildren
  29. {
  30. get;
  31. }
  32. public IPropertyBag InheritanceParent
  33. {
  34. get
  35. {
  36. throw new NotImplementedException();
  37. }
  38. }
  39. IPerspexReadOnlyList<string> IStyleable.Classes => Classes;
  40. public IObservable<T> GetObservable<T>(PerspexProperty<T> property)
  41. {
  42. throw new NotImplementedException();
  43. }
  44. public IDisposable Bind(PerspexProperty property, IObservable<object> source, BindingPriority priority)
  45. {
  46. throw new NotImplementedException();
  47. }
  48. public void SetValue(PerspexProperty property, object value, BindingPriority priority)
  49. {
  50. throw new NotImplementedException();
  51. }
  52. public IObservable<object> GetObservable(PerspexProperty property)
  53. {
  54. throw new NotImplementedException();
  55. }
  56. public bool IsRegistered(PerspexProperty property)
  57. {
  58. throw new NotImplementedException();
  59. }
  60. public void ClearValue(PerspexProperty property)
  61. {
  62. throw new NotImplementedException();
  63. }
  64. public object GetValue(PerspexProperty property)
  65. {
  66. throw new NotImplementedException();
  67. }
  68. public bool IsSet(PerspexProperty property)
  69. {
  70. throw new NotImplementedException();
  71. }
  72. public IDisposable Bind<T>(PerspexProperty<T> property, IObservable<T> source, BindingPriority priority = BindingPriority.LocalValue)
  73. {
  74. throw new NotImplementedException();
  75. }
  76. public T GetValue<T>(PerspexProperty<T> property)
  77. {
  78. throw new NotImplementedException();
  79. }
  80. public void SetValue<T>(PerspexProperty<T> property, T value, BindingPriority priority = BindingPriority.LocalValue)
  81. {
  82. throw new NotImplementedException();
  83. }
  84. public IDisposable BindTwoWay(PerspexProperty property, PerspexObject source, PerspexProperty sourceProperty, BindingPriority priority = BindingPriority.LocalValue)
  85. {
  86. throw new NotImplementedException();
  87. }
  88. public IDisposable BindTwoWay(PerspexProperty property, ISubject<object> source, BindingPriority priority = BindingPriority.LocalValue)
  89. {
  90. throw new NotImplementedException();
  91. }
  92. }
  93. }