Caliburn doesn´t work when view is loading?

Topics: Bugs
Jul 22, 2011 at 1:55 PM


I´m using caliburn:micro and MVVM. I hand some events with Caliburn, this is an example:

 <ComboBox x:Name="CbxValues"                          
          Micro:Message.Attach="[Event SelectionChanged] = [Action ChangeValue()]"
          SelectedIndex="{Binding Path=IndexValueSelected, Mode=TwoWay}"


When view is loading and change CbxValues.SelectedIndex, the view hand SelectionChanged event through CbxValues_SelectionChanged method, but viewmodel doesn´t hand SelectionChanged event through ChangeValue() method.

But when view is loaded both works right.

Caliburn works this way?



Jul 22, 2011 at 3:36 PM
Edited Jul 22, 2011 at 3:36 PM

Caliburn's actions and conventional bindings are not wired until the Loaded event fires. This is due to limitations in Xaml which do not allow us to do it earlier and make everything work correctly.

Jul 23, 2011 at 8:51 PM

ok, Thank you for your support.