application-bar

How can you prevent the ApplicationBar flickering on the WP7 white theme?

心已入冬 提交于 2020-01-01 08:59:11
问题 I have a Windows Phone 7.1 Mango application where I have mostly successfully overridden the built in theme colors. However, if the user has the white theme selected and the page has a dark background and dark application bar, the application bar gets rendered and animated with a white background which causes an annoying flicker. After it gets done animating the background color gets sets to a dark color appropriately. Is there a way to either disable the app bar animation or set its initial

Expand application bar in Windows Phone 7 app from code

会有一股神秘感。 提交于 2019-12-25 12:13:41
问题 I need to know if there is a way to expand the application bar in Windows Phone app from code. Here is a demo of the application bar states: 回答1: Even though there is no API for 3rd party developers to do this, the application bar is a bit of an oddity on WP7. If you view a picture full size in the picture hub it will automatically expand the menu for you. Perhaps this is a UI mistake or perhaps we'll all gain access to this API in a future update. It's worth checking back on. 回答2: No, there

ApplicationBar is always NULL

北战南征 提交于 2019-12-23 07:03:42
问题 I have the following XAML code: <phone:PhoneApplicationPage.ApplicationBar> <shell:ApplicationBar IsVisible="True" IsMenuEnabled="False" x:Name="PageBar"> <shell:ApplicationBarIconButton IconUri="/Assets/Icons/appbar.questionmark.rest.png" Text="Help" x:Name="HelpIcon" Click="HelpIcon_Click" /> <shell:ApplicationBar.MenuItems> <shell:ApplicationBarMenuItem Text="Help" x:Name="HelpItem" Click="HelpIcon_Click" /> <shell:ApplicationBarMenuItem Text="About" x:Name="AboutItem" Click="AboutItem

Programmatically changing the appbar icons

不问归期 提交于 2019-12-22 07:00:04
问题 In my C# Windows Phone 8 app, I have an AppBar. I have two icons on this AppBar, one new icon, and one edit icon. I want to change the edit icon, to the back icon whenever it is pressed, and then back to the edit icon whenever it is pressed again. I have tried this code, but I get a nullReferenceException: public static Uri addIcon = new Uri("/Assets/AppBar/new.png", UriKind.Relative); public static Uri backIcon = new Uri("/Assets/AppBar/back.png", UriKind.Relative); //Edit the projects if

Windows Phone Application Bar TextBox

删除回忆录丶 提交于 2019-12-12 02:47:01
问题 I was wondering, if it is somehow possible to add a TextBox in the Application Bar area (the same way the Internet Explorer does), but I didn't find any information source about this. Have you any idea, how to accomplish this task? 回答1: You will not be able to add UIElements inside ApplicationBar as it is not derived from UIElement. Alternatively, you can try adding a Grid at the bottom of the screen and color it similar to the ApplicationBar. Then add a TextBlock inside the Grid. This is

Disable/Enable applicationbar Button in runtime with event textchanged (Windows Phone)

柔情痞子 提交于 2019-12-11 14:53:04
问题 In this part of the code is the event TextChanged to enable the button in te applicationbar. C#: private void Textbox_TextChanged(object sender, EventArgs e) { ApplicationBarIconButton btn_guardar = ApplicationBar.Buttons[0] as applicationBarIconButton; if (!string.IsNullOrEmpty(txt_nom_usuario.Text) && !string.IsNullOrEmpty(txt_edad_usuario.Text) && !string.IsNullOrEmpty(txt_peso_usuario.Text)) { btn_guardar.IsEnabled = true; } else btn_guardar.IsEnabled = false; } XAML: <phone

Failed to assign to property when adding new ApplicationBarMenuItem icon

余生颓废 提交于 2019-12-10 18:34:01
问题 I've added a new ApplicationBarMenu button with icon to a page in my wp7 project. when trying to run the page i get : Failed to assign to property 'Microsoft.Phone.Shell.ApplicationBarIconButton.Click'. [Line: 56 Position: 124] Which points to the new menu item button i have added (the second one, send_report_button ): <phone:PhoneApplicationPage.ApplicationBar> <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True"> <shell:ApplicationBarIconButton x:Name="take_photo_button" IconUri="

WinPhone 8 AppBar icon size

自作多情 提交于 2019-12-09 16:28:37
问题 The guide for Windows Phone 8 app bars states that AppBar button icons should be 48x48px. It also says that a bunch of sample icons can be found in C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\Icons . But the images in there are 76x76px. And they work fine, at least on the emulator they do. So what's the proper size? 回答1: So what's the proper size? 76x76, because then you support higher resolutions. If you use 48x48, it'll be scaled up for WXGA and 720p, rather than down (for WVGA

How to Change the Color of Application Bar Buttons when Pressed

别来无恙 提交于 2019-12-05 04:03:27
问题 An interesting question, I was wondering if it is possible to theme the application bar buttons in Windows Phone 8 to use another color other than the current accent color as the background of the button when pressed. I am currently creating my app bar in code behind in my test application. Are there any suggestions of how to do this? I have not yet found a resource online anywhere. Essentially what I have right now is a very simple app bar for testing purposes. MainPage.xaml.cs private void

WinPhone 8 AppBar icon size

倾然丶 夕夏残阳落幕 提交于 2019-12-04 03:39:49
The guide for Windows Phone 8 app bars states that AppBar button icons should be 48x48px. It also says that a bunch of sample icons can be found in C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\Icons . But the images in there are 76x76px. And they work fine, at least on the emulator they do. So what's the proper size? Claus Jørgensen So what's the proper size? 76x76, because then you support higher resolutions. If you use 48x48, it'll be scaled up for WXGA and 720p, rather than down (for WVGA), with the quality being slightly worse. The factor is roughly 1.6, which is the same as