csharpc-sharpdotnetxamlavaloniauicross-platformcross-platform-xamlavaloniaguimulti-platformuser-interfacedotnetcore
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
113 lines
3.4 KiB
113 lines
3.4 KiB
// Copyright (c) The Avalonia Project. All rights reserved.
|
|
// Licensed under the MIT license. See licence.md file in the project root for full license information.
|
|
|
|
using System;
|
|
using System.Reactive;
|
|
using Avalonia.Collections;
|
|
using Avalonia.Controls;
|
|
using Avalonia.Data;
|
|
|
|
namespace Avalonia.Styling.UnitTests
|
|
{
|
|
public class TestControlBase : IStyleable
|
|
{
|
|
public TestControlBase()
|
|
{
|
|
Classes = new Classes();
|
|
SubscribeCheckObservable = new TestObservable();
|
|
}
|
|
|
|
#pragma warning disable CS0067 // Event not used
|
|
public event EventHandler<AvaloniaPropertyChangedEventArgs> PropertyChanged;
|
|
public event EventHandler<AvaloniaPropertyChangedEventArgs> InheritablePropertyChanged;
|
|
#pragma warning restore CS0067
|
|
|
|
public string Name { get; set; }
|
|
|
|
public virtual Classes Classes { get; set; }
|
|
|
|
public Type StyleKey => GetType();
|
|
|
|
public TestObservable SubscribeCheckObservable { get; private set; }
|
|
|
|
public ITemplatedControl TemplatedParent
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
IAvaloniaReadOnlyList<string> IStyleable.Classes => Classes;
|
|
|
|
IObservable<IStyleable> IStyleable.StyleDetach { get; }
|
|
|
|
public object GetValue(AvaloniaProperty property)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public T GetValue<T>(AvaloniaProperty<T> property)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public void SetValue(AvaloniaProperty property, object value, BindingPriority priority)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public void SetValue<T>(AvaloniaProperty<T> property, T value, BindingPriority priority = BindingPriority.LocalValue)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public bool IsAnimating(AvaloniaProperty property)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public bool IsSet(AvaloniaProperty property)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public IDisposable Bind(AvaloniaProperty property, IObservable<BindingValue<object>> source, BindingPriority priority = BindingPriority.LocalValue)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public IDisposable Bind<T>(AvaloniaProperty<T> property, IObservable<BindingValue<T>> source, BindingPriority priority = BindingPriority.LocalValue)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public void ClearValue(AvaloniaProperty property)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public void ClearValue<T>(AvaloniaProperty<T> property)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public void AddInheritanceChild(IAvaloniaObject child)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public void RemoveInheritanceChild(IAvaloniaObject child)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public void InheritanceParentChanged<T>(StyledPropertyBase<T> property, IAvaloniaObject oldParent, IAvaloniaObject newParent)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public void InheritedPropertyChanged<T>(AvaloniaProperty<T> property, Optional<T> oldValue, Optional<T> newValue)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
}
|
|
|