Silverlight Drawing Brush

63 views
Skip to first unread message

samoht

unread,
Jun 12, 2009, 5:27:25 AM6/12/09
to WPF Graphics Site group
I managed to export it to SilverLight with


var wmf = new ReaderWmf();
wmf.Read(fileName);

var settings=new SilverlightXamlWriterSettings
{
SilverlightVersion =
SilverlightXamlWriterSettings.SilverlightVersionType.Silverlight_2
};

string xaml = wmf.GetXaml(settings);

But it produces Drawing Brushes which are not available in Silverlight

For a workaround i found following:

http://www.codeproject.com/KB/silverlight/Silverlight-DrawingBrush.aspx

Sincerly Thomas Stocker
Reply all
Reply to author
Forward
0 new messages