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
1
vote
1 answer
UI elements not displaying in view controllers that are apart of custom tab bar controller
I am working on an iOS application that has 4 more tabs that the user needs to be able to access. I decided to create my own custom tab bar controller so I would have more options when it comes to customization. I have implemented the custom tab bar…

user2569905
- 83
- 1
- 7
1
vote
0 answers
How can I get the control type (UIElement) from FrameworkElementFactory in WPF?
I'm working on a large plugin component to a quite larger application. 90% of this particular View component is extremely dynamic (database driven) and done programmatically. There is a particular reason for that (minimal XAML), so think outside the…

Crazy Tasty
- 11
- 2
1
vote
1 answer
How can we make an class that contains multiple uielements and acts as a uielement
We would like to make a little drawing application and i don't know how to make a class derived from shape or uielement or something else that contains multiple objects like a line and text or multiple lines that are not connected.
How would i do…

Gho W
- 51
- 1
- 7
1
vote
2 answers
Sending UIElements via DependencyProperty in wpf
I have a user control with a DependencyProperty that takes a UIElement. So far, so good, the problem is I cannot find the element's children.
I think the problem is my lack of knowledge, could anyone tell me what the problem is and a possible…

Cinaird
- 785
- 4
- 13
- 33
1
vote
2 answers
Finding the Bound property, from a UIElement, after it has been bound
Case:
public class customer
{
public string Adress { get; set; }
}
Xaml:
.cs
public MainPage()
{
…

ReLoad
- 70
- 5
1
vote
1 answer
UIElement in layered fashion
Technology : Silverlight
Platform : Windows Phone 7
foreach(Rectangle rec in listrect)
{
Layoutroot.Children.Add(rec);
}
Done some mouse move capture events and made these rectangles draggable.
Each child element is added to the layout in some…

Tintu Mon
- 81
- 1
- 5
1
vote
2 answers
Adding System.Windows.Forms.WebBrowser to System.Windows.Controls.StackPanel cannot convert to System.Windows.UIElement
I need to add WebBrowser control to dynamically generated Window in WPF application.
Basically when agent clicks on the link I need to open the webbrowser window that has close (X) button disabled (or hidden) on some pages and not on others. Reason…

Matas Vaitkevicius
- 58,075
- 31
- 238
- 265
1
vote
2 answers
Swift - Set a UI element from outside
I have this UIViewController
import UIKit
class UIViewController1: UIViewController {
@IBOutlet weak var someTitle: UILabel!
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the…

quanguyen
- 1,443
- 3
- 17
- 29
1
vote
0 answers
Creating custom UIElement classes c#
I'm trying to create custom classes of object which can be drawn on Canvas.
For example:
I wish to create a class called CustomRectangle which will allow me to create a simple rectangle from given X and Y location values, along with Width and Height…

Idanis
- 1,918
- 6
- 38
- 69
1
vote
1 answer
Check which UIElement the mouse is entering in a MouseLeave event in Silverlight?
I have two UIElements next to each other that I want to behave as if they are one MouseLeave area.
How can I check if the mouse is over a UIElement being entered during a MouseLeave event?
Currently, checking the mouse position using the following…

Brandon
- 6,832
- 11
- 38
- 50
1
vote
0 answers
Exception - Layout measurement override of element 'System.Windows.Controls.Grid' should not return NaN values as its DesiredSize
I am getting an exception,
Layout measurement override of element 'System.Windows.Controls.Grid'
should not return NaN values as its DesiredSize.
StackTrace :
at System.Windows.UIElement.Measure(Size availableSize) at
…

itzmebibin
- 9,199
- 8
- 48
- 62
1
vote
1 answer
Unable to convert 'MS.Internal.Controls.AddInHost' back to type 'System.Windows.Controls.UserControl' or cast it to my custom interface
I have created usercontrol instance into separate appdomain and convert it to INativeHandleContract as per addin framework guideline, and I am able to pass reference of framework instance into host application domain. When I convert…

Tihomir Blagoev
- 83
- 1
- 1
- 10
1
vote
1 answer
Silverlight: TargetInvocationException Occurred by Bind UIElement To ListBoxItems
I create a ListBox and bind ItemsSource to list of object:
MainPage.xaml:

Gerald C. Blanco
- 45
- 5
1
vote
1 answer
Convert Devexpress control to UIElement
I have a program who on drag and drop generate XAML code and I use this to create new form from this template.
It work if i use standard WPF control, but if I use devexpress wpf control get a error convert to UIElement
error:
No matching constructor…

Goce
- 23
- 4
1
vote
1 answer
Why is this XAML failing with "The property "Content" can only be set once."?
I've got this XAML:

B. Clay Shannon-B. Crow Raven
- 8,547
- 144
- 472
- 862