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
1
vote
1 answer

Is there a way to show a UIelement that was previously hidden in earlier lines of code after a button has been tapped on the same VC in Swift?

I have many UI elements on a VC including labels, textfields, and a button. In the viewDidLoad() function, most of the UI elements are initially hidden. I have successfully programmed the UIButton on the VC to change the label text and button title…
1
vote
1 answer

Event binding with Static Ancestors leads to every click event being triggered

I Created a small test application that should allow the user to create: create list elements remove list elements create lists remove lists I learned that dynamically added elements don't get an event bound to them (based on this: Event binding…
Dzyuv001
  • 318
  • 1
  • 6
  • 18
1
vote
1 answer

Creating UI elements in Xamarin.Forms

I am not in Xamarin.Forms. In windows desktop apps (win forms and wpf), you can create a user UI component and you can use it in any project. Is it possible to create that kind of small UI elments in Xamarin.Forms? I will have like a dll and will…
ertan2002
  • 1,458
  • 1
  • 32
  • 68
1
vote
1 answer

I can't have an UI element ahead a game object in Unity

My problem is that I don't know why I can't have one UI element in front of an object and the others UI elements behind it... I don't know how to correctly explain my problem so I will explain it using some screenshots: I would like to have the…
Jr Antonio
  • 193
  • 1
  • 4
  • 20
1
vote
1 answer

Hiding UI Element behind Other UI Elements

I'm having a problem with my UI Elements. I am spawning in enemies who have health bars which stay on top of them. The problem is, that if those health bars move through the position of other UI Elements i have (let's say the "Main Menu Button")…
Yiasmat
  • 179
  • 1
  • 2
  • 9
1
vote
1 answer

How to obtain UI object in Xcode

I want to populate a UITableView with a list of paired Bluetooth devices but I'm unsure how to obtain the view object so I can populate it. Under Android each UI element is assigned a resource ID which is used to get an instance of a particular UI…
glez
  • 1,170
  • 3
  • 16
  • 42
1
vote
2 answers

Referencing a UIElement in a ViewModel from XAML

I'm relatively new to using WPF and the MVVM architecture. I have a question about referencing UIelements from a XAML window's DataContext. I have menu items that are bound to Views DataContext using this syntax:
sbilstein
  • 307
  • 3
  • 14
1
vote
1 answer

WPF: ErrorMessage when trying to Bind a Line to two UIElements

Im trying to bind a Line to two ScatterViewItems: private void BindLineToScatterViewItems(Shape line, ScatterViewItem origin, ScatterViewItem destination) { // Bind line.(X1,Y1) to origin.ActualCenter …
anon
1
vote
1 answer

Interpret Enter as Tab with selection

I use this code on Enter keypress to move focus to next like the Tab does in a datagrid. uiElement.MoveFocus(new TraversalRequest(FocusNavigationDirection.Next)); At the end of any row while hitting enter moves the focus to the next line but the…
G.Anıl Yalçın
  • 188
  • 1
  • 14
1
vote
1 answer

Adding UIEliments at runtime, without overlapping

I am adding an unknown amount of images to a canvas at runtime via code behind but I suspect they are laying on top of each other so only 1 image is visible. I am converting multiple page PDF's into jpg images with ghostscript and wish to add them…
RedChair
  • 43
  • 7
1
vote
1 answer

How to get current position of UIElement within its parent?

Lets say I have this XAML code:
Rasto
  • 17,204
  • 47
  • 154
  • 245
1
vote
2 answers

Create label associated with buttons on clicks programmatically

Suppose I have a textfield and button. There is an IBaction associate with the button and the textfield. When the button is clicked, it will create a label with the text typed in the text field. And at the same time create buttons next to the label…
tak
  • 69
  • 1
  • 9
1
vote
1 answer

WPF: DataBinding a PointCollection for a custom UIElement

I'm trying to make a WPF UIElement that does some special rendering. The problem is that I can't get databinding to work for a PointCollection. Inside OnRender() of the GraphElement, the Points property is null, which doesn't make any sense to…
Adam Tegen
  • 25,378
  • 33
  • 125
  • 153
1
vote
1 answer

How to clip Image (UI-element) to sample geometry?

I want clip Image to ellipse, for example. UI-element have Clip, but Clip in the Windows Runtime API must be a RectangleGeometry. I can achieve the same result using an Ellipse and ImageBrush element as Fill brush: How to clip image to ellipse in…
1
vote
2 answers

Programmatically Focus on a ScrollBar

In the code shown, Why doesn't the focus shift to the ScrollBar element? Why does UIElement.Focus (TheScrollBar.Focus) return False? XAML:
We B Martians
  • 367
  • 2
  • 12