converting frameworkElement to Xaml, modifying it, and converting...
This may be a problem in the way I am doing this, but i'm trying to accomplish a type of ajax using xaml, where I have a WPF object that a remote app wants to modify and return. The steps all happen fine until the end where I need to replace my old local object with my new modified object. No visual change occurs when I replace one with the other, even though they are different. I am currently doing the following:
local C# WPF object -> local Xaml -> TCPIP to remote app -> remote C# WPF object -> (remote app modifies width, height, rotation, etc) -> remote Xaml ->TCPIP -> local C# WPF object.
in the final step I just do a
Obj = (FrameworkElement)XamlReader.Load(...)
Any ideas on how to replace a WPF object with a modified version of itself?
Thanks, Wilder
Wildert
you need to remove the old element from its parent, and then add the new element in the same "index" as the old one.