A cross-platform UI framework for .NET
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.
 
 
 

31 lines
794 B

using System;
using System.Linq;
using Avalonia.VisualTree;
namespace Avalonia.Styling
{
internal abstract class ValueStyleQuery<T> : StyleQuery
{
private readonly StyleQuery? _previous;
private T _argument;
internal ValueStyleQuery(StyleQuery? previous, T argument)
{
_previous = previous;
_argument = argument;
}
protected T Argument => _argument;
internal override bool IsCombinator => false;
public override string ToString(ContainerQuery? owner)
{
throw new NotImplementedException();
}
private protected override StyleQuery? MovePrevious() => _previous;
private protected override StyleQuery? MovePreviousOrParent() => _previous;
}
}