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.
Questions tagged [uielement]
404 questions
3
votes
1 answer
How can I determine if the mouse cursor is over a given uielement?
I need to determine whether the mouse cursor is over a given UIElement. The method should work even if another element is placed on top of it (because it has a bigger Zindex).
I tried using MouseEnter/Leave events but mouseenter does not trigger if…

clems
- 31
- 1
- 2
3
votes
1 answer
WPF Styling all elements using UIElement
Here's something I want to do:
So that I can style any type (not just some…

Payal D'Cruz
- 63
- 6
3
votes
2 answers
Adding UIElements to custom control (WPF)
How can I create a custom control which takes a list of UIElements and renders them according to some logic?
Because it will handle a list of UIElements, the best way of adding controls will be the same as for, i.e. ListBox or…

bohdan_trotsenko
- 5,167
- 3
- 43
- 70
3
votes
1 answer
VisualTreeHelper.FindElementsInHostCoordinates with Rectangle in Canvas ? Never find my UIElement
I'm trying to find UIElement from coordinate in my Silverlight for WP7 application.
Here is my XAML :

Tim
- 1,749
- 3
- 24
- 48
3
votes
2 answers
How can I change the callback of a uielement using get()?
Some background
I've created a GUI using a combination of a GUIDE built Figure and procedurally placed checkboxes that are added at runtime. The checkboxes are in a matrix where the number of rows and columns is determined at runtime. To keep…

Miebster
- 2,365
- 4
- 21
- 27
2
votes
1 answer
The right event to detect a moving UIElement inside a Canvas
I have a Rectangle within a Canvas. The rectangle has the MouseDragElementBehavior attached to it, so it can move freely within the canvas.
I need to do certain calculations when the smallest changes happen in the position of the rectangle, but i…

olix20
- 794
- 1
- 11
- 23
2
votes
3 answers
Is it possible to overlap WPF WebBrowser with other UIElement?
I want to put over WPF WebBrowser some UIElement (opacity = 0) ie and catch all click events via this overplaced UIElement.
Is it possible to do?
This code doesn't work...
2
votes
2 answers
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 XAML-Code:

Dennis Schneider
- 71
- 1
- 1
- 6
2
votes
2 answers
How to get DataContext for UIElement?
As UIElement has no property DataContext, how can I get the DataContext for UIElement?

KentZhou
- 24,805
- 41
- 134
- 200
2
votes
2 answers
How can I find out when a new UIElement is added in Silverlight
I am designing a user control in sliverlight that inherits from canvas. It is necessary for me to find out when a new UIElement is added to Children property of MyBase but there is no event like "ItemAdded". Since I want to animate the children of…

Pooya
- 21
- 1
2
votes
1 answer
How to add an image of a Silverlight UiElement to Word Document
I want to add an image of a certain DataGrid in silverlight to a word Document.
I've created a WriteableBitmap of the DataGrid but I can't find how to copy this image to the word document.
It doesn't have to be a WriteableImage. Any solution that…

yulia
- 21
- 1
2
votes
1 answer
Is there any way to add ui-element, ElMessageBox confirm button click event?
When I delete a data from the table, I want it to pop up a warning in the middle of the screen first.Delete function is ready,i just want to add confirm button click event(delete function) when i pop up ElMessageBox.When I press yes, the deletion…

Sponge Coder
- 71
- 2
- 10
2
votes
1 answer
Dynamically assign events to a new UIElement to handle drag and drop
My problem is that I'm trying to do a toolbox for the user so he can create radio buttons, combo box, etc and then those created elements be able to drag and drop inside a canvas or whatever.
Actually I can manage drag and drop from a element…

Luis
- 21
- 2
2
votes
2 answers
How can I set "isfocusable" property to false for UIElements ( buttons) in WPF?
I'm trying to set the property of UIElement to not focusable, but there does not seem to be a isfocusable property for buttons. Does anyone have any suggestions? Thanks :)

RKM
- 3,151
- 9
- 37
- 50
2
votes
4 answers
Accessing UIElement after XAML Load in WPF
I have a Canvas being populated from a XAML load from a file using:
SBWindowContainerCanvas.Children.Clear();
StreamReader stringreader = new StreamReader("C:\\xaml\\xmltest.xaml");
XmlReader xmlreader =…

sunriser
- 95
- 1
- 6