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

Printing multiple UIElements in Silverlight 4

I have a page that has two UIElements that need to be printed, one is a StackPanel and the other is a custom graph control for displaying test scores. The graph control could be any length based on the number of tests to display, so sometimes I will…
Josh
  • 1,648
  • 8
  • 27
  • 58
0
votes
0 answers

Converting string to UIElement

Is there a way to convert string to UIElement? I'm trying to add text to my graph's legend using an Interactive data display. The legend needs to not correlate with a plotted graph so I'm making my own like so: LegendItemsPanel legendItemsPanel =…
0
votes
1 answer

Set events for new UIelements on runtime

I'm kinda confused with some problem, I'm doing a project where the user should be able to design questions with radio buttons, combo box, etc (kinda like toolbox from VS10 to design your XAML). So far I can drag and drop an UIElement that I…
Luis
  • 21
  • 2
0
votes
1 answer

How to make Background Color fixed for dark mode and light mode of the device

Hello i want to know that how can i set a fixed color to ui elements wheather the android device is in light mode or in dark mode Here in my case there are some issues where the View in light mode of the device is set to my given color backgroud in…
Vasant Raval
  • 257
  • 1
  • 12
  • 31
0
votes
1 answer

WPF - Adding ScatterViewItem.Content to a StackPanel as UIElement

I'm attempting to make a application where you can drag ScatterViewItems next to each other, and the items will dock together, so that you can move them around as a single item. Right now I'm trying to create a StackPanel and add the content of the…
George
  • 1
0
votes
0 answers

How to acces a window from the main project in a library project?

I am working on a c# WPF solution with a main project and 3 library projects. In the main project there is a window with this refresh methode to update changes I make to content. public static class ExtensionMethods { private static…
RonnyMees
  • 1
  • 1
0
votes
0 answers

Add UIElement to the MainWindow with ICommand C#

I would like to add dinamically UIElement through ICommand. It is working fine with EventHandler but when I try to do the same using ICommand the UIElement is invisible however it seams the stackpanel contains it because the 'Capacity' and 'Count'…
Milán
  • 1
  • 1
0
votes
1 answer

How to automatically put in the tag the name of the UIElement

I know that this might seems very strange but I have the need to automatically put in the tag the name of a graphic Element e.g. var tbkMain = new TextBlock(){Foreground = ...,..., Tag = ??? } <----here I wish automatically Tag= "TbkMain" var…
Luca
  • 918
  • 2
  • 13
  • 30
0
votes
1 answer

Overlay/Mask UIElement

I have a ContentControl, which I use the Content Property to place some geometry inside (path, ellipses etc). I need to make a "copy" of the content in a different color... for example, if i have a red ellipse inside the control, i would like to…
user656970
0
votes
3 answers

Triggering an action of a UIElement from a ViewModel

I've implemented Wiesław Šoltés' awesome ZoomBorder, but I'm struggling a bit with WPF and MVVM. For the questions' completeness sake, ZoomBorder is a UIElement that inherits from Border and gives the user the possibility of zooming and panning the…
Pona
  • 167
  • 1
  • 17
0
votes
0 answers

Best way to spawn 100s of UI gameobjects

As the title states, i'm looking for a good method that isn't to performance heavy to spawn UI gameobjects (from a prefab) into a scroll rect. I've done Instantiate with IEnumerator and it works, it just takes forever with 600 UI elements. I know…
JareBear
  • 467
  • 9
  • 27
0
votes
1 answer

Can I change value of attribute in UiPath.Core.UiElement

I have a checkbox that I can't click on, but at the same time, I can get its UiElement. When the checkbox is clicked, the tag 'text=checked' in another case 'text-unchecked'. Can I set the value of an attribute without click of the checkbox?
0
votes
2 answers

How can I access programmatically created UI Elements in Xamarin.Forms : timepicker

I got a method which is creating UI Element programmatically. Example: Label label1 = new Label(); label1.Text = "Testlabel"; TimePicker timepicker1 = new TimePicker(); timepicker1.Time = new TimeSpan(07, 00, 00); After that I add both of them in…
0
votes
1 answer

Custom button not rendering correctly

I've got a custom class for a button with a circular image as I'll be using it multiple times through my program. I thought it'd be pretty simple of creating class, inheriting from Button and slapping my setup into a constructor, but when I'm…
vK31RON
  • 11
  • 3
0
votes
2 answers

Creating a wpf UIElement from a sample

I'm looking to create a bunch of rectanges that are going to share some properties and some other properties will be different. This is all done in codebehind, and clearly it is very possible to do this without breaking a sweat by copy and paste…
Sevki
  • 3,592
  • 4
  • 30
  • 53