Sidebar closing issue


I need help to close my sidebar with a click on a menu item inside the sidebar. Ive already seen this one

but it couldnt help me very much.

Sooo, I know that the sidebar starts opened, for this testcase it is exactly how I want it to be. When I push on the button which is declared inside the sidebar my page(content) changes as requested. It even goes into the javascript function and changes the string into an empty one, but the sidebar doesnt change its Active state into nothing. That means maybe the string does, but it shows no reaction.
Anyway, this is my code Ive written so far:

<App Theme="Basic">

    <EdgeNavigator ux:Name="EdgeNavigator"  Active="{activePage}">
            var Observable = require("FuseJS/Observable");
            var activePage = Observable("menu");

            function deactivateMenu() {
                debug_log(activePage);    //This is for testcases, if the buttonpush works at all

        module.exports = {
            activePage: activePage,
            deactivateMenu: deactivateMenu
        <!-- Add a panel to the left edge -->
        <Sidebar Width="250" ux:Name="menu" EdgeNavigation.Edge="Left">
                <Change mainAppTranslation.X="250" />
                <!-- Change to cross out -->
                <Change topMenuTranslation.Y="0" />
                <Change bottomMenuTranslation.Y="0" />
                <Change middleRectangle.Opacity="0" Easing="CircularOut" />
                <Change topMenuRotation.Degrees="45" Easing="ExponentialIn" />
                <Change bottomMenuRotation.Degrees="-45" Easing="ExponentialIn" />
                <Change topRectangle.Width="28" />
                <Change bottomRectangle.Width="28" />
        <Button ux:Name="home" Alignment="Left" Width="250" Opacity="1" IgnoreStyle="true"
                        Padding="20,0,0,0" Height="50" HitTestMode="LocalBounds" Clicked="{deactivateMenu}">

                    <StackPanel Orientation="Horizontal">

                        <Image File="assets/icon/Chat.png" Height="20" Color="#fff" Dock="Left"/>
                        <Text TextAlignment="Center" Alignment="Center" Margin="10,0,0,0"
                              FontSize="20" TextColor="#fff" Dock="Right">HOME</Text>
                    <Scale Factor="2" Duration="0.2"/>

                        <Set myPages.Active="page2" />
                        <Change EdgeNavigator.Active="{activePage}" />

anybody please help to solve this

Did you try the suggestion here?

If you did and it still doesn’t work then please share the relevant part of your code so that we can work out what goes wrong.