0
我对WPF完全陌生,我试图让一个现有的按钮显示菜单项的下拉菜单。如何将上下文菜单添加到按钮?
这是最好的方法是什么?
<Button Name="ModelReport" Template="{StaticResource GlassButton}"
VerticalAlignment="Bottom" MouseEnter="ModelReport_MouseEnter" Click="CommandButton_Click">
<StackPanel Background="Transparent" Orientation="Horizontal" Margin="5,4,5,4">
<Image Width="16" Height="16" x:Name="ModelReportImage" Source="{StaticResource MyImgScrollInformation}" />
<TextBlock VerticalAlignment="Center" Margin="3,0">Model Report</TextBlock>
</StackPanel>
</Button>
您尝试了哪些方法?您对这些方法有何看法?请分享。 – Versatile