I am haveing trouble rendering hierarchical data template I have hierarchical itemsource as follows:
can you show me how to use tree with hierarchical datatemplate, I won't be knowing number of levels in the tree in advance.
can you show me how to use tree with hierarchical datatemplate, I won't be knowing number of levels in the tree in advance.
#region
top
var top = new FacetValue()
{
Id = 1,
Freq =
"",
Values =
new FacetValue[]
{
new FacetValue
{
Id = 2,
Freq =
"",
Values =
new FacetValue[]
{
new FacetValue
{
Id = 3,
Freq =
"included",
Values =
new FacetValue[]
{
new FacetValue
{
Id = 4,
Freq =
"",
Values =
null
},
new FacetValue
{
Id = 5,
Freq =
"",
Values =
null
}
}
}
}
},
new FacetValue()
{
Id = 6,
Freq =
"",
Values =
new FacetValue[] {}
},
new FacetValue()
{
Id = 7,
Freq =
"excluded",
Values =
null
}
},
};
#endregion