• 大小: 89KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-02-11
  • 语言: C#
  • 标签: C#  treeview  wpf  wpf树控件  

资源简介

自定义漂亮的wpf树控件,可以实现漂亮的树控件显示效果

资源截图

代码片段和文件信息

using System;
using System.Diagnostics;
using System.Reflection;
using System.Windows;
using Hardcodet.Wpf.GenericTreeView;

namespace Hardcodet.Wpf.Samples
{
  /// 
  /// Interaction logic for AboutDialog.xaml
  /// 

  public partial class AboutDialog : Window
  {
    public AboutDialog()
    {
      InitializeComponent();

      //set version number
      Version version = typeof(TreeViewbaseject>).Assembly.GetName().Version;
      txtVersion.Text = version.ToString();
    }


    private void btnOk_Click(object sender RoutedEventArgs e)
    {
      DialogResult = true;
    }


    private void OnNavigationRequest(object sender System.Windows.Navigation.RequestNavigateEventArgs e)
    {
      Process.Start(e.Uri.ToString());
      e

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2008-01-31 21:56  TreeView\
     文件        2794  2008-01-30 09:49  TreeView\Changelog.txt
     文件       13702  2008-01-06 07:38  TreeView\license.html
     目录           0  2008-01-31 21:57  TreeView\Sample Application\
     文件        4632  2008-01-30 09:20  TreeView\Sample Application\AboutDialog.xaml
     文件         834  2008-01-24 19:02  TreeView\Sample Application\AboutDialog.xaml.cs
     文件         499  2008-01-26 20:14  TreeView\Sample Application\App.xaml
     文件         288  2008-01-22 15:09  TreeView\Sample Application\App.xaml.cs
     文件        6426  2008-01-29 11:24  TreeView\Sample Application\CategoryTree.cs
     文件        1025  2008-01-28 01:02  TreeView\Sample Application\ClassDiagram1.cd
     目录           0  2008-01-31 21:56  TreeView\Sample Application\Images\
     文件         502  2008-01-23 18:01  TreeView\Sample Application\Images\Add.png
     文件         622  2008-01-27 13:53  TreeView\Sample Application\Images\Book.png
     文件         487  2008-01-23 15:01  TreeView\Sample Application\Images\FolderClosed.png
     文件        2410  2008-01-24 17:23  TreeView\Sample Application\Images\FolderLogo.png
     文件         556  2008-01-23 15:01  TreeView\Sample Application\Images\FolderOpen.png
     文件         590  2008-01-23 15:01  TreeView\Sample Application\Images\FolderSelected.png
     文件         813  2008-01-27 13:46  TreeView\Sample Application\Images\Home.png
     文件        3892  2008-01-24 17:03  TreeView\Sample Application\Images\Info.png
     文件        9112  2008-01-24 16:02  TreeView\Sample Application\Images\Logo.png
     文件         653  2008-01-27 13:53  TreeView\Sample Application\Images\Movie.png
     文件         385  2008-01-27 13:53  TreeView\Sample Application\Images\Music.png
     文件         842  2008-01-23 18:01  TreeView\Sample Application\Images\Remove.png
     文件         916  2008-01-27 13:50  TreeView\Sample Application\Images\Star.png
     文件         577  2008-01-23 19:01  TreeView\Sample Application\Images\WinFolder.gif
     文件        1126  2008-01-24 19:02  TreeView\Sample Application\InputDialog.xaml
     文件         828  2008-01-24 19:02  TreeView\Sample Application\InputDialog.xaml.cs
     文件        4267  2008-01-29 19:23  TreeView\Sample Application\Introduction.xaml
     文件         792  2008-01-29 11:20  TreeView\Sample Application\Introduction.xaml.cs
     文件       17799  2008-01-30 01:55  TreeView\Sample Application\MainWindow.xaml
     文件        9665  2008-01-29 16:46  TreeView\Sample Application\MainWindow.xaml.cs
............此处省略30个文件信息

评论

共有 条评论