我想将旧的About菜单项添加到我的应用程序中.我想将它添加到应用程序的"系统菜单"(当我们点击左上角的应用程序图标时弹出的那个).那么,我怎么能在.NET中做到这一点?
ContextMenu当你点击应用程序的图标或在应用程序的标题栏上单击鼠标右键时,我想调用它.
这是ContextMenu我的意思:

我需要它,因为我做了像窗口一样的自定义控件.
我需要这种行为来完成我的控制.
编辑:
Leo Lorenzo Luis问我代码:
https://skydrive.live.com/?cid=c3392940f5cf5f74&id=C3392940F5CF5F74%21107&authkey=!APd2X3tDxWRfpL4
要么:
我的MainWindow.xaml:
<!--<Grid>
<Border Name="TopBorder" BorderThickness="0.5,0,0,0" BorderBrush="Blue"/>
<Border Name="RightBorder" BorderThickness="0,0.5,0,0" BorderBrush="Red"/>
<Border Name="BottomBorder" BorderThickness="0,0,0.5,0" BorderBrush="Green"/>
<Border Name="LeftBorder" BorderThickness="0,0,0,0.5" BorderBrush="Orange"/>
<Grid Margin="0.5">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<StatusBar Background="Transparent" MouseDoubleClick="TriggerMaximize" MouseDown="StatusBar_MouseDown">
<Image Margin="5,0,0,0" VerticalAlignment="Center" Width="16" Height="16" Source="{Binding Icon, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}" RenderOptions.BitmapScalingMode="NearestNeighbor" RenderOptions.EdgeMode="Aliased"/>
<Label VerticalAlignment="Center" FontSize="14" Content="{Binding Title, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}"/>
</StatusBar>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Grid.Column="1">
<Button x:Name="Minimize" ToolTip="Minimize" …Run Code Online (Sandbox Code Playgroud)