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
2
votes
2 answers
Is It Possible To Draw a UI Element On Top of the Adorner Layer?
For my WPF TreeView user control, I would like to display a progress ring around a ToggleButton to indicate that the node's children are populating, like so:
(Full disclosure, I saw this type of behavior in some open source software, I just can't…

miesch1
- 165
- 2
- 8
2
votes
1 answer
RenderTranform not render transforming
So I have a canvas and a Ellipse on it . And call a method to mote the Ellipse around like so
public void moveElipse1ToCoordinate(Point point)
{
Action action = () =>
{
TranslateTransform moveTo = new…

Iustinian Olaru
- 1,231
- 1
- 13
- 33
2
votes
1 answer
WPF gets "old" value when data in ListView change
I have the TreeView with objects. When I select item of these tree, than other control - ListView displays as its items properties of selected object. I want to save values of properties when in TreeView selection is change to other object.
So, is…

Dawid Jablonski
- 523
- 4
- 15
2
votes
2 answers
How does one enhance Silverlight WritableBitmap quality when replacing UIElements for animations
I'm doing an animation where I temporarily drop down the visibility of UIElements and overlay WritableBitmap versions of the original Image.
The problem I have is that when I do this on element with text, it results in a noticeably blurry and…

Stephen Ellis
- 2,561
- 2
- 24
- 47
2
votes
1 answer
Delay in drag/drop of UIElement in Windows Phone 8.1
I'm using the ManipulationDelta event handler to drag and drop a simple ellipse in a canvas across the screen. I'm using the standard approach posted online in several places. Following is the code in my event handler:
Ellipse dragableItem = sender…

Ali250
- 652
- 1
- 5
- 19
2
votes
1 answer
Can't create flyout in Windows Phone 8.1 Silverlight app
Adding a flyout seemed like a pretty straightforward task, but I can't seem to even initialize one on my app (which is based on a PivotControl app template for Windows Phone 8.1 Silverlight). When I attempt to do this:
…

Ali250
- 652
- 1
- 5
- 19
2
votes
2 answers
Why do my Silverlight UIElements NOT have OnPreview events?
I'm building a custom Silverlight UserControl which needs to listen to events using Preview/Tunneling, but for some reason the compiler is telling me they are not recognized or accessible.
For example, I can add an event handler to…

Matt.M
- 1,039
- 3
- 14
- 21
2
votes
1 answer
Displaying Both VisualCollection and UIElements
I'm using a VisualCollection to display custom DrawingVisuals on a Canvas in WPF, and I also need the canvas to display a couple of UIElements. The problem is that the canvas seems to ignore its regular children when using a VisualCollection. The…

Simon
- 191
- 2
- 8
2
votes
1 answer
How to layout the UIlabel object according to design spec in iOS
I have some difficult time in creating iOS screen to match with visual design provided by design team.
The design team has provided the spacing info for each screen which shows how much space each text needs to be apart from other UI element on the…

Naveen
- 636
- 8
- 28
2
votes
2 answers
Any way to save an UIElement created programmatically in an image file?
I'm trying to save an UIElement created programmatically in a JPG/PNG/BMP image in a Windows Phone 8.1 (C#) application.
I'm using the class RenderTargetBitmap using the method RenderAsync() but it only works with UI elements created in the XAML…

DarioDP
- 627
- 2
- 9
- 24
2
votes
1 answer
Will doing several property changes in succession that each affects the appearance of a UIElement result in one redraw or several?
Say I have a Canvas containing a child Rectangle. The user then resizes the Rectangle by pulling the top left corner upwards and to the left (leaving the bottom right corner anchored).
The new position and size of the Rectangle is set like so (quasi…

d7samurai
- 3,086
- 2
- 30
- 43
2
votes
5 answers
How to set DesiredSize.Width of a UIElement?
I need to calculate the Width of each UIElement in a custom panel. If looping over Children:
foreach (UIElement child in Children) { ... }
I can't do child.DesiredSize.Width = myCalculatedWidth; since DesiredSize and DesiredSize.Width are read…

Nicros
- 5,031
- 12
- 57
- 101
2
votes
1 answer
Cast(Of ?) from UIElement
In silverlight my custom controls are in theUIElementCollection of my StackPanel. I want to get a list of them by a specific value. There only DivElements in the container. It returns Nothing when I know I have one or more. I know I can make a…

OneFineDay
- 9,004
- 3
- 26
- 37
2
votes
1 answer
Access human readable UIElement label from IOS app
I've got a handful of UIViews subclasses as a part of my interface and I'm looking for an easy human readable way to differentiate them in the code -- like the label you set in the "Document" section of the UI editor.
I believe the "Accessibility…

John Westlund
- 336
- 1
- 10
2
votes
1 answer
ScrollViewer doesn't work when uielements have margin
My problem is that the ScrollViewer only scrolls when the mouse cursor is hovering one of the textblocks or any other UIElement. When the cursor is over the margin space (colored in red in image) scrolling is ignored.
Here you can see a example…

Mibfi
- 83
- 8