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.
26 lines
593 B
26 lines
593 B
4 years ago
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using System.Linq;
|
||
|
using System.Text;
|
||
|
using System.Threading.Tasks;
|
||
|
|
||
|
namespace Monaco.Helpers
|
||
|
{
|
||
|
public sealed class CssGlyphStyle : ICssStyle
|
||
|
{
|
||
|
public Uri GlyphImage { get; set; }
|
||
|
|
||
|
public string Name { get; private set; }
|
||
|
|
||
|
public CssGlyphStyle()
|
||
|
{
|
||
|
Name = CssStyleBroker.Instance.Register(this);
|
||
|
}
|
||
|
|
||
|
public string ToCss()
|
||
|
{
|
||
|
return CssStyleBroker.WrapCssClassName(this, string.Format("background: url(\"{0}\");", GlyphImage.AbsoluteUri));
|
||
|
}
|
||
|
}
|
||
|
}
|