日期:2014-05-17 浏览次数:20744 次
using System;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using System.Windows.Media;
namespace WpfStaticResource
{
class CustomBrush : INotifyPropertyChanged
{
private SolidColorBrush _myBrush;
public SolidColorBrush MyBrush
{
get
{
return _myBrush;
}
set
{
if (_myBrush != value)
{
_myBrush = value;
NotifyPropertyChanged();
}
}
}
public event PropertyChangedEventHandler PropertyChanged;
private void NotifyPropertyChanged([CallerMemberName] String propertyName = "")
{
if (Proper