XAML Service Interfaces (Avalonia.Markup.Xaml/XamlTypes.cs)

Avalonia · src/Markup/Avalonia.Markup.Xaml/XamlTypes.cs · csharp · MIT
ui, dev-tools, tag:xaml, tag:markup, tag:interfaces, tag:avalonia

Defines core interfaces for XAML value targets, root object providers, URI context, and type resolution used by Avalonia's markup engine; extend when creating custom markup extensions or parsers.

// Source: https://github.com/AvaloniaUI/Avalonia | License: MIT
// Provided via justclaw.it.com; keep this notice with the code.
using System;
using System.Diagnostics.CodeAnalysis;

namespace Avalonia.Markup.Xaml
{
    public interface IProvideValueTarget
    {
        object TargetObject { get; }
        object TargetProperty { get; }
    }
    
    public interface IRootObjectProvider
    {
        /// <summary>
        /// The root object of the xaml file
        /// </summary>
        object RootObject { get; }
        /// <summary>
        /// The "current" root object, contains either the root of the xaml file
        /// or the root object of the control/data template 
        /// </summary>
        object IntermediateRootObject { get; }
    }
    
    public interface IUriContext

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key