Changed FrameworkElement to DependencyObject