Serve XAML to a client

  • Thread starter Thread starter Bill McCormick
  • Start date Start date
B

Bill McCormick

Is it possible to send XAML (say via an WCF service) to some generic WPF
client application and have it build, display and modify the UI on the fly?

Thanks,

Bill
 
Bill,

Yes, since XAML is just XML, you can return that to your client. Then,
you can use the XamlReader class to take the XML returned and create an
object from it which you would use appropriately.

I wouldn't use a typed set of XML here, I'd just return a string (it
depends on how complex the XML that makes up your XAML is).
 
Back
Top