Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4332966
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T10:19:43+00:00 2026-05-21T10:19:43+00:00

I have a WPF application that encapsulates the editing of a dozen or so

  • 0

I have a WPF application that encapsulates the editing of a dozen or so xml config files in a single place so that a deployment engineer does not have to know where things may or may not be changed. At the moment each config is represented as its own object with the logic to update various UI items as standard get and set functions.

One other feature is that the application should read in an older version of these config files and copy any changed values to a new installation. Really easy since we’re using object representations of each file.

I’ve been looking at WPF databinding and while it looks great for reading and writing XML and displaying on the various application controls, I’m having trouble figuring out just how I would implement the copying part. Would I be heading down a wrong path by using Databinding at all?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T10:19:44+00:00Added an answer on May 21, 2026 at 10:19 am

    The answer to the question, “Should I use data binding in WPF?” is almost invariably “Yes.” The real question is more along the lines, “What should I use WPF data binding for?”

    It sounds as though the architecture of your application is currently:

    XML <--> Object Model <--> UI Controls
    

    In WPF, you’ll want to use data binding to connect the object model to the UI controls. All of the functionality in your current object model that copies XML files around and updates their contents and so on, all of that happens in another universe, as far as WPF is concerned.

    If the methods currently implemented in your object model make changes to the objects’ properties that need to be pushed out to the UI, things may get a little more complicated. For instance, you may find that you want to create Command objects to expose these methods to the UI, and then need to implement some mechanism for raising PropertyChanged events after the methods change the objects’ properties. Depending on the overall architecture of your application, you may not want to integrate WPF objects (e.g. commands) or implement property-change notification in your object model.

    That gets you into the territory of the MVVM pattern (the “viewmodel layer” that Joe White alludes to), which is a way of encapsulating commands and property-change notification (and other stuff that a WPF UI needs) without having to modify the underlying object model. That’s OK. It’s a little overwhelming the first time you do it, mostly because the information you’ll find when you start researching it will show you solutions to problems that you may not have (or may not have yet). But really it’s not so bad.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WPF application that executes external programs to process media files, and
I have WPF C# application that communicate with a PLC (i.e. write/read Omron PLC's
We have a WPF Application that runs from both desktop and as a XBAP
I have a WPF application that is a fullscreen kiosk app. It's actually a
I have a WPF application that's crashing once I get it onto machines that
I have a WPF application that will always run on windows 7, it opens
I have a WPF application that is using a WindowsFormsHost control to host a
I have a WPF application that I want to deploy to client PCs via
I have a wpf application (C#) that needs to copy a file to a
I have a c# wpf application that requires SQL Express 2005 database and I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.