I got a FrameworkElement within the eventhandler of a class. Is there a possibility to check if this FrameworkElement is an element that has a borderthickness/borderbrush property ?
Like
var element = myframeworkelement as IHasBorder;
element.borderthickness = new Thickness(1,2,3,4);
Does something like this exist ?
The properties
BorderThicknessandBorderBrushare defined in theControlclass.So you can try to cast your
FrameworkElementtoControl, and if that works, set the properties: