uielement Questions

2

I want to set position attribute of an UIElement to an absolute value of X and Y. How can I do this operation? And why absolute positioning in UWP is so hard?
Stites asked 1/2, 2016 at 10:53

3

I have some xaml markup that looks essentially like this: <Canvas x:Name="A"> <Canvas x:Name="B"/> </Canvas> I want to determine if the mouse is over Canvas B. When I click w...
Valerlan asked 3/12, 2010 at 16:26

7

Solved

For logging user actions in my WPF forms, I added some global event handlers I want to log exactly which control fire the event, is there some unique identifier for a wpf UIElement like ClientId i...
Fatidic asked 3/4, 2012 at 15:8

1

We have a custom control called FixedToolBar defined in a class library which is referenced by a second assembly which uses it via XAML. However, VS2015 is showing the error: A value of type Fix...
Braise asked 14/9, 2015 at 16:28

1

I'm trying to load a Grid with UIElements and/or FrameworkElements that have Style and DataTriggers. The following is a simple native XAML which works as expected; toggling the check box through ...
Adrastus asked 21/7, 2019 at 1:18

2

Solved

Im trying to create a application that should only be visible in the status bar, and not have a window until you press the NSStatusItem menu options. So i have one that should open "about" [[NSApp...
Randi asked 26/3, 2011 at 8:21

3

Solved

I want to know how can I get IDs or names of UI elements used in a mobile application that are used in mobile automation testing like appium, monkey-talk, xamarian etc.
Gadson asked 31/10, 2016 at 12:4

4

Solved

I was thinking about my first contact with html language and I remembered when I was looking for that specific button with the dot. It gives you some choices and you can select only one of them. I ...
Stronski asked 11/1, 2015 at 2:18

3

Solved

I am working on taking screenshot of UI Element (WPF) in various size and i'm able to achieve this using "RenderTargetBitmap. But the UIElement which has an Adorner part is not coming while take co...
Com asked 31/7, 2013 at 11:53

1

Solved

I haven't found anything useful either on Google or Stack Overflow or simply no answers (or maybe I just don't know what to search for) -- the closest question I can get to is this one: The reason ...
Damning asked 2/6, 2017 at 19:40

2

Solved

I need to hide the dock icon of my javafx application. In a normal java application this can be achieved by the following property: System.setProperty("apple.awt.UIElement", "true"); However, thi...
Zeena asked 19/6, 2014 at 16:59

2

Solved

I created a ListBox that has a DataTemplate as Itemtemplate. However, is there an easy way to access the generated UIElement instead of the SelectedItem in codebehind? When I access SelectedItem, ...
Shaylyn asked 4/3, 2009 at 12:33

2

I have tried this approach first but getting error "Element is already the child of another element" var objClone = new MyImageControl(); objClone = this; ((Canvas)this.Parent).Children.Add(objClo...
Olympie asked 22/3, 2013 at 6:55

1

I need to add a UIElement to two different canvases, but one UIElement can only be a child of ONE canvas, so I have to create a ShallowCopy (DeepCopy not needed) of the UIElement. I want to use Me...
Thrall asked 23/11, 2012 at 1:10

2

How can I find the center of a UIElement in wpf?
Bohannon asked 9/10, 2009 at 5:12

5

Solved

I have two questions on markup below: <Popup> <Button x:Name="button"/> </Popup> Why does VisualTreeHelper.GetParent(button) return null? How can I get the parent Popup for U...
Attain asked 5/1, 2010 at 16:45

2

I am working on extending the Microsoft resize Adorner example and need to be able to reposition the element after say the bottom left drag handle has been dragged. So if I have a textbox of say 1...
Clow asked 20/12, 2010 at 18:41

1

Solved

Cannot find a way to locate absolute position of an UIElement in Metro style app. Anybody know the solution? (the context: I want a Popup to be shown next to the button called it)
Sop asked 28/8, 2012 at 14:32

1

I have a custom panel, which is used to draw selection effect; but sometimes it does't clear the previous rectangles, if the mouse is moved back and forth when the screen is big enough(across two m...
Ruling asked 18/4, 2012 at 9:4

1

I want to dynamically add UIElements to a dialog depending on the value of another uiElement..I believe what i need is defined here : http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.dialog.d...
Yand asked 18/8, 2011 at 3:13

1

I have a RichTextBox that has to contain some buttons which should be deleted properly (handled) when the user is editing content in it. I am able to check if I'm deleting (Backspace, Delete or Cut...
Epifocal asked 14/7, 2011 at 9:13

4

I have a UIElement that I want to capture a snapshot of when a user clicks a button. When a user clicks the button, I want to take the UIElement and load it's current state into an Image element. H...
Rist asked 6/5, 2010 at 20:35

2

I have a problem with creating a screenshot of a scatterview. My screenshot always contains a black frame. Here's my XAML-Code: <s:SurfaceWindow xmlns="http://schemas.microsoft.com/winfx/2006...
Gerik asked 1/2, 2012 at 10:46

1

Solved

I can't find a way to get the position in (x,y) co-ordinates of an on-screen control like a button relative to the grid that it is inside. Is there a way to do this that I am overlooking?
Ambidexterity asked 21/11, 2011 at 1:20

3

Solved

I have a chart that I'm displaying to the user and I want to be able to export the chart as an image to disk so they can use it outside of the application (for a presentation or something). I've m...
Scotland asked 27/9, 2011 at 1:4

© 2022 - 2025 — McMap. All rights reserved.