Note that there are some explanatory texts on larger screens.

plurals
  1. POWhich executes first Code Behind or View Model
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. COI believe your question is out of concrete context (concrete application design), even after studying your prev question I am in doubt what you are asking about- it is possible to completely substitute XAML by codebehind and vice versa. If you execute something in XAML then you do not do it in codebehind and vice versa. Anyway, it is interesting to see how this question willl be eventually answered
      singulars
    2. COHi @ГеннадийВанинНовосибирск Have you seen the related topic on my question above? I'm accessing the view model to add an item to my existing list using code behind. But I want to ensure that this happens before executing anything in my View Model. Kindly refer to the link below for further details http://stackoverflow.com/questions/16007054/accessing-variables-from-xaml-and-object-from-viewmodel-using-code-behind/16009306?noredirect=1#comment22915673_16009306
      singulars
    3. COThis question doesn't really make much sense. After the compiler is done with the source you end up with a SINGLE class. Code is generated by the XAML and this is why .xaml.cs classes normally has `partial class` in their definition. You might be referring to when the bindings on the XAML are initialized, which is of course during `InitializeComponent();`
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload