-3
在XAML創建組合框我有一個這樣的XML ...從XML
<Actions>
<Group Name="Process" Expand="true">
<Action Name="Configure Process" Type="LaunchProcess">
<Instructions>Click the button to launch Process.</Instructions>
<ActionDetails ProcessName="C:\program files (x86)\measure\process.exe">
</ActionDetails>
</Action>
<Action Name="Update Process" Type="LaunchProcess">
<Instructions>Click the button to update process.</Instructions>
<ActionDetails ProcessName="C:\Program Files\Updater.exe" WorkingDir="C:\Program Files\tools">
</ActionDetails>
</Action>
</Group>
<Group Name="Windows" Expand="false">
<Action Name="Set Time" Type="LaunchProcess">
<Instructions>Set the time.</Instructions>
<ActionDetails ProcessName="control.exe" Arguments="timedate.cpl">
</ActionDetails>
</Action>
<Action Name="Set Name" Type="LaunchProcess">
<Instructions>Set the name.</Instructions>
<ActionDetails ProcessName="control.exe" Arguments="sysdm.cpl">
</ActionDetails>
</Action>
</Group>
<Actions>
我怎麼會去從這個XML做一個組合框的XAML?我正在C#和WPF中使用Visual Studio 2013。
到目前爲止您嘗試了什麼? – MoonBoots89
您需要更具體地瞭解您的問題。本論壇不打算讓人們從未知設計中爲您創建解決方案。 –
考慮使用樹視圖。易於從XML創建。請參閱以下內容:https://stackoverflow.com/questions/28976601/recursion-parsing-xml-file-with-attributes-into-treeview-c-sharp。喲可以使用選中的樹形視圖,以便您可以選擇節點。 – jdweng