small improvements to RadFlyoutBase & RadDialogBase
This commit is contained in:
18
Pilz.UI.Telerik/Extensions.cs
Normal file
18
Pilz.UI.Telerik/Extensions.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using Telerik.WinControls;
|
||||
using Telerik.WinControls.Svg;
|
||||
|
||||
namespace Pilz.UI.Telerik;
|
||||
|
||||
public static class Extensions
|
||||
{
|
||||
public static Image ToImage(this RadSvgImage svg)
|
||||
{
|
||||
return svg.Document.Draw(svg.Width, svg.Height);
|
||||
}
|
||||
|
||||
public static void ApplyColor(this RadSvgImage svg, Color color)
|
||||
{
|
||||
svg.Document.Fill = new SvgColourServer(color);
|
||||
svg.ClearCache();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user