I am trying to change background image on Windows Phone 8 project. And I am writing the following code in MainPage.xaml:
<phone:Panorama.Background>
<ImageBrush ImageSource="/PanoramaApp1;component/Assets/arka.png"/>
</phone:Panorama.Background>
But not changing the when I run.
What is my problem?
Thanks in advance.
(Sorry my language.)
Try setting the Layoutroot background to transparent.
And
<phone:Panorama.Background>
<ImageBrush ImageSource="/Assets/Tiles/arka.png"/>
</phone:Panorama.Background>
Related
I'm currently looking to implement a CommandBar for a WinRT Windows Phone 8.1 app. Overall it is very straightforward but I am unable to style the control.
I have themed my app so that the accent colour has been changed to green. This works well for pretty much everywhere in the app (buttons, textblocks etc.) but not for the AppBarButton.
The brushes I'm overriding are SystemColorControlAccentBrush and PhoneAccentBrush but changing these does not make any difference to the colour of the AppBarButton when pressed:
Any idea what I'm doing wrong/can this colour be changed?
Set the CommandBar's foreground and background colors.
The command bar on Windows Phone is system UI not app UI and does not allow customizing the colors of individual AppBarButtons. Their colors always come from the CommandBar's colors.
try changing app bar button color
<AppBarButton x:Uid="SendMessageButton" Icon="Send" Foreground="" Background="" Command="{Binding SendMessageCommand}" IsEnabled="{Binding IsSendMessageButtonEnabled}"/>
or change in code behind
AppBarButton app = new AppBarButton();
app.Foreground="";
app.Background="";
I am creating some WP8 app and I want to change foreground color of the most top bar where the clock and other icons like WiFi or telephone network range. I want to do something like in linkedin app where clock and others become blue. Like this:
Anybody knows how o do it?
You can change it in xaml, BTW it is called System Tray not top bar.
<phone:PhoneApplicationPage
...
xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
shell:SystemTray.IsVisible="True"
shell:SystemTray.BackgroundColor="Blue">
...
Hope this helped you
I have a Windows Phone 8.1 Application. I have a button with a ListPickerFlyout in it.
The color of my title regardless of the theme is always white. How do I change the color of the title so that it can adapt to the different themes?
<Button x:Name="myButton">
<Button.Flyout>
<ListPickerFlyout x:Name="myListPicker" PickerFlyoutBase.Title="HELLo">
</ListPickerFlyout>
</Button.Flyout>
</Button>
I might have overridden a themebrush to be always white which might be causing this issue. The solution I'm looking for is something that can help me make the color adaptable to the theme local to this particular file in which the button resides, it shouldn't affect other places/titles.
I would be very glad if someone can point me in the right direction. Thanks in advance.
I see that the Opacity attribute of the CommandBar makes trasparent its content when it is opened: however when it is closed it is not transparent (as it was the ApplicationBar in Windows Phone 8).
I would like to have a transparency like the one it is also now possible to set in the StatusBar.
Any suggestion?
Regards
Enso Contini
Random guess - perhaps you need to do this (somewhere in the app's initialization):
ApplicationView.GetForCurrentView().SetDesiredBoundsMode(ApplicationViewBoundsMode.UseCoreWindow);
It makes the page go "under" the app bar, and so if it has transparency, you'll be able to see the page through it.
I don't want to use the default grey backgruond color for my Splashscreen and Tile backgrounds. Where can I change this in Visual Studio?
Opening the "package.appxmanifest" file in your Solution Explorer will get you there as well :)
Just realize that this is done in the menu Project / Store / Edit App Manifest, and set the "Background color".