windows-phone-8-sdk

Showing m.bing.com in the WP8 WebBrowser control

江枫思渺然 提交于 2019-12-20 04:11:13
问题 I'm having a problem getting bing.com to load in a WebBrowser control on Windows Phone 8. It seems that doing that will launch the WP8 Search App (same as pressing the Search button on the phone). The problem is, once you click a result in that search app, it doesn't take you back to your original app - it goes to IE to show the result. This isn't going to work for me and seems to be a massive flaw (IMO) in the WebBrowser behavior. There does seem to be a few apps out there that have

How can i receive the hardware key button event On Windows phone 8?

半腔热情 提交于 2019-12-13 19:25:16
问题 How can i receive the hardware key button event On Windows phone 8 App? I have many problem, The WP 8 is available features are very limited. The Windows CE / WM is a very different behavior. I want to access the OS Layer by the API (Function) Back button : Success. I found this key event. Home button : ??? (I don't know) Search button : ??? (I don't know) Volume Up / Down : Just working volume. Camera Key : Can i change the default camera app? http://msdn.microsoft.com/en-us/library

XAML is not updating when debugging on a WP8 device

你。 提交于 2019-12-13 12:06:50
问题 I am experiencing a problem when deploying to a Windows Phone 8 device. It seems the XAML is not updating when I do a build and debug. The only way it seems to update is when I do a Rebuild > Debug or uninstall the app then debug. Here is a scenario: A page contains a button with a click event named "Button_Click". I debug and everything works. Stop debugging. Now change the event handler's name to NewButton_Click (yes, in both xaml and cs). Start debugging again, click the button and you get

Getting “Windows Phone Emulator failed to send keyboard data.The Phone closed the connection.Some Functionality may be reduced”

♀尐吖头ヾ 提交于 2019-12-13 01:17:45
问题 Certain functions in WP8 emulatior isnt working like Back Button,Home Button,Accelerometer,ScreenShot function.Application is working.When clicking back button am getting error "Windows Phone Emulator failed to send keyboard data.The Phone closed the connection.Some Functionality may be reduced" For accelerometer am getting Windows Phone Emulator failed to send accelerometer data.The Phone closed the connection.Some Functionality may be reduced". Thanks In Advance 回答1: You should try out the

Toast Notification parameters in Windows Phone 8.1 Silverlight

泪湿孤枕 提交于 2019-12-12 08:27:31
问题 Okay so I'm using the new ToastNotificationManager in my 8.1 SL project instead of the old ShellToast. The ShellToast had NavigationUri on the toast message which made it really easy. In the new toasts you have to specify the launch parameters by yourself according to this article. However it seems like 8.1 SL doesn't have the event OnLaunched(LaunchActivatedEventArgs args) you are supposed to listen for in App.xaml.cs for the parameters: Step 2: Handle the app's "OnLaunched" event When the

XAML is not updating when debugging on a WP8 device

做~自己de王妃 提交于 2019-12-04 06:06:43
I am experiencing a problem when deploying to a Windows Phone 8 device. It seems the XAML is not updating when I do a build and debug. The only way it seems to update is when I do a Rebuild > Debug or uninstall the app then debug. Here is a scenario: A page contains a button with a click event named "Button_Click". I debug and everything works. Stop debugging. Now change the event handler's name to NewButton_Click (yes, in both xaml and cs). Start debugging again, click the button and you get an exception because there is no event handler name "Button_Click" The XAML changes were not detected

Toast Notification parameters in Windows Phone 8.1 Silverlight

偶尔善良 提交于 2019-12-04 01:45:18
Okay so I'm using the new ToastNotificationManager in my 8.1 SL project instead of the old ShellToast. The ShellToast had NavigationUri on the toast message which made it really easy. In the new toasts you have to specify the launch parameters by yourself according to this article. However it seems like 8.1 SL doesn't have the event OnLaunched(LaunchActivatedEventArgs args) you are supposed to listen for in App.xaml.cs for the parameters: Step 2: Handle the app's "OnLaunched" event When the user clicks on your toast or selects it through touch, the associated app is launched, firing its

Windows Phone 8 - reading and writing in an existing txt file in the project

会有一股神秘感。 提交于 2019-12-01 12:31:18
Hi i'm stucked in a problem, i created a txt file that i put on the app. I'm trying to read from it the content that i write on it before. With that code: public async Task WriteDataToFileAsync(string fileName, string content) { byte[] data = Encoding.Unicode.GetBytes(content); var folder = ApplicationData.Current.LocalFolder; var file = await folder.CreateFileAsync(fileName,CreationCollisionOption.ReplaceExisting); using (var s = await file.OpenStreamForWriteAsync()) { await s.WriteAsync(data, 0, data.Length); } } public async Task<string> ReadFileContentsAsync(string fileName) { var folder =

Windows Phone 8 - reading and writing in an existing txt file in the project

我的未来我决定 提交于 2019-12-01 10:26:06
问题 Hi i'm stucked in a problem, i created a txt file that i put on the app. I'm trying to read from it the content that i write on it before. With that code: public async Task WriteDataToFileAsync(string fileName, string content) { byte[] data = Encoding.Unicode.GetBytes(content); var folder = ApplicationData.Current.LocalFolder; var file = await folder.CreateFileAsync(fileName,CreationCollisionOption.ReplaceExisting); using (var s = await file.OpenStreamForWriteAsync()) { await s.WriteAsync

Visual Studio error: LNK1104: cannot open file 'kernel32.lib' - only in WP8 projects / Win32 builds

限于喜欢 提交于 2019-11-29 07:27:47
I ran into this problem recently (few days ago everything was working fine): Visual Studio 2012 started to refuse to build native WP8 projects. Today, I created new solution from template 'Windows Phone Direct3D App (Native Only)' to check if my newly created DLLs will be properly supported on WP. I tried to compile this project, first without any changes or additional references - pure code generated by VS. However, it failed with given error. I know very well what does it mean and what could be the possible reason, but I can't understand, hovewer, where does it come from in this case. Weird