TestControlBase.cs 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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;
  5. using Perspex.Collections;
  6. using Perspex.Controls;
  7. using Perspex.Data;
  8. namespace Perspex.Styling.UnitTests
  9. {
  10. public class TestControlBase : IStyleable
  11. {
  12. public TestControlBase()
  13. {
  14. Classes = new Classes();
  15. SubscribeCheckObservable = new TestObservable();
  16. }
  17. public event EventHandler<PerspexPropertyChangedEventArgs> PropertyChanged;
  18. public string Name { get; set; }
  19. public virtual Classes Classes { get; set; }
  20. public Type StyleKey => GetType();
  21. public TestObservable SubscribeCheckObservable { get; private set; }
  22. public ITemplatedControl TemplatedParent
  23. {
  24. get;
  25. set;
  26. }
  27. IPerspexReadOnlyList<string> IStyleable.Classes => Classes;
  28. IObservable<Unit> IStyleable.StyleDetach { get; }
  29. public object GetValue(PerspexProperty property)
  30. {
  31. throw new NotImplementedException();
  32. }
  33. public T GetValue<T>(PerspexProperty<T> property)
  34. {
  35. throw new NotImplementedException();
  36. }
  37. public void SetValue(PerspexProperty property, object value, BindingPriority priority)
  38. {
  39. throw new NotImplementedException();
  40. }
  41. public void SetValue<T>(PerspexProperty<T> property, T value, BindingPriority priority = BindingPriority.LocalValue)
  42. {
  43. throw new NotImplementedException();
  44. }
  45. public bool IsSet(PerspexProperty property)
  46. {
  47. throw new NotImplementedException();
  48. }
  49. public IDisposable Bind(PerspexProperty property, IObservable<object> source, BindingPriority priority)
  50. {
  51. throw new NotImplementedException();
  52. }
  53. public IDisposable Bind<T>(PerspexProperty<T> property, IObservable<T> source, BindingPriority priority = BindingPriority.LocalValue)
  54. {
  55. throw new NotImplementedException();
  56. }
  57. }
  58. }