Top "Uielement" questions

UIElement is a base class for most of the objects that have visual appearance and can process basic input as part of the user interface.

WPF - Determining if Mouse Is Over a UIElement

I have some xaml markup that looks essentially like this: <Canvas x:Name="A"> <Canvas x:Name="…

wpf mouse uielement
Getting the top left coordinates of a WPF UIElement

I am working on extending the Microsoft resize Adorner example and need to be able to reposition the element after …

c# .net wpf wpf-controls uielement
Is there any unique identifier for wpf UIElement?

For logging user actions in my WPF forms, I added some global event handlers I want to log exactly which …

c# wpf wpf-controls uielement
UIElement vs FrameworkElement in WPF/Silverlight

When do I derive from UIElement and FrameworkElement considering FrameworkElement inherits UIElement. Can anyone give real life examples?

wpf silverlight uielement frameworkelement
Positioning UIElement on a Canvas

I have a canvas and a red rectangle laid on it. Rectangle has a MouseDown event handler implemented: private void …

wpf canvas wpf-controls uielement wpf-positioning
How can you get the parent of a UIElement?

Ok, I know that FrameworkElement, which is a direct subclass of UIElement, has a Parent property, but Panels have children …

wpf panel parent children uielement
How make a Screenshot of UIElement in WPF

I have a problem with creating a screenshot of a scatterview. My screenshot always contains a black frame. Here's my …

wpf screenshot uielement scatterview
WPF ListBox - Getting UIElement instead of of SelectedItem

I created a ListBox that has a DataTemplate as Itemtemplate. However, is there an easy way to access the generated …

wpf listbox datatemplate selecteditem uielement
Find position of Button/UIElement on screen relative to grid Windows Phone

I can't find a way to get the position in (x,y) co-ordinates of an on-screen control like a button …

c# silverlight windows-phone-7 uielement
Adding and removing WPF UIElements at runtime

Is there a way to logically group or tag UIElements like shapes and controls added at runtime for easy removal? …

wpf uielement