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
Handling MouseLeftButtonUp over different UIElements in Win Phone 8
I am having an issue with MouseLeftButtonUp not firing when I press my left mouse button down on one UIElement (i.e. a Rectangle) then move my mouse to another Rectangle and release the left mouse button.
According to this page…

ferr
- 1,137
- 3
- 12
- 28
1
vote
0 answers
Retain focus in a UiElement(TextBox) on its Lost focus
Set focus of an element from its lost focus
With the continuation of above query, still its not able to retain the focus.
Is any other way to achieve this?
void OnPreviewLostKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e)
{
if…

Sankarann
- 2,625
- 4
- 22
- 59
1
vote
2 answers
Using standard Visual Studio windows programmatically
I'm trying to programmatically call standart "Create Work Item" window in Visual Studio 2012. I was trying to make it by using GUID of command, but it doesn't work.
DTE dte = Package.GetGlobalService(typeof(DTE)) as DTE;
…

Shinigami302
- 103
- 7
1
vote
2 answers
Is it appropriate to cast ContentPresenter.Content to UIElement?
Are there any situations where the content of a ContentPresenter will be some object other than a UIElement? Given that the field is declared as object rather than a UIElement, it seems possible that there would be. However, I cannot think of any…

jeffora
- 4,009
- 2
- 25
- 38
1
vote
1 answer
How to dump all (X, Y) positions of UIElements in a WPF Grid
I would like to know how to iterate through all the elements in a WPF Grid, and then access the absolute positioning values (X, Y) for all of these UIElements.

geejay
- 5,440
- 8
- 50
- 60
1
vote
3 answers
What are the core properties of a UIElement in WPF?
According to MSDN:
A child UIElement begins the layout process by first having its core properties measured.
Sizing properties defined on FrameworkElement are evaluated, such as Width, Height, and Margin.
Panel -specific logic is applied, such as…

James Joshua Street
- 3,259
- 10
- 42
- 80
1
vote
1 answer
Change the Visibility and then change the Opacity of a Silverlight/WPF UIElement
I'm making a Windows Phone 8 app and would like to first fade out and then -- and only then -- actually turn a UIElement's Visibility to "Collapsed". However, I can't figure out how to make them happen asynchronously.
I'm using Storyboards and…

Eric Dand
- 1,106
- 13
- 37
1
vote
1 answer
How can I scale a UIElement in C#?
I have defined a canvas in XAML that I add a lot of figures to in C#. I've got some pinch going on but need some help applying the scale to the UIElement.
I've created my ScaleTransform like this:
ScaleTransform scaleTrans = new…

Jason94
- 13,320
- 37
- 106
- 184
1
vote
1 answer
Place UIElement and Text in same line in RichTextbox
How to place text and Button in a same line in WPF Richtextbox?
In the image below some texts and a button control are placed in a richtextbox.
I want some texts to be placed before and after the button in the same line.
Is it possible to define…

Chandan Kumar Rath
- 147
- 1
- 14
1
vote
0 answers
UIElements in subclass with uiscrollview are non responsive
I have a class that provides a custom menu for all its subclasses, but since i started using the text field have run to the keyboard problem so i use the normal method and embed the subclass in a resizing uiscrollview. the problem is that the…

Jake Ortiz
- 503
- 9
- 20
1
vote
3 answers
Wait until UIElement is drawn (without updatelayout)
I have a function that takes around 5 seconds to complete if a button is clicked. If the button is clicked, I want to display some kind of notification to indicate that the buttonclick is being processed, something like
1
vote
2 answers
How can I bind to a parent UIElement within an ItemTemplate?
I'm trying to bind to a property of MainWindow, but from a ContextMenu within a DataTemplate. How can I achieve this?
I can't use ElementName, as the contextMenu isn't part of the visual tree
I can't use PlacementTarget, as this will give the…

wforl
- 843
- 10
- 22
1
vote
2 answers
Get UIElement children from multiple parent
I have a StackPanel with some WrapPanel . inside each WrapPanel located two element:

KF2
- 9,887
- 8
- 44
- 77
1
vote
1 answer
What System.Windows UIElement does skype use for its 'Contact List'?
Hey so I was wondering what UIElement does skype use for its Contact List in order to display additional details within each ListItem (such as Status Updates, Avatars, Online Status and so forth)?
(source: iforce.co.nz)
As far as I know the…

classicjonesynz
- 4,012
- 5
- 38
- 78
1
vote
1 answer
Silverlight: convert UIElement to SVG
I am looking for the best way of converting a UIElement(FrameworkElement) to vector format (vector analog for WritableBitmap).
The easiest way that comes to mind is manually create special SVG converter for some of UIElement implementations and try…

Eugene Hoza
- 621
- 1
- 6
- 19