how to set applicationbar opacity from code behind

I have been attempting to set the applicationbar on my MainPage in the code behind based on a slider bar that the user may control at will. I have a lot of information in my applicationbar so I created it in xaml, except for the opacity which should change depending on the values of the slider. I am unsure though of how to access the MainPage applicationbar opacity from the codebehind?

Answers


Try this:

 ApplicationBar = new ApplicationBar();
 ApplicationBar.Opacity=0.5;
 ApplicationBar.IsMenuEnabled = true;
 ApplicationBarIconButton button1 = new ApplicationBarIconButton(new Uri("/Images/appbar.feature.search.rest.png", UriKind.Relative));
 button1.Text = "Search";
 ApplicationBar.Buttons.Add(button1);
 ApplicationBarMenuItem menuItem1 = new ApplicationBarMenuItem("MenuItem 1");
 ApplicationBar.MenuItems.Add(menuItem1);

Need Your Help

Camel netty component: Failed to create selector

java sockets apache-camel netty nosuchmethoderror

I am trying to use netty to consume bytes out of a tcp socket. I am using Apache Camel 2.12.1, Spring DSL and Windows. My route is pretty simple:

SQL Order by using the values from two different columns

java sql oracle hibernate sql-order-by

Suppose I have a table NAME with the columns PART_TYPE and VALUE. Each type can have multiple types like FAMILY, GIVEN, PREFIX, etc.