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

How to set dynamic height of UIElement based on the content in text block

i need to set height of UiElement based on the content . i set content to a text block and set text block MaxWidth is some value and MaxHeight is double.MaxValue. now i set this textblock to child of border.nowi measure the border like…
SharpGobi
  • 144
  • 1
  • 13
0
votes
1 answer

WPF Checkbox won't display a UIElement as its content

I'm working with a custom checkbox, and I'm trying to set the content to a WPF Viewbox. The problem is, simply, nothing is displayed. The checkbox appears and works, but it has no content. This is sample code (not the actual code) of what I'm trying…
Quentamia
  • 3,244
  • 3
  • 33
  • 42
0
votes
2 answers

Using GitHub with XCode 6.2 causes Storyboard UI Elements to Disappear

My partner created a project in XCode and committed it to GitHub. No new changes were made. When either of us tries to bring down the project on our computers, the Storyboard appears to be missing every single UI element (UITextField, UIButton,…
0
votes
0 answers

WPF Binding to the same UIElement (Grid) in two views

I have strange problem. Here's some code: XAML of first view: .......
Marcin
  • 1
0
votes
1 answer

Find X/Y of a UIElement inside a Canvas

I have UIElements (circles/rectangles) inside a canvas. I want to get X/Y for a UIElement relative to its parent (Canvas). But I am not able to get it. There are some solutions for this. I tried doing this (Find position of Button/UIElement on…
fhnaseer
  • 7,159
  • 16
  • 60
  • 112
0
votes
1 answer

How to access children of UIElement to add animation

i have in my XAML an uniformgrid who contain some UserControl. Each UserControl avec an Ellipse. O try to access to the Ellipse to add animation but impossible to get children of the uniformgrid. Thank you. XAML :
syca
  • 13
  • 1
  • 6
0
votes
2 answers

Adding text to WPF Line

How do I add text to a Line UIElement? I would like to have the text placed in the middle of the line.
MikaelKP
  • 133
  • 2
  • 18
0
votes
1 answer

UiElement based on another class

I placed a control into a grid. let's say the control is derived from public class 'ButBase' which is derived in its turn from System.Windows.Controls.Button. The code normally compiles and app works just fine. But there's something really…
iLemming
  • 34,477
  • 60
  • 195
  • 309
0
votes
1 answer

Activate UIElement on textbox from code behind

I have a custom WPF keyboard that I use for input in my application xmlns:WpfKb="clr-namespace:WpfKb.Controls;assembly=WpfKb" And in the resourcedictionary In my XAML-code I use the following code to…
lewi
  • 477
  • 1
  • 5
  • 18
0
votes
2 answers

WPF: TranslateTransform X property not updating

I have a weird problem, I register in a Grid to the event TouchMove _outerGrid.TouchMove += _outerGrid_TouchMove; I save the last touch point, and calculate the displacements between the last and the actual touch point. double dx = actualPoint.X -…
Marco
  • 1,454
  • 1
  • 16
  • 30
0
votes
0 answers

Changing font of all UI elements using Text Kit

One of the most common problem faced by iOS developers is to change the font of all the UI elements in one go. With the introduction of UIAppearance Protocol setting the font did become very convenient, since then I've been using appearance to…
Aditya Mathur
  • 1,185
  • 17
  • 27
0
votes
2 answers

Change size of all items from a Grid

I try to change the width of all Items in several grids, which are in a grid, too. The items are Textboxes, CheckBoxes, Sliders, Buttons etc. Here are my solution approaches: foreach (Control itemGrid in mainGrid.Children) { …
Matt126
  • 997
  • 11
  • 25
0
votes
3 answers

How to make a UIElement width relative to the parent container (in this case, StackPanel)?

How to make a UIElement (in my case it's a Line) width relative to the parent container (in this case, StackPanel)? Relative means stretched and shrink based on the parent.
Moses Aprico
  • 1,951
  • 5
  • 30
  • 53
0
votes
1 answer

How to properly implement the button event when tapped or pressed, changing colors?

I am creating an app for windows phone 8 and I want the button control to change colors of borderbrush, background, and foreground when pressed or tapped and when released to change back to its original colors. The problem is the phone uses its…
TheAmazingKnight
  • 2,442
  • 9
  • 49
  • 77
0
votes
1 answer

Accessing UIElements inside a block ios

I'm using a block for completion handler. How to access a imageView/UIElements inside a block, [storyImageView setImageWithURL:[NSURL URLWithString:imageURL] placeholderImage:Nil completed:^(UIImage *storyImage,NSError *error,SDImageCacheType…
user2823044
  • 315
  • 2
  • 5
  • 14