How do you hide the SideDrawer button?

1 Answer 81 Views
Buttons SideDrawer
William
Top achievements
Rank 1
Iron
William asked on 04 Sep 2023, 12:16 AM

I programmatically open/close drawer and don't need to show button and even if I did want to show it I would use a different image. 

Thanks. 

William
Top achievements
Rank 1
Iron
commented on 04 Sep 2023, 04:56 PM

Figured out how to disappear the button. DrawerManipulationMode="Gestures". Not the best solution. 

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 06 Sep 2023, 01:06 PM

Hello William,

To hide the drawer button, you can use the DrawerButtonStyle property. This will allow you to set the Visibility property of the button.

<!--
xmlns:telerikPrimitives="using:Telerik.UI.Xaml.Controls.Primitives" 
xmlns:telerikDrawer="using:Telerik.UI.Xaml.Controls.Primitives.SideDrawer"
-->
<telerikPrimitives:RadSideDrawer.DrawerButtonStyle>
	<Style TargetType="telerikDrawer:DrawerButton">
		<Setter Property="Visibility" Value="Collapsed" />
	</Style>
</telerikPrimitives:RadSideDrawer.DrawerButtonStyle>

I hope that helps.

Regards,
Martin Ivanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

William
Top achievements
Rank 1
Iron
commented on 13 Sep 2023, 01:51 AM

Excellent. Thanks!
Tags
Buttons SideDrawer
Asked by
William
Top achievements
Rank 1
Iron
Answers by
Martin Ivanov
Telerik team
Share this question
or