transparent - Windows Phone 8 ApplicationBar expanded unchangable transparancy -


following code...

<!--navigation-bar--> <phone:phoneapplicationpage.applicationbar>     <shell:applicationbar isvisible="true" foregroundcolor="white" ismenuenabled="true" backgroundcolor="#002b55">         <shell:applicationbariconbutton click="b_search_click" iconuri="images\pic_search.png" text="search"/>         <shell:applicationbariconbutton click="b_media_click" iconuri="images\pic_media.png" text="media"/>         <shell:applicationbariconbutton click="b_scan_click" iconuri="images\pic_scan.png" text="scanner"/>         <shell:applicationbariconbutton click="b_charts_click" iconuri="images\pic_charts.png" text="charts"/>         <shell:applicationbar.menuitems>             <shell:applicationbarmenuitem click="b_logout_click" text="logout"/>         </shell:applicationbar.menuitems>     </shell:applicationbar> </phone:phoneapplicationpage.applicationbar> 

gives me following applicationbar...

http://s14.directupload.net/file/d/3341/4xiadbvz_jpg.htm (solid background when expanded)

but if create appbar in codebehind this...

 private void resetapplicationbar()         {             applicationbar = new applicationbar();             applicationbar.backgroundcolor = color.fromargb(150, 0, 43, 85);;             applicationbar.foregroundcolor = colors.white;             applicationbar.opacity = 1;              applicationbariconbutton b_search = new applicationbariconbutton();             b_search.iconuri = new uri("/images/pic_search.png", urikind.relative);             b_search.text = "search";             applicationbar.buttons.add(b_search);             b_search.click += new eventhandler(b_search_click);              (more buttons...) 

then misterios unchangable transparency...

http://s1.directupload.net/file/d/3341/zjo57e37_jpg.htm (half-transparent when expanded)

how can change background solid??? -yes have overwritten theme -changing global colors doesnt work -changing background/foreground doesnt work -changing opacity doesnt work...

i need generate code behind because im changing dynamically in 1 window (or possible define multiple appbars in markup?)

thanks in advance!

please try 1

applicationbar.backgroundcolor = color.fromargb(52,0,2,181); applicationbar.foregroundcolor = colors.white; 

you same color in designer page way.

this (52,0,2,181) conversion value of #002b55


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -