Questions tagged [updatesourcetrigger]
79 questions
0
votes
1 answer
Remove bound items from ListBox only when user clicks save button
I have items bound to a listbox and I've implemented a function to delete them when they're selected and the user presses the Delete key. Currently, the delete function directly accesses the source. However, I don't want to modify the source…

Brandon
- 1,058
- 1
- 18
- 42
0
votes
1 answer
WPF combobox set selected item on lost focus
I have:
My property SomeItem looks like:
public object SomeItem
{
get
{
return _someItem;
}
set
{
LogMessage("SomeItem has…

Tono Nam
- 34,064
- 78
- 298
- 470
0
votes
1 answer
Wpf update source trigger explicit on multiple textboxes when a button is clicked and command is executed. In MVVM scenario
I have a situation like this, I have a browse when I can double click an object and it opens in a form and then I am able to modify it (behind the scenes I am passing that object from one view model to another). Then I am able to modify its fields,…

adminSoftDK
- 2,012
- 1
- 21
- 41
0
votes
1 answer
Change Default UpdateSourceTrigegr value for all TextBox's in Silverlight
We have a custom TextBox (inherits TextBox) and we would like to change the TextProperty's Binding's UpdateSourceTrigger value to Explicit. In Silverlight, there are only three values which are Default, Explicit and PropertyChanged.
Is there any…

Harsha
- 103
- 1
- 2
- 13
0
votes
1 answer
WPF Update Source Trigger Implementation
I have a custom object Foo with a boolean property called Flagged and when someone successfully types something in a text box it changes flagged to true and updates another textblock on the screen with some text. The problem is I can get it to work…

Nathan
- 5,059
- 16
- 48
- 61
0
votes
0 answers
XAML Datagrid not updating binding when container closes
I have a WPF User Control with a datagrid sitting within a WinForms form. The datagrid is bound to a datasource using the ItemsSource binding. It all works fine so when data is changed the changes propogate to the object model.
However, if the user…

ac66
- 49
- 1
- 7
0
votes
1 answer
Unknown member 'UpdateSourceTrigger' on element 'Binding'
I'm currently trying out C++/CX and XAML as a Windows 8 App - Project. It looks like things are working out great, but right now I stumbled on this error:
'Unknown member 'error WMC0011 UpdateSourceTrigger' on element 'Binding'.
I'm trying to use…

bkardol
- 1,258
- 1
- 20
- 32
0
votes
2 answers
Trouble using the TextBox UpdateSourceTrigger And PropertyChanged
Goal
I want the button btnRefresh to be enabled when the Textbox tbMachineNo has something in it (using the MVVM standards).
Project Summary
I have a:
Window.xaml

Alex
- 4,821
- 16
- 65
- 106
0
votes
1 answer
Iterate over VisualTreeHelper.GetChild() and call UpdateSource on Controls that contain databinding
I have a ContentControl in WPF which contains some input Controls, like TextBoxes and ComboBoxes.
Each of these Controls is databound to a given property in the ViewModel, with UpdateSourceTrigger=Explicit.
When I click some "Submit" button, I want…

heltonbiker
- 26,657
- 28
- 137
- 252
0
votes
1 answer
Binding.UpdateSourceTrigger giving XamlParseException/TargetInvocationException in WPF
I'm trying to apply the trigger as follows:
using SmartRoutePlanner.Models;
...
Map locationMap = new Map();
locationTextBox.DataContext = locationMap;
Binding locationBinding = new…

Kensing
- 97
- 1
- 10
0
votes
1 answer
Binding happened also by changing the values from the keyboard
I have a combobox that is bind to the following list:
private List strList;
public List StrList
{
get { return strList; }
set
{
strList = value;
…

Hodaya Shalom
- 4,327
- 12
- 57
- 111
0
votes
0 answers
WPF combo box update source trigger
I've added triggers for combobox, i.e.
When combo box is 'Disabled' then 'Text' property should set to '1'
and added updatesourcetrigger to property changed.
When combo box is 'Enabled' then 'Text' property should be selected one and added
update…

user1805169
- 87
- 2
- 13
0
votes
0 answers
Silverlight control updates binded property when it should not
I have a custom control in datagrid DataGridTemplateColumn.CellEditingTemplate:

noaRAVE
- 432
- 1
- 5
- 19
0
votes
3 answers
When ConvertBack is called for ItemsControl?
I have the following item data class, as well as a converter.
class ListBoxViewItem
{
public String Name { get; set; }
public Boolean IsChecked { get; set; }
}
[ValueConversion(typeof(List),typeof(List))]
class…

winterTTr
- 1,739
- 1
- 10
- 30
0
votes
1 answer
Different UpdateSourceTriggers for different sources?
I have a WPF TextBox with the Text property bound to a data source. I am also binding the IsEnabled property of a second TextBox to the Text.Length property of the first in order to disable the second box when there is nothing entered in the first…

DanBrum
- 419
- 1
- 7
- 18