using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
namespace FWindSoft.Wpf.Controls
{
///
/// ListCategory.xaml 的交互逻辑
///
public partial class ListCategory : UserControl
{
public ListCategory()
{
InitializeComponent();
}
}
public partial class ListCategory
{
/*
* 绑定数据源必须存在Name的属性
* 直接和界面中属性关联的 使用绑定进行关联
* 如果公开的属性和界面中用到的属性经过中间处理,则通过使用空间名字的方法进行赋值
*/
#region 依赖属性定义
public static readonly DependencyProperty ItemsProperty;
public static readonly DependencyProperty DisplayPathProperty;
#endregion
#region 定义命令
private static RoutedCommand m_SelectCommand;
public static RoutedCommand SelectCommand
{
get { return m_SelectCommand; }
}
#endregion
#region 定义事件
public static readonly RoutedEvent SelectChangedEvent = EventManager.RegisterRoutedEvent("SelectChanged",
RoutingStrategy.Direct, typeof(RoutedPropertyChangedEventHandler