string s = "< Button xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml' >";
s += "Hai";
s += " < /Button > ";
Stream strm = new MemoryStream(ASCIIEncoding.Default.GetBytes(s));
Button b = (Button)System.Windows.Markup.XamlReader.Load(strm);
stackPanel.Children.Add(B);
Friday, April 20, 2007
Subscribe to:
Post Comments (Atom)
thanks i'm looking for this example for like an houre thank you very much
ReplyDeleteHappy to hear that my post helped you
ReplyDelete