Hi, I'm using a RadRibbonWindow and RadRibbonView, I want to hide the title bar to save room so I set TitleBarVisibility="Collapsed", but this hides the windows close/maximise/minimise buttons, so I thought I would just make my own ones (see xaml below), but this doesn't work because the click event doesn't work on the buttons, also when the windowstate is normal you can see the top of the original close/maximise buttons and it doesn't look good.
Is there any good solution for hiding the title bar but maintaining the button?
Is there any good solution for hiding the title bar but maintaining the button?
<
telerik:RadRibbonWindow
x:Class
=
"TelerikTest.MainWindow"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
Title
=
"MainWindow"
Name
=
"dlgMain"
Height
=
"350"
Width
=
"525"
>
<
Grid
>
<!-- Custom close/maximise/minimise buttons -->
<
Grid
Panel.ZIndex
=
"1"
Margin
=
"180,0,26,0"
Height
=
"24"
HorizontalAlignment
=
"Stretch"
VerticalAlignment
=
"Top"
>
<
Button
Name
=
"btnClose"
HorizontalAlignment
=
"Right"
Width
=
"22"
Content
=
"❌"
ToolTip
=
"Close"
Click
=
"btnClose_Click"
/>
<
Button
Name
=
"btnMaximise"
HorizontalAlignment
=
"Right"
Width
=
"22"
Content
=
"▭"
Margin
=
"0,0,24,0"
ToolTip
=
"Toggle maximise"
Click
=
"btnMaximise_Click"
/>
<
Button
Name
=
"btnMinimise"
HorizontalAlignment
=
"Right"
Width
=
"22"
Content
=
"‗‗"
Margin
=
"0,0,48,0"
ToolTip
=
"Minimise"
Click
=
"btnMinimise_Click"
/>
</
Grid
>
<
telerik:RadRibbonView
Name
=
"xRadRibbonBar"
Title
=
"Test"
ApplicationName
=
""
IsBackstageOpen
=
"False"
SelectedIndex
=
"0"
ApplicationButtonVisibility
=
"Visible"
TitleBarVisibility
=
"Collapsed"
ContentHeight
=
"72"
MinimizeButtonVisibility
=
"Visible"
>
<
telerik:RadRibbonView.ApplicationButtonContent
>
<
TextBlock
Text
=
"File"
/>
</
telerik:RadRibbonView.ApplicationButtonContent
>
<
telerik:RadRibbonTab
Header
=
"Home"
>
<
telerik:RadRibbonGroup
Header
=
"Group"
>
<
telerik:RadRibbonButton
Size
=
"Large"
Text
=
"Item"
>
</
telerik:RadRibbonButton
>
</
telerik:RadRibbonGroup
>
</
telerik:RadRibbonTab
>
</
telerik:RadRibbonView
>
</
Grid
>
</
telerik:RadRibbonWindow
>