I have a method that is passed in a FrameworkElement Ctrl. When I use Ctrl.GetType().ToString() I get "System.Window.Controls.TextBox" or another string if a different type of control is passed in. All I am interested in is the text
after the last dot/period. In my searching I thought I came across something that just returned the portion I'm looking for, but now can't find it.
Is there a method that returns the control's type, such as "TextBox", "TextBlock", "Canvas", etc., without its parents?
View Complete Post