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
0
votes
3 answers
WPF : trigger mouseenter on a UIElement that is being overlapped by another UIElement
When I move a label over a Rectangle, I want the rectangle to trigger a mouseEnter event, it is not working because the Label overlaps the Rectangle. I tried with isHitTestVisible = false, but then I couldn't move the label. Is there a way to do…

Merve Sahin
- 1,008
- 2
- 14
- 26
0
votes
1 answer
Get Size of UIElement in WinRT
I have a canvas. When I click it, I get the coordinates of the mouse and up (adds a child) has custum control (a thumb with a simply circle) there.
On the screen, logically, the upper left corner is taken as reference when adding. I will wish to…

David
- 45
- 1
- 7
0
votes
1 answer
Exposing VisualOffsets property
I am making an application in C# WPF and need the location of an object that I added to a panel. While debugging I found the VisualOffset property of the object that gives me the relative position. I just can't get the value from the code.
What I…

Daltons
- 2,671
- 2
- 18
- 24
0
votes
1 answer
Preventing Keyboard Covering TextBox
I have a page that holds a small text box, an image, then a larger text box. When I load an image & type in the textbox, the keyboard covers the text box. Any ideas on what code fixes it & where to place the code to fix it? I tried to using…

Terry Bennett
- 125
- 1
- 11
0
votes
1 answer
How to detect MouseLeave on a UIElement that is a Drag source in Silverlight when Dragging?
I have a StackPanel with MouseLeave events. I have run into an issue where MouseLeave events are not occurring for this StackPanel when elements are being dragged from this stack panel to other outside elements.
How can I have the MouseLeave event…

Brandon
- 6,832
- 11
- 38
- 50
0
votes
0 answers
How to alter each slider section length?
A Slider is divided into number of sections depending on range of slider.
For example if range in slider is 1 so slider is by default divided into two sections, to set slider to '1', i have to move the slider past the mid point which is not good By…

rahul
- 366
- 1
- 5
- 21
0
votes
1 answer
Apple Script to access elements of the Context Menu for a file
I was able to get the context menu up with applescript
tell perform action "AXShowMenu"
tell application "System Events" to tell process "Finder" tell window {window name} tell splitter group 1 tell splitter group 1 UI elements tell scroll area 1…
0
votes
1 answer
An UI element is not showing on iPad air 2 after installing the .ipa file of project for testing but works on other iPads(iPad mini, iPad 2)
When I run and debug my app everything is working fine, but when I create an .ipa file using save for ad-hoc deployment option and install it using iTunes or for testing on iPad air 2, some of the UI elements are not shown on iPad Air 2.
However it…

Sushobhit
- 305
- 4
- 18
0
votes
1 answer
Obj-C constraints error only on iOS 7
I have a problem with constraints. First of all i want to highlight that this is working on my iPhone 5, but not on iPhone 4.
App crashes on start. This is an error:
Unable to simultaneously satisfy constraints.
Probably at least one of the…

Lau
- 1,804
- 1
- 23
- 49
0
votes
1 answer
How is the margin of a UIElement calculated
For the xml below
The margin is 1 1 1 1 but the image is at the centre of the screen (668 369 668 369). Why is this happening? Isn't the margin above invalid? Also, for the position of anything,…

Sweeper
- 213,210
- 22
- 193
- 313
0
votes
1 answer
How to Access UI Elements Of a Class inherited from UI View in viewController
i Create a Class A inherited from UIView Class where am creating Labels, TextFields etc programmatically and want to access them within another viewController B.
I use the Property but its not working is there any way to access them not using tags…

Nisar Ahmad
- 885
- 1
- 10
- 25
0
votes
2 answers
Is there any workaround to apply more then one Effect on one UIElement in WPF?
Is there any workaround to apply more then one Effect on one UIElement in WPF?
e.g.
Thanks in advance.

Saghar
- 693
- 2
- 12
- 24
0
votes
1 answer
Implement WPF TreeView of the same structure as another TreeView
I have a TreeView which data source is generated in runtime through code to which I don't have access. Its hierarchical data, nodes of tree with 2, 3 or 4 depth levels. I have to make the same structured tree with RadioButtons corresponding to every…

Dawid Jablonski
- 523
- 4
- 15
0
votes
2 answers
Custom UIElement does not update layout when an ObservableCollection changes through binding
Again a have a (probably) simple Problem.
I would like to create a custom UIElement (A Collection of Lines which stay orthogonal).
This UIElement is used as View in my MVVM application.
Here is my code:
class RaOrthogonalLine : Canvas,…

MisterPresident
- 563
- 7
- 20
0
votes
1 answer
Bind Window.Effect to ViewModel
I wonder how would it be possible to bind Window.Effect to ViewModel so that it could be the ViewModel controlling how the window looks like.
I'm aware that we can bind properties one-by-one such as following; however, this is not really binding…

Dr. Strangelove
- 2,725
- 3
- 34
- 61