The property which determines the size of an object in X-axis
0
votes
1answer
38 views
Is it possible to get the value of another elements in CSS
I'm creating a mobi site and would like to set the height of some of my elements to a multiple of the width, sorry if I'm not coming off clear enough here is an example of what I want to do.
#myDiv{
...
1
vote
1answer
25 views
CSS auto change ul width when li increase (floating left)
I have a problem to auto fix UL`s width that LI can float straightly.
If I change css, set UL with a width like '1000px', not 'auto'; that what I want can be done.
However, is there other any ...
0
votes
3answers
357 views
Set list items to grow to the width of the containing ListView - WPF
I would like the items of my ListView to grow to take up the entire width of the available space within the ListView.
Currently, I have the item's width set like this (the ListView is named ...
1
vote
0answers
168 views
Setting width of a panel based on the width of an element within it in WPF
I have a ListBoxItem that I wish to dynamically resize. However I don't want it to resize to the width of the largest element, but to the width of a specific element.
This comes from the ...
1
vote
3answers
996 views
how to get the available (visible) width of the TreeViewItem inside a TreeView
I have TreeViewItems where the HierarchicalDataTemplate consists of a Grid with 3 columns with the following definitions:
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition ...
1
vote
2answers
536 views
Changing Context Menu's width results in poor rendering
All I wanted to do is have a ContextMenu on a Button with the width bounded to the Button's width. Apparently that's too much. If you open the ContextMenu and then decrease the size of the Button and ...
7
votes
4answers
8k views
WPF DataGrid Sync Column Widths
I've got two WPF Toolkit DataGrids, I'd like so that when the user resizes the first column in the first grid, it resizes the first column in the second grid. I've tried binding the width of the ...
6
votes
2answers
20k views
WPF Binding to Grid Column Width
I'm attempting to bind a DependancyProperty in one of my usercontrols to the Width property of a Column in a Grid.
I have code similar to this:
<Grid x:Name="MyGridName">
...
1
vote
3answers
10k views
How to Set Grid Column MaxWidth depending on Window or Screen Size in XAML
I have a 3 column grid in a window with a GridSplitter on the first column. I want to set the MaxWidth of the first column to a third of the parent Window or Page Width (or ActualWidth) and I would ...
0
votes
1answer
727 views
Determining the size of a UIElement in Silverlight
I have a StackPanel containing a number of UIElements (which have been constructed using a template in from a XAML file) that I wish to display.
To display it in the correctly I need to know its ...
1
vote
1answer
113 views
Using Java, how to get the 'ActualWidth' of the text of a TextBlock and use it?
See subject title.
I have a method in Java that draws a TextBlock element:
public void drawTextBlock(String text) {
Element textBlock = new Element("TextBlock", Ns.getDefaultNamespace());
...
1
vote
2answers
3k views
Binding a TextBox's Width to its parent container's ActualWidth
I'm loading a Textbox and a Button into a horizontal StackPanel programmatically. The size of the button (which only contains an Image) is fixed, but I can't get the textbox to fill the available ...
1
vote
1answer
812 views
Binding the Width Property of a DataGridColumn to the ActualWidth of the parent DataGrid
I tried to solve my previous question with manually binding the Width property of the DataGridTextColumn here is the first Version of my XAML Code.
<DataGrid AutoGenerateColumns="False" ...
16
votes
6answers
14k views
What is the difference between Width and ActualWidth in WPF?
I am currently working with Panels in WPF, and I noticed that as regards the Width and Height properties, there are also two other properties called ActualWidth and ActualHeight.
ActualWidth
...
15
votes
3answers
25k views
Android set height and width of Custom view programmatically
I have created a custom view named Graphview . Here is the structure for the GraphView class.
public class GraphView extends View {
public GraphView(Context context, float[] values, String ...