111,120
社区成员
发帖
与我相关
我的任务
分享
[/quote]
不让它变大的功能我早就弄好了,但是怎样让那个按钮变灰啊。如何设置按钮样式啊,求教。。。[/quote]
不跟你说了吗,就把它透明度调低,比如我用的是Blue.xaml 样式,实际上按钮就是贴的图片,只要把图片透明度调整就行了:
<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>
[/quote]
不让它变大的功能我早就弄好了,但是怎样让那个按钮变灰啊。如何设置按钮样式啊,求教。。。
// Handles Maximize command
static void OnMaximizeCommandExecuted(object sender, ExecutedRoutedEventArgs e)
{
}
// Handles Normalize command
static void OnNormalizeCommandExecuted(object sender, ExecutedRoutedEventArgs e)
{
}
在主窗口设置ResizeMode 搞定