Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

selecteditem treeview wpf

public class ExtendedTreeView : TreeView
{
    public ExtendedTreeView()
        : base()
    {
        this.SelectedItemChanged += new RoutedPropertyChangedEventHandler<object>(___ICH);
    }

    void ___ICH(object sender, RoutedPropertyChangedEventArgs<object> e)
    {
        if (SelectedItem != null)
        {
            SetValue(SelectedItem_Property, SelectedItem);
        }
    }

    public object SelectedItem_
    {
        get { return (object)GetValue(SelectedItem_Property); }
        set { SetValue(SelectedItem_Property, value); }
    }
    public static readonly DependencyProperty SelectedItem_Property = DependencyProperty.Register("SelectedItem_", typeof(object), typeof(ExtendedTreeView), new UIPropertyMetadata(null));
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: hive survive 
Csharp :: aspnet for loop 
Csharp :: lock a cache in asp.net 
Csharp :: unity show scene 
Csharp :: convert string to float win forms 
Csharp :: c# different getter setter types 
Csharp :: SceneManagment by BuildIndex 
Csharp :: linq query to fetch parent child data from same table in c# 
Csharp :: blazor editform empty 
Csharp :: c# delay 1 second 
Csharp :: messagebox error c# 
Csharp :: Get single listView SelectedItem 
Csharp :: c# base vs this 
Csharp :: save string to file c# 
Csharp :: c# datafield change cell background color 
Csharp :: drop column with code first asp.net core 
Csharp :: how to perform drop down when click on combobox in c# net 
Csharp :: Microsoft.ACE.OLEDB.12.0 c# excel first sheet 
Csharp :: writeline in C# 
Csharp :: edit opened excel file directly 
Csharp :: take the last 50 from array c# 
Csharp :: unity how to change visual studio version 
Csharp :: dispose await task c# 
Csharp :: c# check if pdf is protected without password 
Csharp :: Min max to 01 
Csharp :: C# Compound Assignment Operator 
Csharp :: unity set particle properties through script 
Csharp :: Modify middleware response c# .net 
Csharp :: Strings build-in functions in c# 
Csharp :: unity download image from online 
ADD CONTENT
Topic
Content
Source link
Name
8+9 =