
Signature
Miha Markic [MVP C#, INETA Country Leader for Slovenia]
RightHand .NET consulting & development www.rthand.com
Blog: http://cs.rthand.com/blogs/blog_with_righthand/
Possible. That would be an other problem to struggle with. What I don't
understand is the fact that with XAML we have a nice way of describing a
GUI. But I found no way to build up the XAML Markup dynamically and the
transform it the a remote client and there parse the content of the XAML
stream. Or do you think I'm on the wron track?
Thanks for your help
>> Hello Miha,
>>
[quoted text clipped - 6 lines]
>
> Sort of. But then, roundtrips/would kill your performance, won't they?
Carl Daniel [VC++ MVP] - 10 Aug 2006 15:52 GMT
> Possible. That would be an other problem to struggle with. What I
> don't understand is the fact that with XAML we have a nice way of
> describing a GUI. But I found no way to build up the XAML Markup
> dynamically and the transform it the a remote client and there parse
> the content of the XAML stream. Or do you think I'm on the wron track?
There's a class called XamlReader that can parse XAML and create the object
(form, control, etc) that it describes. Once you have that object, you
could connect event handlers to it's events that forward the events back to
a server. You'd have to know in advance which events to hook, I think,
since there will be literally hundreds of possible events from a form of any
complexity.
On the server side, I'm not aware of a XamlWriter class, but then I don't
have access to the docs right now (they're on a different machine). In any
case, you can always build an XmlDocument with the approrpiate XAML code and
then serialize it to a string for transmissions to the remote client.
-cd