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
0 answers

WPF check if UIElement takes text input

Is there a way to check if a given UIElement takes text input? I see there's a UIElement.TextInput event handler so I could add/remove handlers, but of course I can't check if it is null (if at least one handler has been added to it). I'm guessing…
daniloquio
  • 3,822
  • 2
  • 36
  • 56
0
votes
2 answers

Silvelright -set tabindex of UIElements in MVVM

I am trying to set the tab index of two UIElements within a user control. The user control contains a text box and button. I have focus currently being applied to the textbox via an attached property however I would like to have the ability to press…
rlcrews
  • 3,482
  • 19
  • 66
  • 116
0
votes
1 answer

Silverlight: setting data context for a grid or UIElement not working

I am missing something on what should be a straight forward binding and I'm hoping someone can point me in the right direction. I have a SL app which has a view model named PeopleView Model which contains a number or properties for a person ( name…
rlcrews
  • 3,482
  • 19
  • 66
  • 116
0
votes
1 answer

Name of iOS ui element

How does this half screen scrollable pop up elememt is called in iOS? Have seen it in many apps so I guess it should be native one.
Daniel
  • 993
  • 2
  • 10
  • 23
0
votes
0 answers

Creating custom icon which listens to changes in API and changes it's color according to it on Android

I am trying to implement a custom icon which changes its color based on API response (Green stands for idle and red one stands for busy). What I have done so far I got a response from API about printer-state if it is idle or not and created a new…
Grace
  • 11
  • 4
0
votes
2 answers

UIElement can't be changed inside different name space

EDIT: For new programmers to OOP just calling the class isn't enough if the syntax is looking for a specific variable type it will throw an error. This was the problem as pointed at the answers bellow, this line of…
Andrew Foot
  • 119
  • 10
0
votes
1 answer

WPF - cannot parse TextBlock element from string

I'm new in WPF I need to get string param, create an UIElement and attach it to the view. Parsing the element from the string is failed, I don't know why. Here is the code: public void addElementToView(string str) { object obj =…
user5260143
  • 1,048
  • 2
  • 12
  • 36
0
votes
1 answer

Access to UIElement.Properties in a List

I'm creating multiple Canvas in run time, and each Canvas has a TextBox as Children. These Canvas are Children of a WrapPanel. My code is as follow: List cvList = new List(); WrapPanel wp = new WrapPanel(); // function (e.g. a Click…
KMC
  • 19,548
  • 58
  • 164
  • 253
0
votes
2 answers

How to add UIElement to List?

I try to add two Canvas to a List, but I receive exception from the following code: List cvList = new List(); Canvas cv = new Canvas(); cv.Width = 100; cv.Height = 100; cvList.Add(cv); // adding first Canvas to…
KMC
  • 19,548
  • 58
  • 164
  • 253
0
votes
1 answer

Calculation of childelement center via UIElement.TranslatePoint deviates from correct value

I have a rectangle with some elements around it that the user may rotate by mouse. The rotation as such works with RotateTransform, but there is always a slight offset in the rotation center. I calculate the center like this: this.rotationCenter =…
Myrkjartan
  • 166
  • 3
  • 16
0
votes
1 answer

Remove parent of an UIElement in Silverlight

I have an object of an UIElement, how can I remove the parent of it? I saw that there is not setter for parent property of an UIElement. Any suggestions will be helpful. EDIT : protected FrameworkElement Content { get { return…
Malcolm
  • 1,801
  • 3
  • 21
  • 48
0
votes
1 answer

I am getting/checking type of UIElement through non owning UI thread is it safe?

I have a custom UI Element. I am accessing it through a thread other than the owning thread. I am able to get/check its type (custom type) and got correct result. Is it safe to depend upon this result? (I know in order to access/update its value we…
Maari
  • 25
  • 5
0
votes
1 answer

Segueing to a single view controller that will display some number of UITextFields depending on index selected in table view controller

In my current application, I have a UITableViewController that allows me to segue to three different indices depending on the row selected. If I select row one, I segue to a view controller with three UITextFields. If I select row two, I segue to a…
Tony Pendleton
  • 358
  • 1
  • 11
0
votes
0 answers

ui-element-id in angular apps css styling

I have a question about ui-element-id's styling. What is the difference between normal html/css id/#, and how you can style ui-element-id's with css (if it's possible)? My example: HTML/ This Alert is dangerous CSS(Sass)/ /deep/ #dangerAlert …
0
votes
1 answer

To align the Datepicker button and calender of Datepicker dynamically through code behind

My requirement is to align the DatePicker button and calender to the extreme right in the DatePicker control (only through code behind). I am creating a DatePicker control which is dynamically generated if the data type is date. Here's the present…
DotNetSpartan
  • 931
  • 4
  • 20
  • 41