Hello Henrik,
Could you please specify if you use a custom theme for the RadWindow? The four buttons should not be visible at the same time. With this Q3 we bound the Visibility of the buttons in the RadWindow header:
<
Border
x:Name
=
"PART_HeaderButtonsBorder"
Grid.Column
=
"1"
>
<
StackPanel
x:Name
=
"HeaderButtons"
Grid.Column
=
"1"
Margin
=
"0 0 3 0"
Orientation
=
"Horizontal"
>
<
telerik:RadButton
x:Name
=
"PART_MinimizeButton"
Command
=
"telerik:WindowCommands.Minimize"
Style
=
"{StaticResource WindowButtonStyle}"
Visibility
=
"{Binding IsEnabled, Converter={StaticResource BooleanToVisibilityConverter}, RelativeSource={RelativeSource Self}}"
>
<
Path
Data
=
"M1.5,7.5 L12.5,7.5 12.5,11.5 1.5,11.5 Z"
Fill
=
"{StaticResource WindowButtonIconFill}"
Height
=
"14"
Stroke
=
"{StaticResource WindowButtonIconStroke}"
Width
=
"14"
/>
</
telerik:RadButton
>
<
telerik:RadButton
x:Name
=
"PART_RestoreButton"
Command
=
"telerik:WindowCommands.Restore"
Style
=
"{StaticResource WindowButtonStyle}"
Visibility
=
"{Binding IsEnabled, Converter={StaticResource BooleanToVisibilityConverter}, RelativeSource={RelativeSource Self}}"
>
<
Path
Data
=
"M0.5,4.5 0.5,11.5 1.5,12.5 8.5,12.5 9.5,11.5 9.5,3.5 1.5,3.5 Z M3.5,6.5 L3.5,9.5 L6.5,9.5 6.5,6.5 Z M3.5,3.5 3.5,1.5 4.5,0.5 11.5,0.5 12.5,1.5 12.5,9.5 11.5,10.5 9.5,10.5 9.5,3.5 Z"
Fill
=
"{StaticResource WindowButtonIconFill}"
Height
=
"14"
Stroke
=
"{StaticResource WindowButtonIconStroke}"
Visibility
=
"{Binding IsEnabled, Converter={StaticResource BooleanToVisibilityConverter}, RelativeSource={RelativeSource Self}}"
Width
=
"14"
/>
</
telerik:RadButton
>
<
telerik:RadButton
x:Name
=
"PART_MaximizeButton"
Command
=
"telerik:WindowCommands.Maximize"
Style
=
"{StaticResource WindowButtonStyle}"
Visibility
=
"{Binding IsEnabled, Converter={StaticResource BooleanToVisibilityConverter}, RelativeSource={RelativeSource Self}}"
>
<
Path
Data
=
"M1.5,2.5 L12.5,2.5 12.5,11.5 1.5,11.5 Z M4.5,5.5 L9.5,5.5 9.5,8.5 4.5,8.5 Z"
Fill
=
"{StaticResource WindowButtonIconFill}"
Height
=
"14"
Stroke
=
"{StaticResource WindowButtonIconStroke}"
Width
=
"14"
/>
</
telerik:RadButton
>
<
telerik:RadButton
x:Name
=
"PART_CloseButton"
Command
=
"telerik:WindowCommands.Close"
Style
=
"{StaticResource WindowButtonStyle}"
Visibility
=
"{Binding IsEnabled, Converter={StaticResource BooleanToVisibilityConverter}, RelativeSource={RelativeSource Self}}"
>
<
Path
Data
=
"M1.5,3.5 L2.5,2.5 4.5,2.5 6.5,4.5 8.5,2.5 10.5,2.5 11.5,3.5 8.5,6.5 8.5,7.5 11.5,10.5 10.5,11.5 8.5,11.5 6.5,9.5 4.5,11.5 2.5,11.5 1.5,10.5 4.5,7.5 4.5,6.5 z"
Fill
=
"{StaticResource WindowButtonIconFill}"
Height
=
"14"
Stroke
=
"{StaticResource WindowButtonIconStroke}"
Width
=
"14"
/>
</
telerik:RadButton
>
</
StackPanel
>
</
Border
>
I would recommend you to update your custom template.
Please do not hesitate to contact us if you require any further information.
Kind regards,
George
the Telerik team
Browse the
videos here>> to help you get started with RadControls for Silverlight