Questions tagged [element-binding]
17 questions
2
votes
0 answers
Set maximum height of control based on height of other controls (using CalcBinding)
I have a TextBlock and three Grids, contained inside another Grid. Each inner grid contains a TextBlock in the first row and DataGrid in the second. The data in the datagrids has a variable number of records.
…

mcalex
- 6,628
- 5
- 50
- 80
2
votes
1 answer
Using ValueConverter to position a Line relative to its parent ActualHeight and another ViewModel property
I have a property in my ViewModel called RelativeHeight, which is a double ranging from 0 to 1.
In my View, I have an horizontal line whose width is the same of its container (via Element Binding), but I want it to have its vertical position…

heltonbiker
- 26,657
- 28
- 137
- 252
1
vote
3 answers
Access ComboBoxItem DisplayValue
I have a comboBox that has an ItemsSource of a list of objects. So the DisplayMemberPath is set to a particular property of the object. Of course this means that the correct value is displayed in the ComboBoxItem.
My issue is that I would like to…

Chris Nicol
- 10,256
- 7
- 39
- 49
1
vote
1 answer
Element Binding if both involved objects are created in code behind
in my WPF project, I try to create the displayed objects in Code behind. For some properties I use Element Binding, f.e.:
To do this in code behind, I use the…

Aaginor
- 4,516
- 11
- 51
- 75
1
vote
0 answers
FireFox cannot get mouse position on drag
I have the following code in Angular
element.bind('dragstart', function(){ // set the drag start parameter});
element.bind('dragend', function(){ // set the drag end parameter});
element.bind('drag, function(event){
…

Kousha
- 32,871
- 51
- 172
- 296
0
votes
1 answer
How do I bind the RadiusX of a rectangle to the ActualHeight of the rectangle and multiply it by some number in Expression Blend 4 (or VS)?
Right now I am "cheating" and using the following:
0
votes
0 answers
SAPUI5 - Find View-Elements by BindingPath
Is there a way to determine the view element for a BindingPath. So the elements that have a binding to this path.
I have the binding path and want to use it to determine the view element.
Example:
var sPath = "/SomeSet/results/0";
Something…

Foerstar
- 11
- 3
0
votes
0 answers
Element Binding To TreeView SelectedItem Where TreeViewItem has ItemsSource
I have the following UserControl:

Eric
- 1,392
- 17
- 37
0
votes
1 answer
Element Binding in Element Binding in SAPUI5
I'm using element binding in XML to get data from an OData service in the controller:
{myModel2>/oData/ProdOrdSet('123456789')/Gmein}
The whole thing should now work with dynamic numbers instead of 123456789.
I started with the following…

Lukas Metzger
- 57
- 9
0
votes
1 answer
WPF TreeViewItem HorizontalAlignment
I'm using WPF 4.5.2
My basic structure looks like this
At runtime the ContentPresenter hosts a TreeView, for example

GeorgeDuke
- 151
- 15
0
votes
2 answers
Not able to display data in detail page using splitcontainer in sapui5?
I am using splitcontainer in my application. I used two views one for Master page and other one for detail page.
This is my view code: Main.view.xml(which holds Master and detail views)
…

Venkatesh Machineni
- 449
- 5
- 13
0
votes
1 answer
wpf height and width by element binding
wpf height and width of control based on rowheight and rowwidth of grid by
element binding to it.
…

Pradeep M Nayak
- 50
- 2
- 9
0
votes
1 answer
Element Binding on DataGridComboBoxColumn
Is it possible to use Element Binding with a DataGridComboBoxColumns selected item?
I have some object MyObject, that contains a property "ListOfSomeTypes" of type ObservableCollection. SomeType implements INotifyPropertyChanged.
A list of SomeType…

tabina
- 1,095
- 1
- 14
- 37
0
votes
2 answers
Binding layout properties of different UserControls
I have the following layout for a screen displaying multi-channel information (similar to audio tracks):
MultiChannelPlotterControl contains one HorizontalRuler instance at the bottom and a UniformGrid containing N SingleChannelPlotterControl…

heltonbiker
- 26,657
- 28
- 137
- 252
0
votes
1 answer
Binding ElementName from context menu can't find target
I am trying to bind to an element from a context menu inside a drop-down menu button (from http://shemesh.wordpress.com/2011/10/27/wpf-menubutton/). Even though outside the context menu the binding seems to work, the binding inside the context menu…

Walter Williams
- 944
- 3
- 11
- 25