TreeView With Checkbox,when Double Click parent node,show Exception

TreeView With Checkbox,when Double Click parent node,show Exception

funtim41
Participant Participant
682 Views
2 Replies
Message 1 of 3

TreeView With Checkbox,when Double Click parent node,show Exception

funtim41
Participant
Participant

 

 

  <TreeView.ItemTemplate>
      <HierarchicalDataTemplate ItemsSource="{Binding CommandMethodNames}">
          <StackPanel Orientation="Horizontal">
              <CheckBox />
              <TextBlock Margin="5" Text="{Binding Name}" />
          </StackPanel>
      </HierarchicalDataTemplate>
  </TreeView.ItemTemplate>

 

 

i use this code in wpf,when i double click parent node,show  this Exception

PixPin_2025-01-07_11-28-33.png

VS version:17.12.3

CAD 2024

0 Likes
Accepted solutions (1)
683 Views
2 Replies
Replies (2)
Message 2 of 3

funtim41
Participant
Participant

ok i get it .Some object return null. And How can i delete this question

0 Likes
Message 3 of 3

essam-salah
Advisor
Advisor
Accepted solution

@funtim41 wrote:

ok i get it .Some object return null. And How can i delete this question


hi, i don't think there is a need to delete the thread just write the solution and mark the thread as solved

 

0 Likes