TestTemplatedControl.cs 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. namespace Perspex.Styling.UnitTests
  8. {
  9. public abstract class TestTemplatedControl : ITemplatedControl, IStyleable
  10. {
  11. public event EventHandler<PerspexPropertyChangedEventArgs> PropertyChanged;
  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. IPerspexReadOnlyList<string> IStyleable.Classes => Classes;
  29. IObservable<Unit> IStyleable.StyleDetach { get; }
  30. public object GetValue(PerspexProperty property)
  31. {
  32. throw new NotImplementedException();
  33. }
  34. public T GetValue<T>(PerspexProperty<T> property)
  35. {
  36. throw new NotImplementedException();
  37. }
  38. public void SetValue(PerspexProperty property, object value, BindingPriority priority)
  39. {
  40. throw new NotImplementedException();
  41. }
  42. public void SetValue<T>(PerspexProperty<T> property, T value, BindingPriority priority = BindingPriority.LocalValue)
  43. {
  44. throw new NotImplementedException();
  45. }
  46. public IDisposable Bind(PerspexProperty property, IObservable<object> source, BindingPriority priority)
  47. {
  48. throw new NotImplementedException();
  49. }
  50. public IDisposable Bind<T>(PerspexProperty<T> property, IObservable<T> source, BindingPriority priority = BindingPriority.LocalValue)
  51. {
  52. throw new NotImplementedException();
  53. }
  54. public bool IsSet(PerspexProperty property)
  55. {
  56. throw new NotImplementedException();
  57. }
  58. }
  59. }