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

Windows Store app: UIElement not rendered completly when using RenderTransform

I would like to place a UIElement within another where the inner Element uses a RenderTransform to adjust its size. The problem is, that the inner element is not rendered completely. Only the part that original fit into the outer element is…
Andrei Herford
  • 17,570
  • 19
  • 91
  • 225
0
votes
1 answer

Convert string to a UI element name - Win 8

The heading may not clearly explain what I'm trying to achieve. This is what I need. I have an array of strings. There is a UI element with that name. Eg arr[0] has Ach. There is a checkbox with name Ach. How do I use the string Ach and refer it to…
alfah
  • 2,077
  • 1
  • 31
  • 55
0
votes
0 answers

Force ItemsControl to treat UiElements as data

How can I use on ItemTemplate on an ItemsControl whose Items is a list of UiElements? Note : I know this is not the intended use, but it would be useful for debugging purposes
pastillman
  • 1,104
  • 2
  • 16
  • 27
0
votes
1 answer

How to outline a UIElement in Partial-Trust?

I asked a similar question about this previously, but I did not specify that this needs to work in Partial-Trust mode. Unfortunately both correct answers (using UIElement.BitmapEffect or UIElement.Effect) are not allowed in Partial-Trust, because…
Dylan
  • 2,392
  • 6
  • 26
  • 34
0
votes
0 answers

Track visual changes of UIElement

I have an adorner over UIElement (any UIElement) where I draw something based on visual content of UIElement (I use VisualTreeHelper.GetDrawing). It works perfect except UIElement is changing its visual representation (re-render itself). I…
daVinci
  • 315
  • 2
  • 15
0
votes
2 answers

how to bind dictionary or array to UIelement / Image control

i have random 2 to 6 image controls dynamically added, and for each i have dictionary/array containing data for that control, i.e x1, x2, y1, y1, ans. How can i assign or bind the array to each image control? basically i am making a drag and drop…
ADi
  • 219
  • 1
  • 5
  • 17
0
votes
1 answer

Silverlight4 deep copy visual element

I have a custom visual element and i want to make a deep copy in my silverlight application. I've tried many things but i didn't find any solution... Here the best solution that i found but the original DeviceControl and the copy are linked. If i…
0
votes
1 answer

UI Element is not updating

If you can picture this as a loading bar: for (int i = 0; i < r.Width / 2; i++) //Fills half the loading bar. { Rectangle rect = can.Children[3] as Rectangle; //getting the 3rd element of my Canvas if (rect != null) { …
William
  • 1,837
  • 2
  • 22
  • 36
0
votes
1 answer

Storyboard ui elements don't appear in Xcode 5

I have transitioned my iPad application from iOS 6 to iOS 7 and I had to turn off auto layout or the whole application would crash when I selected to view the storyboard. Now that I can view it, all the uielements don't appear in the each…
Prientus
  • 733
  • 6
  • 15
0
votes
2 answers

How to change a value of UIElement

I have a WPF application and Canvas in there. In Canvas I have a Rectangle. How can I change his properties, like Height or Width while program is already processing? Something like: int index = 0; var childByIndex = canvas.Children[index];…
Corio
  • 395
  • 7
  • 20
0
votes
2 answers

ListBox of anonymous UIElements

I want to create a ListBox and fill it with anonymous UIElement. In other words, the DataTemplate of the ItemTemplate will contain only one element, and afterwords during the runtime, afterwards I will create in the code behind different UIElements…
Ayoub.A
  • 1,943
  • 3
  • 27
  • 34
0
votes
2 answers

How to save UIElements in a Database and restore them later?

Imagine that I created an app which lets you paint paths within a grid. So when every time you paint something, a new path element is added as children to my Grid UI Element. So this is my Grid before something has been painted:
Evils
  • 857
  • 3
  • 12
  • 31
0
votes
1 answer

WPF richTextBox cant identify as UIElement

I have the following code which attaches Adorners to UIElements which I have on a Canvas. private void slideCanvas_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e) { { selected = false; if…
kev3kev3
  • 395
  • 1
  • 6
  • 21
0
votes
0 answers

Is it possible to make a screenshots of a UIElement built in code-behind and not shown?

I would like to know if it is possible to "screenshot" an element without showing it on screen. For example, this StackPanel: private void Button_Click(object sender, RoutedEventArgs e) { StackPanel sp = new StackPanel(); sp.Children.Add(new…
Shimrod
  • 3,115
  • 2
  • 36
  • 56
0
votes
3 answers

How can I efficiently display lots of UIElements in a Panel?

This is the scenario: To display lots of UIElements in a Panel. Since the number of these controls might be large, I am worried about memory allocation and performance issues. Visualization is an option, But I hope to be able to do better, because…
Ramin
  • 2,133
  • 14
  • 22