TestControlBase.cs 3.1 KB

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