index > Windows Presentation Foundation ("Avalon") > converting frameworkElement to Xaml, modifying it, and converting...

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.

Rob Relyea
reply 2

You can use google to search for other answers

 

More Articles

• objectdataprovider.refresh()
• Installer that requieres WPF
• Resource Dictionaries & Templates
• Problem in Removing the Children(animation) of StoryBoard
• How to transfer(Upload) file to remote server using code in Winfx...
• How to assign database/source of ListView programmatically in WPF...
• Set Focus / Selection to child item
• How: Menu with predefined items AND bound items?
• Stylus events from Wacom graphics tablet
• Access to an panel inside a ItemsPanelTemplate
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• XBAP's and firewalls
• What is the meaning of double "?&q
• How to load an image into ObservableColl
• Setting data source from codebehind?
• Applying styles at runtime
• Z-order
• Importing a DirectX mesh (.x file) into
• Listbox ClearSelection
• Issue with WWF in VS2005 in Vista 5472
• PixelFormat: why is the difference?
• Regarding to Report Viewer
• Using GuidelineSet with DrawingContext
• Invalid attribute when attempting to bin
• Generic Sortable ListView
• Creating a WPF ruler

Hot Articles

• can XBAP XAML reference isoloated storate
• Is there any Panel that expands both sid
• TreeView items rendering
• Applying a style to the child items of a
• How to check if a click was on a transpa
• Problem for report Viewer
• Repeating MediaElement
• FindItemWithText in the new ListView??
• Inherited Custom Image Control...
• Announcing the WPF/XAML Conversion Tool
• Offline binding
• Invalid attribute when attempting to bin
• DataGrid control
• Question about the default window create
• Get an event for SystemParameters changes?

Recommend Articles

• MouseEnter + grid row + animation problem
• Help me snap to device pixels...
• Creating a RoutedEvent using reflection
• XAMLPad for June CTP neeeeeeded
• hidden controls showing sometimes.
• WPF download links
• Please help with zipPackage
• How to modify default WPF application st
• Healthcare application demo
• Navigation between pages
• Mousewheel Event in xaml
• SolidBrush and Resource Dictionaries
• ListView SubItem?
• How to create an instance of ObservableC
• How to serialize a custom markup extension