110,546
社区成员
发帖
与我相关
我的任务
分享
<Button x:Name="maximizeButton" Margin="-1,0,0,0" Style="{StaticResource CaptionButtonStyle}" Width="35" Height="19" BorderThickness="0,0,0,1" Command="{x:Static Fluent:RibbonWindow.MaximizeCommand}">
<Image Width="Auto" Height="Auto" Opacity="0.3" HorizontalAlignment="Center" VerticalAlignment="Center" Stretch="None" Source="{StaticResource ImageCaptionButtonMaximize}" SnapsToDevicePixels="True" />
</Button>
// Handles Maximize command
static void OnMaximizeCommandExecuted(object sender, ExecutedRoutedEventArgs e)
{
}
// Handles Normalize command
static void OnNormalizeCommandExecuted(object sender, ExecutedRoutedEventArgs e)
{
}
在主窗口设置ResizeMode 搞定