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.
25 lines
593 B
25 lines
593 B
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)); |
|
} |
|
} |
|
}
|
|
|