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

I can't get ActualSize of an UIElement

I have an Image control, generated in runtime. It renders correct size when displaying. But I can't get size of that element. Width and Height is NaN. ActualWidth and ActualHeight is always 0.0 and control never fires SizeChanged event. I'm also…
Medeni Baykal
  • 4,223
  • 1
  • 28
  • 36
1
vote
0 answers

How to Inspect Style attributes (Font, Color codes, paddings, etc.) of a mobile app which built using Flutter?

In a flutter Mobile application, I need to check the style attributes of each screen. But, I'm unable to inspect it using the android studio layout inspector. It shows a blank screen when we inspect the app. (But it works well with other hybrid…
1
vote
2 answers

Apply static resource style to UIElement created in converter

I am binding the ItemsSource of an ItemsControl to a Textbox and then using a converter to create UIElement objects based on the Text property of the Textbox. I also have a static resource style that I want to apply to the elements I create. The…
N_A
  • 19,799
  • 4
  • 52
  • 98
1
vote
1 answer

Flip a UIElement but preserve text inside from flipping

I think the title is pretty straightforward. I'm using some custom controls. I want to flip the tab header of a custom tab control. I tried a layout transform (ScaleTransform X = -1) to flip horizontally the tab header. But obviously I want the text…
muku
  • 238
  • 1
  • 7
  • 20
1
vote
6 answers

control to interchange UIElements in WPF

What is the most minimal way to dynamically interchange UIElements at a certain "slot" on the UI? I have a number of UIElements and based on some external databinding (e.g. a combobox selection) I want one of them to be shown and the one that was…
bitbonk
  • 48,890
  • 37
  • 186
  • 278
1
vote
2 answers

Programmatically force validation on Silverlight 3 UIElement (Textbox)

Is there an easy to to programmatically force a uielement to validate in Silverlight 3? I have a textbox where i bind a Silverlight.Validators.RegexValidator to, unfortunately the validator checks against another uielements content (combobox).…
Jerrold
  • 1,534
  • 6
  • 25
  • 43
1
vote
1 answer

How can I programmatically add uielements to canvas in Silverlight 4?

How can I programmatically add UIElements to canvas in Silverlight 4? But nothing happens. When I check for the existence of the image it is there but nothing shows. wtf? Button btn = new Button(); btn.Content = "Button"; Canvas.SetLeft(btn,…
marko
  • 10,684
  • 17
  • 71
  • 92
1
vote
0 answers

Need to focus the grid which placed inside the Scroll Viewer on Mouse Click

I need to focus the Grid(UI Element) when it is placed inside the Scroll viewer. Code:
Magesh Maggi
  • 269
  • 2
  • 10
1
vote
2 answers

WPF - How to get my Panel to see if a DependencyProperty is set on my child when they are UIElements?

Basically, during my MeasureOverride I want to check to see if my child element has a certain property set on it regardless of what type of item it is. public override Size MeasureOverride(Size availableSize) { foreach (UIElement child in…
michael
  • 14,844
  • 28
  • 89
  • 177
1
vote
2 answers

vuejs2 el-table-column column prop with computed value

I'm new in vuejs. I don't see how to use a "computed" value in a table of the ui-element librairy. Here is how I tried ..