TestControlBase.cs 3.0 KB

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