SL项目开发自定义控件封装之Fieldset

using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace SCWJ.Control.User.SL
{
public class Fieldset : ContentControl
{
public Fieldset()
{
this.DefaultStyleKey = typeof(Fieldset);
}

/// <summary>
/// 标题
/// </summary>
public string Title
{
get { return (string)GetValue(TitleProperty); }
set { SetValue(TitleProperty, value); }
}

public static readonly DependencyProperty TitleProperty =
DependencyProperty.Register(
"Title", typeof(string), typeof(Fieldset), null);
}
}

posted @ 2011-05-02 23:24  chinafhp  阅读(176)  评论(0)    收藏  举报