Click here to Skip to main content
15,886,110 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Silverlight on Linux(Ubuntu) Pin
trønderen12-Dec-12 11:50
trønderen12-Dec-12 11:50 
GeneralRe: Silverlight on Linux(Ubuntu) Pin
Mycroft Holmes12-Dec-12 13:19
professionalMycroft Holmes12-Dec-12 13:19 
QuestionForm_Load equivalent from C#.Silverlight Pin
wizshrutz15-Oct-12 17:54
wizshrutz15-Oct-12 17:54 
AnswerRe: Form_Load equivalent from C#.Silverlight Pin
Abhinav S15-Oct-12 18:09
Abhinav S15-Oct-12 18:09 
AnswerRe: Form_Load equivalent from C#.Silverlight Pin
dbaseman23-Oct-12 17:01
dbaseman23-Oct-12 17:01 
QuestionWPF PropertyGrid with Custom Editor Pin
#realJSOP15-Oct-12 10:17
mve#realJSOP15-Oct-12 10:17 
QuestionHow to draw a vertical line chart? Pin
haody007014-Oct-12 21:38
haody007014-Oct-12 21:38 
NewsWPF TreeView Problem Pin
Kevin Marois12-Oct-12 17:19
professionalKevin Marois12-Oct-12 17:19 
I have this data:

<?xml version="1.0" encoding="utf-8"?>
<ArrayOfFolderEntity xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <FolderEntity Id="0" FolderName="Projects" Description="">
    <Folders>
      <FolderEntity Id="3" FolderName="Folder 1" Description="Folder 1 Desc ">
        <Folders />
        <Files>
          <FileEntity Id="1" FileName="File A" Description="File A Desc " />
          <FileEntity Id="2" FileName="File B" Description="File B Desc " />
        </Files>
      </FolderEntity>
      <FolderEntity Id="6" FolderName="Folder 2" Description="Folder 2 Desc ">
        <Folders />
        <Files>
          <FileEntity Id="4" FileName="File C" Description="File C Desc " />
          <FileEntity Id="2" FileName="File B" Description="File B Desc " />
        </Files>
      </FolderEntity>
    </Folders>
    <Files />
  </FolderEntity>
</ArrayOfFolderEntity>


and after it's deserialized it populated a list if Folders and Files:

Then in the view I have TreeView:

<TreeView x:Name="tvwItems"
            BorderThickness="0"
            Background="Transparent"
            Grid.Row="1"
            Grid.Column="0"
            Margin="0,2,0,2"
            ItemsSource="{Binding Folders}">
            
    <TreeView.Resources>
        <HierarchicalDataTemplate DataType="{x:Type entities:FolderEntity}" 
                                    ItemsSource="{Binding Folders}">
            <TextBlock Text="{Binding Path=FolderName}" />
        </HierarchicalDataTemplate>
        <DataTemplate DataType="{x:Type entities:FileEntity}" >
            <TextBlock Text="{Binding Path=FileName}" />
        </DataTemplate>
    </TreeView.Resources>
            
</TreeView>


The data is being loaded correctly, but when It runs all I see is

Projects
  Folder 1
  Folder 2


... no files.

What am I doing wrong?
If it's not broken, fix it until it is

GeneralRe: WPF TreeView Problem Pin
Mycroft Holmes14-Oct-12 15:31
professionalMycroft Holmes14-Oct-12 15:31 
GeneralRe: WPF TreeView Problem Pin
#realJSOP15-Oct-12 11:18
mve#realJSOP15-Oct-12 11:18 
GeneralRe: WPF TreeView Problem Pin
Kevin Marois16-Oct-12 6:07
professionalKevin Marois16-Oct-12 6:07 
GeneralRe: WPF TreeView Problem Pin
#realJSOP16-Oct-12 8:42
mve#realJSOP16-Oct-12 8:42 
GeneralRe: WPF TreeView Problem Pin
Kevin Marois16-Oct-12 8:43
professionalKevin Marois16-Oct-12 8:43 
GeneralRe: WPF TreeView Problem Pin
#realJSOP17-Oct-12 4:39
mve#realJSOP17-Oct-12 4:39 
GeneralRe: WPF TreeView Problem Pin
Kevin Marois17-Oct-12 5:10
professionalKevin Marois17-Oct-12 5:10 
QuestionWPF Datagrid grouping with dynamic columns Pin
Member 93422189-Oct-12 20:45
Member 93422189-Oct-12 20:45 
AnswerRe: WPF Datagrid grouping with dynamic columns Pin
Mycroft Holmes14-Oct-12 15:35
professionalMycroft Holmes14-Oct-12 15:35 
QuestionUsing the ComponentResourceKey Pin
ElPicoso9-Oct-12 8:21
ElPicoso9-Oct-12 8:21 
QuestionSilvelight : Canvas with checkbox create in dynamically like theater sit booking Pin
Shaikh Daniyal9-Oct-12 3:06
professionalShaikh Daniyal9-Oct-12 3:06 
AnswerRe: Silvelight : Canvas with checkbox create in dynamically like theater sit booking Pin
Pete O'Hanlon9-Oct-12 3:11
mvePete O'Hanlon9-Oct-12 3:11 
QuestionByte[] of PDF into image Pin
GomathiR9-Oct-12 2:43
GomathiR9-Oct-12 2:43 
AnswerRe: Byte[] of PDF into image Pin
Pete O'Hanlon9-Oct-12 2:57
mvePete O'Hanlon9-Oct-12 2:57 
GeneralRe: Byte[] of PDF into image Pin
GomathiR9-Oct-12 21:23
GomathiR9-Oct-12 21:23 
GeneralRe: Byte[] of PDF into image Pin
Pete O'Hanlon9-Oct-12 21:51
mvePete O'Hanlon9-Oct-12 21:51 
GeneralRe: Byte[] of PDF into image Pin
GomathiR10-Oct-12 4:22
GomathiR10-Oct-12 4:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.