Questions tagged [uielement]

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.

404 questions
0
votes
1 answer

Connect two UIElement with Arc

I have two UIElements(i.e. rectangles) in Canvas and their coordinates. How can I connect them with arc in code behind?
Bip
  • 893
  • 5
  • 14
  • 29
0
votes
3 answers

How can I find UIElements in a rectangle in WPF?

I need to find UIElements in (rectangle/area/bounds). MainWindow I'm doing the following: I register the mouse down as the start position. I regsiter the mouse up position. Now I need to find ll (buttons, textboxes, etc) in the rectangle between…
Bassam Alugili
  • 16,345
  • 7
  • 52
  • 70
0
votes
1 answer

UIElementCollection cannot be null. Object derived from UIElement expected?

Im trying to create a button from code behind that has the same attributes as this:
Kirsty White
  • 1,210
  • 3
  • 26
  • 54
-1
votes
1 answer

Is there any alternative to UIElementCollection.Move(oldIndex, newIndex) in WPF

I need to re order the children of the panel, I could find Move(oldindex, newindex) in UWP, but not in WPF. Is there any other alternative way to achieve this? I know it can be done by removing and inserting. But in my case, I have the possibility…
-1
votes
4 answers

Align buttons to the bottom of the layout

i want to align two buttons to the bottom of the screen as follows. i tried the xml given in this similar question but no luck.how to do it ? like this - this should be without the spacing in the bottom
-1
votes
1 answer

How to find clicked UIElement child

I would like to get the clicked UIElement's child element that is button. Maybe there is simple and short solution for this? I have searched for this answer awhile, but could't find solution that would be easy to understand and use. I will…
Mr. Blond
  • 1,113
  • 2
  • 18
  • 41
-1
votes
2 answers

iOS Development UI standards

I have read the following iOS standards like navigation bar is 44ppt in height and tab bar is 49ppt in height. In my app the top navigation bar is 53ppt and the bottom tab bar is also 53 ppt, is it ok or do i need to set the heights as in…
BalaChandra
  • 632
  • 9
  • 33
-1
votes
1 answer

iOS- How to add objects in a popoverController in iPhone?

In my app, I have a button, when it is clicked a popoverView will be displayed. I used the following code First, I added UIPopover+Iphone.h and UIPopover+Iphone.m files from the link Popover view for iPhone using XCode…
chandru
  • 407
  • 1
  • 5
  • 26
-1
votes
1 answer

How do I get the UIElement when Collection changes?

I have a wpf Treeview which has a dynamic itemssource. The User can add and remove items at runtime. I'm missing an event which gives me the currently added UIElement that was added to the treeviews itemsSource. So I guess I need to switch to…
deafjeff
  • 754
  • 7
  • 25
-1
votes
1 answer

UIElement clonning

I'm trying to clone UIElement. Everything seems to be ok, but my DependencyProperties also copy to a new element as in: var newEl = new MyElement(); And because one of my DependencyProperties is also a UIElement and it's already bound onto window…
Artem Makarov
  • 874
  • 3
  • 14
  • 25
-1
votes
1 answer

Obtain a size of UIElement after the initialisation

I am trying to develop a program that has the possibility to adapt at the screen resolution of the user. I am using mvvm with the pushbinding of Meleak to obtain the actual size of my MainWindow: Getting Window Properties in ViewModel For…
Gat
  • 115
  • 3
  • 11
-2
votes
2 answers

Adding an UIElement to a Canvas (which is located in a UserControl) from another UserControl in wpf

I have some UserControls in my project like pnlCanvas and pnlTools. There are several buttons in pnlTools like "Add Circle", "Add Rectangle", "Add Text", ... When the user clicks on one of the buttons, an element sould be added to the childrens of…
M Ahmadzadeh
  • 121
  • 7
-2
votes
1 answer

UIElement's Visibility control from different UIElement

I have two UIElements X (X.xaml, Name="_X") and Y (Y.xaml, Name="_Y"). How can I control Visibility of Y.xaml from X.xaml.cs? It's easy to control Visibility of Y.xaml from Y.xaml.cs, as I can use _Y.Visibility = SOMETHING, but I don't know how to…
prosseek
  • 182,215
  • 215
  • 566
  • 871
-3
votes
2 answers

WPF - How to move a UIElement dynamically

I have an ellipse inside a grid and I want to move the ellipse. I have tried to use RenderTransform.Transform() and TranslatePoint() but nothing happened, on the latter I tried to set the parameter relativeTo to the ellipse and to grid but I get no…
Barreto
  • 374
  • 2
  • 14
1 2 3
26
27