Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This could be done using databinding and XMLReaders. First create your UI, preferably inside a parent panel (this way we can set the datacontext of the panel and the child controls will all inherit this context).</p> <p>Next create a custom class (let's call it Project). Make sure each field in this class updates PropertyDependencyInfo, otherwise databinding will not work.</p> <p>Then bind the Content or Itemssource properties of your UI controls to the fields of your Project class. </p> <p>Then, create the code to read the XML using either an XMLReader class or an XPathReader class. Then, when you have accessed the data from the file, set up the fields of a new Project object to match the data you want to read.</p> <p>Once the Project object has been instantiated and the values from the XML correctly assigned to it, set the parent Panel from the UI's DataContext property to your Project object. All of the UI fields should then update.</p> <p>If you then need to load a different file, all you have to do is repeat the XML reading with a different file name.</p> <p>As for your update: The rows and columns could be managed using either of the following:</p> <p>A Grid/UniformGrid control whose RowDefinition and ColumnDefinition children are created and modified at runtime in order to manage increasing and decreasing numbers of fields</p> <p>or: A set of StackPanels, one for each column (as the number of columns never changes). You can directly add Comboboxes to the StackPanel for your value/@name column or you could modify the StackPanel's ItemsTemplate (if it has one, I can't reach a machine to check at the moment).</p> <p>This question should probably be split into a couple of sub-questions as it covers a range of topics and you're more likely to get detailed answers to each facet of your problem if there are questions tailored specifically to those problems.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload