Note that there are some explanatory texts on larger screens.

plurals
  1. POXML data binding in WPF
    primarykey
    data
    text
    <p>I am attempting to write an app that decodes some unsigned long values. Format of each value is represented in XML as:</p> <pre><code>&lt;Project Name="Project1"&gt; &lt;Message Name="a"&gt; &lt;BitField high="31" low="28"&gt; &lt;value&gt;0001&lt;/value&gt; &lt;value&gt;1010&lt;/value&gt; &lt;/Bitfield&gt; &lt;BitField high="27" low="17"&gt; &lt;value&gt;000111101&lt;/value&gt; &lt;/BitField&gt; &lt;BitField high="16" low="0"&gt;100h&lt;/BitField&gt; &lt;/Message&gt; &lt;/Project&gt; </code></pre> <p>Now the project values appear in a combobox. When the user selects a value in combo box, the message types have to be displayed in list box. Then when the user selects a message type in the listbox, the bitfields and the values that they can hold have to be displayed. Now when the user selects a value for each bitfield, the final dword value have to be displayed in a textbox.</p> <p>I have come across examples to parse a full xml but not pertaining to a selection. Need your guys help here.</p> <p>One more thing is that user can enter a dword value in the text box. Now how can i do this reverse binding of decoding the dword in the textbox and display the corresponding message+value using the UI explained above?</p> <p>UPDATE: Now i have done the binding between the combo box which displays the project values and the listbox which displays the message. The next thing i have to do is, when the user selects a message in listbox, the bitfields have to be displayed as rows with "high", "low", "value/@name"(not shown here), and then the value(binded to value/@name) as columns. The value/@name has to be displayed as combobox. Iam sure i can do this in dataGrid, but iam using .net 3.5 so searching for an alternative here. Also the value text block has to be editable incase the &lt; value > nodes are not present in xml. Finally i got to pack the entries across "value" column to a DWORD. Can i do this in XAML without a datagrid? Whats an alternative to datagrid for .Net 3.5?</p>
    singulars
    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.
 

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