Like the header tells: Is the any simple method to get CornerRadius from unknown UIElement? Cannot use types FrameworkElement,UIElement,DependencyObject to check.
//Get the unknown FrameworkElement
object Target = Grid.Children[0];
CornerRadius TargetCorner;
//Check and get CornerRadius.... Any easier way to do this?
if (Target is Grid) TargetCorner = (Target as Grid).CornerRadius;
else if (Target is StackPanel) TargetCorner = (Target as StackPanel).CornerRadius;
else if (Target is RelativePanel) TargetCorner = (Target as RelativePanel).CornerRadius;
else if (Target is Border) TargetCorner = (Target as Border).CornerRadius;
else if (Target is Control) TargetCorner = (Target as Control).CornerRadius;
//ETC....