Questions tagged [updatesourcetrigger]

79 questions
1
vote
1 answer

Explicit UpdateSource on element with LostFocus trigger

My Scenario is, upon opening application, I read lots of data from file (using XMLSerializer) and put it into ObservableCollection. Using Bindings, I present data to users. When they change data in a field, proper data in collection is…
1
vote
1 answer

Button needs to be clicked twice due to textbox lost focus

I have a textbox which has UpdateSourceTrigger = LostFocus. When I type something in textbox and immediately click on button, the button click event does not fire. I think textbox simply loses the focus to button. When i click on button again it…
1
vote
1 answer

Why binding do not work for target to source

I have a canvas which has many images appearing dynamically on it and i used items control for it. I had to drag drop and rotate(on mouse right button click) those images and update new locations and rotation angle back to source code (VM and…
1
vote
0 answers

WPF - binding to user control's Dependency property doesn't work without UpdateSourceTrigger

I have a reusable UserControl for selecting language using combobox with DependencyProperty SelectedCulture. Then I have another control with list of users displayed in a DataGrid using UsersViewModel containing collection of UserViewModel. One…
1
vote
1 answer

Update source DataTable explicitly in WPF DataGrid

In my MainWindow , I have DataGrid and StackPanel with set of TextBox Control(one for each column) and save button. When user selects a row in DataGrid then current row's details will be displayed in text box. User can edit the information in text…
1
vote
1 answer

UpdateSourceTrigger usage C# WPF

I am currently using this AutoCompleteTextBox in my project: WPFTextBoxAutoComplete I am binding the TextBox to a List of Employee names. I am doing this like so;
CBreeze
  • 2,925
  • 4
  • 38
  • 93
1
vote
2 answers

wpf bind textbox to List - MainWindow.List.Item[0]

I have a static List in my MainWindow. If changes occur, CurrValue is set immediately. public static List varVisuListDll = new List(); In my class, there is a INotifyPropertyChanged implementation public string m_CurrValue; …
user1562809
  • 107
  • 9
1
vote
2 answers

Exception on binding with UpdateSourceTrigger set to LostFocus

The following code runs if UpdateSourceTrigger is set to PropertyChanged but throws an exception upon initialization when UpdateSourceTrigger is set to LostFocus. What is the problem with this implementation and how can it be…
Ilya
  • 51
  • 1
  • 3
1
vote
2 answers

WPF Data Binding with StringFormat when UpdateSourceTrigger is PropertyChanged

I want to have a textbox append a specific string once the user tabs out of the control, i.e. LostFocus, however I prefer the textbox to validate as the user types, so UpdateSourceTrigger is set to PropertyChanged. Is there a way to get this to…
cjroebuck
  • 2,273
  • 4
  • 30
  • 46
1
vote
1 answer

Different UpdateSourceTriggers for binding ways

I dont know how I implement one special behaviour. I have a view with a datagrid which includes two columns. One column displays a formated price ("00.00"). The price will automatically saved, when the binding is updated (property is set). If I use…
Andre
  • 1,044
  • 1
  • 11
  • 23
1
vote
0 answers

Since when do we have UpdateSourceTrigger = PropertyChanged in Silverlight 4?

I'm developing in Silverlight 4 and in time I got used to having two choices for the UpdateSourceTrigger property of bindings: Default and Explicit. But today I found out I can also choose "PropertyChanged", which is very, very welcome but...…
Sue Maurizio
  • 662
  • 7
  • 17
1
vote
1 answer

Why does setting UpdateSourceTrigger to Explicit still update the source?

I have a WPF DataGrid with DataGridTextColumn
netstained
  • 13
  • 2
0
votes
1 answer

Trigger AppCache Download

Is there a way to trigger an application cache download? I've seen several webapps which provide a download for offline storage button, but it seems there's no event for this. Dynamically changing the manifest file in the tag doesn't work…
Pikebu
  • 101
  • 2
  • 6
0
votes
1 answer

Textbox in listview - update source and move focus on tab not working at same time

I have a listview. I have set following int that :-