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
2
votes
1 answer

How to Z-Index(Z-Sorting) windows 8 UIElements in 3D Perspective?

In general you can apply 3-D effects(x,y,z,rotationX,rotationY,rotationZ...) to any UIElement using the so called "Perspective Transforms":
isa
  • 1,055
  • 16
  • 26
2
votes
1 answer

Dynamically generate xaml string from a UIElement object

I have a Windows.UI.Xaml.Shape.Path object.How can l generate the xaml string corresponding to that Path object. Input : Path object Desired Output : "Path Data="M 120,10 200,L300" Stroke="Black""" or is there any way to calculate Path Data from…
neethu
  • 100
  • 1
  • 7
2
votes
3 answers

WPF: Can I get the size of a UIElement AFTER a transform is applied?

In WPF/Silverlight, can I get the calculated value of a UIElement after a transformation is applied? (Per the comment below): I've got a stack panel and I've applied a TranformGroup to it. There are two translate and one scale transforms in this…
Matthew Bonig
  • 2,001
  • 2
  • 20
  • 40
2
votes
2 answers

Binding two UIElements to the same property doesn't work properly if the property is in a singleton instance

I have never come across this issue but most recently I noticed that a two way binding to a property doesn't work if the property resides in a Singleton. What I mean is that the 'other' CheckBox never updates its value. Any ideas on how to make it…
Austin
  • 33
  • 4
2
votes
1 answer

How can I target multiple UIElements with VisualStateManager?

If I do something like this to change the opacity of an Ellipse:
Magnus Johansson
  • 28,010
  • 19
  • 106
  • 164
1
vote
3 answers

C# UIElement LostTouchCapture OnLostTouchCapture

I am building an application for the Samsung SUR40 in MS Surface 2.0. I cant let the LostTouchCapture work anymore. This is my XAML code:
Ron van der Heijden
  • 14,803
  • 7
  • 58
  • 82
1
vote
1 answer

Bing Map Silverlight control can't pan when user clicks on UIElement (Tunnelling Bubbling)

I am using the Silverlight Bing Maps control in an application. There is a canvas hosted over the map with various UIElements. A problem I am currently observing is the map mouse-down pans the map correctly, unless the mouse-down originates on a…
Dr. Andrew Burnett-Thompson
  • 20,980
  • 8
  • 88
  • 178
1
vote
1 answer

UIElements aside Tab Headers

Is there a way to place something (a custom UIElement) in place on the right of TabItems' headers, so that the headers will consider its size. I feel like there should be a data template for them, but I do not know what to read or how to query…
bohdan_trotsenko
  • 5,167
  • 3
  • 43
  • 70
1
vote
2 answers

WPF: adding UIElements to a ListBox whose ItemsPanelTemplate is a canvas?

I'm working on a ListBox that overrides its ItemsPanelTemplate to use a Canvas instead of a StackPanel. ListBoxItems have a DataTemplate that uses a converter to define the look and position of each ListBoxItem on the canvas. When I add an item to…
barriovolvo
1
vote
1 answer

Put UIElement to ListBox with custom ItemTemplate

I have an array of System.Windows.Controls.Image and I assign it to ListBox.ItemsSource. What's more, I want to have a Border around each Image. The xaml below demonstrates my idea.
Gqqnbig
  • 5,845
  • 10
  • 45
  • 86
1
vote
2 answers

Custom event for wpf UIElement

Is is possible to fire event when a UIElement's location is changed in wpf? We can fire location changed event in case of Windows but can we have a custom event which fires when a UIElement's location is changed in the Window.
Aksel
  • 53
  • 3
1
vote
1 answer

Silverlight: How to Bind to UIElement in another TabItem?

I have a Silverlight TabControl which has two TabItems. In the second, I have a TextBox, and I want to bind its Text property to an other TextBox's Text property, which is in the first TabItem. ElementName doesn't work, the Path for RelativeSource…
realbizkit
  • 71
  • 1
  • 3
1
vote
1 answer

CKEditor how can I execute OnChange of a sibling UIElement

I have a custom dialog with a button and an input on it. On the click event of the button I want to trigger the OnChange function of the input. I don't know how to get the sibling UIElement of the current one. Here is an example of my code: { id…
Givius
  • 1,008
  • 8
  • 12
1
vote
2 answers

Projection is not being respected when rendering a UIElement into a WriteableBitmap

I am using Silverlight 4 and am having trouble correctly generating bitmaps from UIElements that have a projection applied to them. In my specific case I am using the WriteableBitmap class to capture a bitmap of an Image control which has a…
Pete
  • 155
  • 1
  • 5
1
vote
1 answer

Bind UIElement to viewModel

I have a simple view containing a richtextbox and a button. I want to enter text into my RTB and on clicking my button have viewmodel print the RTB. I have my command set up from the views print button and in my viewmodel have a UIElement…
P_S_A_M
  • 55
  • 7