0

I have a menu made of three radio buttons, each button for each page. Then I have 3 additional radio buttons on one of the pages.

The problem is when I checked one of the radio buttons on the page, and navigate to another page, and come back, then it is automatically unchecked.

Please help me with this buttons in the inside a page are here

                <RadioButton Content="ICE" Grid.Column="1" 
                 Tag="/TabMenu;component/images/ice.jpg" 
                 CommandParameter="ICE"
                 Command="{Binding ClickCommand}"
                 IsChecked="{Binding myVar, Mode=OneWay}"        
                 Style="{StaticResource SelectionMenuStyle}"
                 GroupName="B"
                 />
            <RadioButton Content="MSP" Grid.Column="3"
                 Tag="/TabMenu;component/images/msp.jpg" 
                 CommandParameter="MSP"
                 Command="{Binding ClickCommand}"
                 IsChecked="{Binding myVar, Mode=OneWay}"       
                 Style="{StaticResource SelectionMenuStyle}" 
                         GroupName="B"
                 />
            <RadioButton Content="BEV" Grid.Column="5"
                 Tag="/TabMenu;component/images/bev.jpg" 
                 CommandParameter="BEV"
                 Command="{Binding ClickCommand}"
                 IsChecked="{Binding myVar, Mode=OneWay}"
                 Style="{StaticResource SelectionMenuStyle}"
                         GroupName="B"
                 />

and Menu buttons are here

       <RadioButton Content="Format wechseln" 
                            CommandParameter="ChangeFormat"
                            Command="{Binding MenuCommand}"
                            Style="{StaticResource 
                            MenuButtonStyle}"
                            GroupName="A"
                            />
        <RadioButton x:Name="MontageButton" Content="Montage" 
                            CommandParameter="Montage"
                            Command="{Binding MenuCommand}"
                            Style="{StaticResource 
                            MenuButtonStyle}"
                            IsChecked="True"
                            GroupName="A"
                            />
        <RadioButton Content="Einrichten" 
                            CommandParameter="Einrichten"
                            Command="{Binding MenuCommand}"
                            Style="{StaticResource 
                            MenuButtonStyle}"
                            GroupName="A"
                            />
Yasir Ali
  • 1
  • 4

0 Answers0