public Window1()
{
InitializeComponent();
this.TargetUpdated += new EventHandler<DataTransferEventArgs>(Window1_TargetUpdated);
this.SourceUpdated += new EventHandler<DataTransferEventArgs>(Window1_SourceUpdated);
}
static Window1()
{
Window.WidthProperty.OverrideMetadata(typeof(Window1), new FrameworkPropertyMetadata(new PropertyChangedCallback(WidthPropertyChangedCallback)));
}
public static void WidthPropertyChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
Console.WriteLine(e.NewValue);
}
void Window1_TargetUpdated(object sender, DataTransferEventArgs e)
{
}
void Window1_SourceUpdated(object sender, DataTransferEventArgs e)
{
}
protected override void OnPropertyChanged(DependencyPropertyChangedEventArgs e)
{
base.OnPropertyChanged(e);
}