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
Add Children to element of type Page created in code behind Windows Phone 8.1
I can create a new element of type Page in code behind, but I want to add children elements of type UIElement as I would to a Grid like: myGrid.Children.Add(myUIElement);
I don't have the Children property and setting the Content property does not…

Schrödinger's Box
- 3,218
- 1
- 30
- 51
1
vote
0 answers
How to get a WriteableBitmap image from an un-rendered control (UIElemet) in Silverlight?
I've been able to create a WriteableBitmap from controls that are rendered in my Silverlight application UI and export them to an XImage via SilverPDF and include them in a PDF document. This conversion and export process works fine.
Now, I'm…

lg1382
- 71
- 11
1
vote
1 answer
C#/WPF - RoutedEvent in WPF class that isn't a UIElement
I have a class that needs to notify that something significant has occurred. The class is in a WPF-project, even though this specific class, is lookless (and doesn't inherit from UIElement, neither directly or indirectly).
Normally, I just register…

Andreas
- 53
- 5
1
vote
1 answer
How do I keep the shape of an UIELement while doing a Drag and Drop in WPF
I have 2 StackPanels - one containing an Ellipse and the other one containing nothing.
I want to drag the Ellipse from one stack panel to the other. The actual drag & drop is already done and works fine, however I'd like to know how to keep that…

Kamikaze
- 93
- 1
- 5
1
vote
1 answer
WPF CLR Type to UIElement
I am trying to solve a complicated problem. I am building a dynamic interface and want to convert any existence of an ArrayList into a TreeView. I tried value converter but it did not work.
Here is my code:
if(current.Value is ArrayList)
{
…

azamsharp
- 19,710
- 36
- 144
- 222
1
vote
2 answers
Get parent class name from custom UI elements in iOS
I have some custom UIElements like UILabel , UITextFields etc in my iOS App . Now i want to get the original element name from which they are derived from on each touch event . How to get the parent class name from the custom UIElements ?

user3115014
- 667
- 1
- 8
- 23
1
vote
1 answer
How to create a fast and lightweight UIElement
I am creating a path of Markers to be displayed on a GMapControl in my C#/XAML (WPF) application. The control requires I create a UIElement to be overlaid on the map as a marker. I have created a very simple UserControl for this purpose, as…

agc93
- 663
- 1
- 7
- 19
1
vote
1 answer
Silverlight/C# Canvas, his UIElements and Width
i created a class "Component", which will be added to the children of my canvas. After the adding, i want to position these components using for example:
comp.setValue(Canvas.LeftProperty, 100d);
which works fine. After that the component will be…

Watte
- 58
- 5
1
vote
1 answer
UIElement to PNG - Text slightly blurred
I am using ImageTool's PNG encoder to create an image.
I have a Grid that contains multiple TextBlocks, each TextBlock contains dynamic text.
When I create a WriteableBitmap from the grid containing the TextBlocks, I then use ImageTool's encoder to…

Chris
- 2,148
- 8
- 31
- 52
1
vote
2 answers
Find the Label for a Targeted UIElement in WPF
I have the following XAML:
I have an extension method that accepts a UIElement parameter like so:
static public…

Lusid
- 4,518
- 1
- 24
- 24
1
vote
3 answers
Is there a way to set the Width and Height of a UIElement?
Is there a way to set the size of a UIElement (without casting to FrameworkElement), perhaps similar to how using RenderSize on a UIElement mirrors getting size information via ActualWidth & ActualHeight on a FrameworkElement)?
In effect, I guess…

d7samurai
- 3,086
- 2
- 30
- 43
1
vote
1 answer
Adding buttons to StackPanel, lag when navigating to page
If I'm adding buttons to a StackPanel, when exactly should I run the following code? As it stands just now it's in my OnNavigatedTo function. I'm having to declare that with the "async" property as I've got some code to fetch records from a SQLite…

user2950076
- 41
- 6
1
vote
1 answer
How to get the children of a UIElement
In C# PropertyInspectorView is of Type UIElement.
http://msdn.microsoft.com/en-us/library/system.activities.presentation.workflowdesigner.propertyinspectorview.aspx
I need to get the children of PropertyInspectorView. There is no inhernet method…

user1298925
- 2,304
- 7
- 29
- 43
1
vote
2 answers
Rendering a non UIElement via binding
If I have an object derived from System.Windows.DispatcherObject but defines a ControlTemplate.
public class A : System.Windows.DependencyObject
{
public ControlTemplate ControlTemplate {get; set;}
}
which is a member of
public class B
{
…

Klaus Nji
- 18,107
- 29
- 105
- 185
1
vote
2 answers
Breaking up an all C# WPF application into XAML for one of its UI controls and C#
This is a broad question, I am aware. However, I have been trying to make a modification in a C# source code to enable a ToolboxControl UI control's right hand border to respond to a mouse drag. In other words make the control size bigger by…

user1298925
- 2,304
- 7
- 29
- 43