mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-03 02:27:08 +02:00
1. Add XAML namespaces https://spacestation14.io with Avalonia hacks. 2. Make markup extensions work with Avalonia hacks. 3. Add LocExtension for localized strings. 4. Add Vector2 parsing type converter to XAML compilation. 5. Make SS14Window better thanks to these improvements.
21 lines
552 B
C#
21 lines
552 B
C#
using System;
|
|
using JetBrains.Annotations;
|
|
|
|
// ReSharper disable once CheckNamespace
|
|
namespace Avalonia.Metadata
|
|
{
|
|
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
|
|
[PublicAPI]
|
|
public sealed class XmlnsDefinitionAttribute : Attribute
|
|
{
|
|
public XmlnsDefinitionAttribute(string xmlNamespace, string clrNamespace)
|
|
{
|
|
XmlNamespace = xmlNamespace;
|
|
ClrNamespace = clrNamespace;
|
|
}
|
|
|
|
public string XmlNamespace { get; }
|
|
public string ClrNamespace { get; }
|
|
}
|
|
}
|