I'm trying to attach a print event using Calibu.Micro to my MahApp DropDownButton control:
<metro:DropDownButton x:Name="PrintMenu" ToolTip="{brix:Loc PrintTT}" ButtonStyle="{DynamicResource MetroCircleButtonStyle}" FocusVisualStyle="{DynamicResource MetroCircleButtonFocusVisual}" Background="Transparent" ArrowVisibility="Collapsed" BorderBrush="Transparent">
<metro:DropDownButton.Icon>
<Rectangle Width="20" Height="20" Fill="{DynamicResource BackgroundBrush2}" Style="{StaticResource AppbarButtons}">
<Rectangle.OpacityMask>
<VisualBrush Stretch="Fill" Visual="{StaticResource appbar_printer}" />
</Rectangle.OpacityMask>
</Rectangle>
</metro:DropDownButton.Icon>
<metro:DropDownButton.ItemsSource>
<x:Array Type="StackPanel">
<StackPanel>
<Button cal:Message.Attach="Print" cal:Action.TargetWithoutContext="{Binding Path=DataContext, ElementName=PrintMenu}">
<StackPanel Orientation="Horizontal">
<Label>Print label</Label>
<Label Margin="10 0 0 0">CTRL+P</Label>
</StackPanel>
</Button>
</StackPanel>
</x:Array>
</metro:DropDownButton.ItemsSource>
</metro:DropDownButton>
This gives me the following error however:
An unhandled exception of type 'System.Exception' occurred in WindowsBase.dll
Additional information: No target found for method Print.
Any ideas on what I should be looking at? I've tried adding the cal:Action.TargetWithoutContext in hopes of fixing the issue but that didn't help.
Thanks.
