Advertisement
Advertisement
| 08.18.2008 at 01:55PM PDT, ID: 23657704 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: |
XML...
1 <systems>
2 <system info="00 General">
3 <doc name="1111111111">
4 <subsystem sn="00-01">
5 <commonality>90</commonality>
6 <reason>blah blah blah</reason>
7 </subsystem>
8 <subsystem sn="00-02">
9 <commonality>90</commonality>
10 <reason>blah blah blah</reason>
11 </subsystem>
12 </doc>
13 </system>
14 <system info="01 general test">
15 <doc name="2222222222">
16 <subsystem sn="01-01">
17 <commonality>100</commonality>
18 <reason></reason>
19 </subsystem>
20 <subsystem sn="01-02">
21 <commonality>70</commonality>
22 <reason>Jack</reason>
23 </subsystem>
24 </doc>
25 </system>
26 </systems>
WPF...
1 <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
2 x:Class="treeview.Window1" x:Name="Window" Title="Window1" Width="640" Height="480"
3 xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d">
4
5 <Window.Resources>
6 <Style TargetType="TreeViewItem">
7 <Setter Property="IsExpanded" Value="True"/>
8 </Style>
9
10 <XmlDataProvider x:Key="systemsDS" d:IsDataSource="True" Source="test.xml"/>
11
12 <HierarchicalDataTemplate x:Key="systemTemplate">
13 <StackPanel>
14 <TextBlock Text="{Binding Mode=OneWay, XPath=@info}"/>
15 </StackPanel>
16 </HierarchicalDataTemplate>
17 </Window.Resources>
18
19 <Grid>
20 <TreeView ItemsSource="{Binding Mode=Default, Source={StaticResource systemsDS}, XPath=/systems/system}"
21 ItemTemplate="{StaticResource systemTemplate}"/>
22 </Grid>
23 </Window>
|