Message.Attach not passing parameters by name

Topics: Conventions
May 4, 2015 at 4:24 PM
Edited May 4, 2015 at 4:25 PM
<TextBox x:Name="TemplateEmail" Grid.Row="1" Margin="0,5,0,0" IsEnabled="{Binding ElementName=EnviaEmail, Path=IsChecked}">
            <MenuItem Header="Cliente" cal:Message.Attach="[Click] = [Action ContextMenuCliente(TemplateEmail.Name, TemplateEmail.CaretIndex)]"  />
            <MenuItem Header="Contacto" cal:Message.Attach="[Click] = [Action ContextMenuContacto($source)]"  />

I'm using the code above to "mimic" Copy + Paste in MMV: i know the ViewModel property name (TemplateEmail.Name, know where the cursor is TemplateEmail.CaretIndex so i can now "paste" my text in the correct place.

However for some reason i'm simple getting null and 0 instead of the correct values. variables such as $view, $this, etc are working so it seems to be related to named FrameworkElements?

I know i can't pass a FrameworkElement as a parameter with Message.Attach but i assumed i could at least pass some specific properties?