I am attempting to write an app that decodes some unsigned long values. Format of each value is represented in XML as:
<Project Name="Project1">
<Message Name="a">
<BitField high="31" low="28">
<value>0001</value>
<value>1010</value>
</Bitfield>
<BitField high="27" low="17">
<value>000111101</value>
</BitField>
<BitField high="16" low="0">100h</BitField>
</Message>
</Project>
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.
I have come across examples to parse a full xml but not pertaining to a selection. Need your guys help here.
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?
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 < 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?