|
using System;
using System.Text;
using System.Windows;
using System.Windows.Media;
using System.Windows.Markup;
using System.Collections.Generic;
namespace SharpVectors.Runtime
{
public sealed class SvgFontUriExtension : MarkupExtension
{
private string _inputUri;
public SvgFontUriExtension(string inputUri)
{
_inputUri = Environment.ExpandEnvironmentVariables(inputUri);
}
public override object ProvideValue(IServiceProvider serviceProvider)
{
return new Uri(_inputUri);
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.