locked
Changing Menu item propertys(background, fontsize) inside a callisto flyout in windows 8 app

    Question

  • Hi,

    I am new to windows 8 develoment and i am using Callisto to create a flyout with a menu included:

     //creating object for a menu
                var menu = new Menu();

     var item1 = new MenuItem {  Text = "SWA Balancing"  };
                item1.Tapped += Methodcall;
                //creating item 2
                var item2 = new MenuItem { Text = "SWA Balancing" };
                item2.Foreground = new SolidColorBrush(Colors.Green);
                item2.SetValue(MenuItem.BackgroundProperty, new SolidColorBrush(Colors.Blue));
                //creating onnewbatch event
       //adding items to the menu
                menu.Items.Add(item1);
                menu.Items.Add(item2);

          var flyout = new Flyout();

      flyout.Content = menu;

              flyout.IsOpen = true;

    However i am unable to change the default style of menu item. Whatever code i try, the menu item background doesnot change. Can someone please help me how to change the background and foreground of Menu item.

    Thursday, September 4, 2014 6:48 AM

Answers

  • Hi Gaurav,

    I think you may ask code owner for how to customize the control. https://github.com/timheuer/callisto

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Friday, September 5, 2014 9:02 AM
    Moderator