WP7: access StatusBar in WP8 - windows-phone-7

I am developing application that targets WP7 using Windows Phone 8 SDK so it is also compatible with WP8.
The problem I am facing is that the Status Bar on 720P Emulator is very tall.
Here is the xaml I use:
<phone:PhoneApplicationPage ...
shell:SystemTray.BackgroundColor="{StaticResource HeaderBackgroundColor}"
shell:SystemTray.IsVisible="True"/>
And here is the result
If I add transparency to make the status bar shorter I get a black rectangle.
<phone:PhoneApplicationPage ...
shell:SystemTray.BackgroundColor="{StaticResource HeaderBackgroundColor}"
shell:SystemTray.Opacity="0.99"
shell:SystemTray.IsVisible="True"/>
My question is:
Is there a way to change the color of the black space (I guess there is no way to remove it without targeting WP8 only) ? May be using reflection ..

Try doing it programmatically in your cs as following:
SystemTray.BackgroundColor = Colors.Blue;
SystemTray.ForegroundColor = Colors.DarkGray;
SystemTray.IsVisible = true;
For more you could have a look at this:
Change System Tray Color Windows Phone
Hope it helps!

You can change SystemTray background color
shell:SystemTray.IsVisible="True"
shell:SystemTray.BackgroundColor="Red"
Or you can Hide SystemTray
shell:SystemTray.IsVisible="False"

Related

Transparent Label Control in Flexgrid VB6

I have searched and tried to make transparent label on visual basic 6 but still can not, i also tried using (trlbl.dll) the result also can not transparent, i also tried using windows API and still can not, I want the label to be above flexgrid and its font looks transparent?
You can do this with a UserControl that is setup to be transparent, you'll just need to place your labels onto it to show your text. See here for more details:
https://msdn.microsoft.com/en-us/library/aa241732(v=vs.60).aspx

How to set background color of toolbar in windows phone using xamarin.forms?

I want to set the background color of the application bar blue.how can i do it in xamarin.forms? Do I have to write the native code for the same how to do that?
I found the answer of my question myself.
In the native windows phone 8.1 app in MainPage.xaml write the following code:
<Page.BottomAppBar>
<CommandBar Background="#0073b5" Foreground="White">
</CommandBar>
</Page.BottomAppBar>

How can I detect landscape orientation in a WP7 template using SketchFlow?

I am using the official Windows Phone 7 SketchFlow template, based on the Windows Phone SDK. Is there any way to detect when the user has clicked the landscape orientation button in the player, and act accordingly? Specifically, I'd like to display completely different views depending on orientation. Thank you!
It looks like the portrait and landscape functionality is implemented with visual states. If you select the correct visual state and make your changes (such as showing different controls) it should work the way you want.

Is it possible to add textBlock to windows phone 7 Applicationbar

In my ebook app, I wanted to show current page number as as textBlock on Application bar.
I couldn't find a way to add textBlock to the application bar.
Unfortunately you cannot modify the application bar itself. To build something like you'd need to create your own application bar style control.
I'm not entirely sure if this is a good thing because it would be inconsistent with the rest of the phone and could possibly violate some style guides.
You can also check this: Bindable Application Bar Extensions for Windows Phone 7

Windows Phone 7 - Silverlight Checkmark color

Can anyone tell me how I can change the color of my checkmark for a checkbox in Silverlight for Windows Phone 7 development?
I see some references on the web for changing a template but that is more for WPF or SilverLight apps, not WP7.
Right now I have a white background on my stackpanel and my background for my checkboxes are black. It would be sweet to make the checkmark white.
Any ideas?
UPDATE:
I should mention that I'm creating these checkboxes in the code behind (via a loop), and I'm using VS 2010 for my phone app development.
The Answer:
Thanks to Mick who lead me down the right path. I had to fiddle with it a little but I used MS Blend to create my own style and then I copied the XAML from there and put that style XAML in the App.xaml in between the tags.
Then I applied it in my code behind like this:
chk.Style = (Style)Application.Current.Resources["CheckBoxStyle1"];
You can access this by retemplating the control in Blend.
Target the check box.
Right click
Edit Template
Edit a Copy
Drill down to the CheckMark path
Change it's colour

Resources