Caliburn doesn´t work when view is loading?

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

Hi,

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}"
          SelectionChanged="CbxValues_SelectionChanged"
   IsManipulationEnabled="True"
   Height="25">

 

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?

 

 

Coordinator
Jul 22, 2011 at 2:36 PM
Edited Jul 22, 2011 at 2: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 7:51 PM

ok, Thank you for your support.