I want to bind a command to the closed event of the sidedrawer. I added a command property "SettingsClosedCommand" to the viewmodel.
I added this namespace to the xaml:
xmlns:drawer="clr-namespace:Telerik.XamarinForms.Primitives.SideDrawer;assembly=Telerik.XamarinForms.Primitives"
And I added the 3 middle lines of code to the sidedrawer:
<telerikPrimitives:RadSideDrawer DrawerLength="180" DrawerLocation="Top" DrawerTransitionType="SlideInOnTop" IsOpen="{Binding AreSettingsOpen, Mode=TwoWay}" >
<telerikPrimitives:RadSideDrawer.Commands>
<drawer:SideDrawerUserCommand Command="{Binding SettingsClosedCommand}" Id="Closed"/>
</telerikPrimitives:RadSideDrawer.Commands>
<telerikPrimitives:RadSideDrawer.MainContent>
etc..
When I try to compile I get this error:
SeverityCodeDescriptionProjectFileLineSuppression State ErrorObject reference not set to an instance of an object.
I found the information here. What am I missing here? Is the namespace correct because it is not mentioned in the article?