updatesourcetrigger

Workaround for UpdateSourceTrigger LostFocus on Silverlight Datagrid?

I have a Silverlight 2 application that validates data OnTabSelectionChanged. Immediately I began wishing that UpdateSourceTrigger allowed more than just LostFocus because if you click the tab without tabbing off of a control the LINQ object is not updated before validation. I worked around the issue for TextBoxes by setting focus to a...

MultiBinding binded to elements question

Hi! I have a login form that contains a username textbox and a password box. I want the ok button to be enabled only when both the fields contain a value. I have a converter that check for all the strings if they're null or empty. I placed a breakpoint on the first line of the Convert method, and it stops only when the MenuItem initial...

[WPF] Binding UpdateSourceTrigger=Explicit, updates source at program startup

I have following code: <Window x:Class="WpfApplication1.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" Height="300" Width="300"> <Grid> <TextBox Text="{Binding Path=Name, Mode=OneWayToSource, ...

Silverlight Update/Trigger IValueConverter in Listbox DataTemplate in a DataGrid

Hi I am building an application to display a datagrid bound to an ObservableCollection of Records, where each record has a Course Object and an ObservableCollection of Results Objects. The course is changed using an autocomplete box. The results collection is displayed in a Listbox with an IValueConverter implementation to change the c...

Why is UpdateSourceTrigger=PropertyChanged not triggering an element changed?

I have this WPF Window: public Window1() { InitializeComponent(); this.Content = new TheForm(); } Which loads this UserControl: <UserControl x:Class="TestAutomaticUpdate82828.TheForm" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Height="30...

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 work in WPF? Looked at this question which is similar but wondering if there is a cleaner ...

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 on loading the initial data but nothing happens when the user successfully types somethin...

WPFToolkit DataGrid: Combobox column does not update selectedvaluebinding immediately

I'm using WPF Toolkit DataGrid and DataGridComboBoxColumn. Everything works well, except that when selection change happens on the combobox, the selectedvaluebinding source is not updated immediately. This happens only when the combobox loses focus. Has anyone run into this issue and any suggestions solutions ? Here's the xaml for the ...

WPF MVVM UpdateSourceTrigger=Excplict

Hello, i've a contentcontrol in my Wpf-App (MVVM) which is bound to an object and displays the objects properties in textboxes, so the user can edit the values of the properties. I want to implement undo/redo functionality with the command pattern of the GoF. For this i need a point where i can create the command and set it into my undo...

Problem with UpdateSourceTrigger=PropertyChanged and StringFormat in WPF

Hi, I have a text box in my application which is data bound to a decimal field in my class and the binding mode is two way. I am using StringFormat={0:c} for currency formatting. This works fine as long as I don't touch 'UpdateSourceTrigger'. If I set UpdateSourceTrigger=PropertyChanged , It stops formatting the text that I am enterin...