multibinding Questions
5
I am new to WPF and I couldn't find solution on the web. My problem is that I want my button to be enabled only when four textboxes will not have validity errors.
My code is:
<Button Content="...
Aseity asked 6/5, 2014 at 16:7
7
Solved
I've been playing around with WPF for quite a while now, but for the first time today, I needed to nest a MultiBinding inside another, something like:
<MultiBinding>
<Binding />
<...
Rameau asked 23/4, 2012 at 12:23
1
Solved
I am drawing different types of paths on canvas using databinding. Canvas is in ItemsControl and I use MiltiBinding Converter.
<ItemsControl x:Name="Items" ClipToBounds="True&quo...
Guest asked 27/9, 2022 at 18:20
3
Solved
I have a button with binding which works fine, see below:
<Button x:Name="licenceFilterSet" Content="Search" Command="{Binding searchCommand}" CommandParameter="{Binding Path=Text, ElementName=...
Zolnay asked 22/10, 2013 at 6:9
2
Solved
I have a TextBlock. When its Text is bound as:
<Binding Path="Applicant2.Surname"/>
It works fine, however I want to include the Forenames so changed the binding to:
<MultiBinding Stri...
Tanh asked 29/6, 2010 at 9:24
2
I encountered a situation where I can easily achieve the same functionality by using a MultiDataTrigger or, alternately, using a DataTrigger with a MultiBinding. Are there any substantive reasons t...
Clausius asked 8/1, 2014 at 10:44
2
is it possible to add a Binding to a ConverterParameter in a MultiBinding?
Something like this:
<HierarchicalDataTemplate DataType="{x:Type Elements:RootElement}">
<HierarchicalDataTemp...
Rapid asked 1/4, 2011 at 14:43
1
Solved
I'm trying to combine this 3 features of Guice: inject, multibinding, generics. I create a prototype of production project, so here it is:
First, this is a little hierarchy for generics(in product...
Handtomouth asked 11/4, 2018 at 8:11
1
Question: How do I bind StatName.Width to Samp1.ActualWidth + Samp2.ActualWidth?
Sub-questions:
Why are my WidthConverter functions never executed (breakpoints never hit)?
What is the right &l...
Selimah asked 11/12, 2017 at 21:59
1
Solved
I have a collection of variables in my viewmodel:
public ObservableCollection<ObservableVariable> Variables { get; }= new ObservableCollection<ObservableVariable>();
The ObservableVa...
Finecut asked 23/10, 2017 at 19:4
1
Solved
I'm trying to bind two values into the content of one label with a space in the middle. I'm following an example from MSDN (MSDN Article) but my labels are empty. Here is the code I have:
Class:
...
Execration asked 26/8, 2017 at 13:7
5
Solved
Is there any way to have to tabcontrol take the size of the largest tab item (well, actually, the tabitem's content)?
Since the tabcontrol has no specific size assigned it should autosize: it does...
Ganger asked 2/7, 2009 at 11:11
3
Solved
I would like to use StringFormat to do someting like this :
<Label x:Name="myLabel">
<Label.Content>
<Multibinding StringFormat="{}{0} - {1}">
<Binding Path="Lib1" />
&...
Antioch asked 9/12, 2010 at 14:18
3
Solved
Is multibinding not supported in Metro UI?
Or has it just not been added yet ?
<TextBlock>
<TextBlock.Text>
<MultiBinding StringFormat="{}{0},{1}">
<Binding Path="FirstNam...
Royston asked 7/3, 2012 at 13:48
3
I want to make a tooltip with multibinding inside a text block, but whatever I try it doesn't work.
Here is what I've tried so far:
<TextBlock Text="{Binding Description, StringFormat='Descrip...
Disconformity asked 29/12, 2015 at 9:12
1
Solved
I try to add new line inside Label ContentStringFormat:
Content="{Binding Path=(my:MyData.Files)}"
ContentStringFormat="{}Number of files:\n {0:#,0}"
Any suggestions ?
Fissirostral asked 26/9, 2015 at 7:5
4
Solved
I have a multi-binding like
<TextBlock>
<TextBlock.Text>
<MultiBinding Converter="{StaticResource myConverter}">
<Binding Path="myFirst.Value" />
<Binding Path="mySe...
Borderline asked 27/7, 2010 at 4:49
4
Solved
Is there a way to take this multibinding:
<TextBox.IsEnabled>
<MultiBinding Converter="{StaticResource LogicConverter}">
<Binding ElementName="prog0_used" Path="IsEnabled" />
...
Manna asked 2/6, 2010 at 17:7
1
Solved
what i want to do is quite simple. I have got a Window and I Want the Title to be bound to two different Properties. The Title should be Updated everytime one of the Properties changes.
What I tri...
Driedup asked 26/2, 2015 at 12:54
1
In this case I am looking to use strings declared in a resource dictionary as part of a binding on a Text property. Binding just a single dynamic resource string is not a problem:
<TextBlock Te...
Mcnally asked 6/6, 2013 at 13:2
1
I am trying to multibind a formatted double value to a text box. I have a converter which takes in a double and a Formatter object and returns a formatted string to be displayed. The double is boun...
Pupillary asked 2/4, 2014 at 20:24
5
Solved
My code fails at at startup because the values array in the Converter that is called by the Multibinding is not filled with proper value but have a value of DependencyProperty.UnsetValue.
have a l...
Esmond asked 22/7, 2011 at 6:57
2
Solved
I was actually setting up a sample application for something entirely different, but then I was trying this:
I have a collection of Movies. I'll have a list box which displays all the movies. The ...
Tart asked 20/8, 2014 at 19:48
4
How does one add a multibinding to several viewmodel objects in xaml?
I need to bind the IsEnabled property of a context menu to two integers in my viewmodel. The following binding doesn't work, si...
Gey asked 12/10, 2009 at 7:44
2
Solved
I have the following class that is referenced by my XAML:
public static class SearchVariables
{
public static DataGridCellInfo current_cell_match;
public static string current_cell_property;
p...
Skaggs asked 26/5, 2014 at 7:3
1 Next >
© 2022 - 2024 — McMap. All rights reserved.