w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
  Home » WINDOWS PHONE 8 » Page 1
Windows phone home button press functionality
If you press the home button as you said, your app will go to the background, so when you resume it, it will open to the page you were at last time. Resuming a app, is as normal as it can, neither slow nor fast.

Categories : Windows Phone 8

Windows Phone 8 with Caliburn.Micro 2.0
It is the same as using Caliburn.Micro 1.5.x from all the tutorials. The sample for WP7 also applies to WP8: https://github.com/Caliburn-Micro/Caliburn.Micro/tree/master/samples/Caliburn.Micro.HelloWP71

Categories : Windows Phone 8

How to do app content presentation in Windows Phone
There are quite a lot of Apps on the store that present you with an intro on how they work when you launch them the first time. 4Blend HDR would be an example of such an App as would several of the Imaging Apps Nokia provides. I suggest to take a look at those samples to see how they deal with the issue. I'm not aware of a ready made control for this but to me it looks like separate pages contai

Categories : Windows Phone 8

Passing POST parameters to background transfer request in windows phone 8
// server to POST to string url = "myserver.com/path/to/my/post"; // HTTP web request var httpWebRequest = (HttpWebRequest)WebRequest.Create(url); httpWebRequest.ContentType = "text/plain; charset=utf-8"; httpWebRequest.Method = "POST"; // Write the request Asynchronously using (var stream = await Task.Factory.FromAsync<Stream>(httpWebRequest.BeginGetRequestStream,

Categories : Windows Phone 8

WP 8.1 backward compatability to WP8
If you use features which target 8.1, they won't work on 8.0. If 8.0 is of such importance you need to build both versions and verify that they work. Frankly since most windows phone users can easily and cheaply upgrade their phone, if not OS to 8.1, I would only program for version 8.1 and not concern myself with a legacy market which is only getting smaller every day.

Categories : Windows Phone 8

How to add upload request property in background Transfer for windows phone 8?
You can set the Headers in the `BackgroundTransferRequest.Headers Property` It is basically a Dictionary<string, string> So you can .Add(key, value) to it MSDN Link Be careful, it looks like there are some header keys that are reserved.

Categories : Windows Phone 8

WP8.1 Appbar HideCommands Issue
Same thing happened to me. I used to think having only one AppBar would be better than creating one for every page so I had the same approach you did using the showOnlyCommands. That worked fine on Windows 8 (& 8.1) but definitely does not work as expected in WinPhone 8.1 So what I ended up doing is having my AppBar markup in every page I where needed an AppBar. <div data-win-control="Win

Categories : Windows Phone 8

The component cannot be found. (Exception from HRESULT: 0x88982F50) when setting stream to bitmapimage in windows phone 8 app
Why don't you use the SaveJpeg extension methodoogy in creating the byte array? This one might help you! Windows Phone - byte array to BitmapImage converter throws exception

Categories : Windows Phone 8

Disable action center WinJS
You need to do two things: Hide the status bar via StatusBar.hideAsync method Disable system overlays via the ApplicationView.suppressSystemOverlays property. You need to do both things to minimize the Action Center popup thing.

Categories : Windows Phone 8

System access violation error in listpicker Wp8
Most likely because your ListPicker.SelectedItem is null. Check that first before you try to do any actions on it. The SelectionChanged will fire regardless if you have any items in the ListPicker on Loaded. private void AppNamePicker_SelectionChanged(object sender, SelectionChangedEventArgs e) { ListPicker picker = sender as ListPicker; if (picker.SelectedItem != null) { if

Categories : Windows Phone 8

In Landscape swiping not working in Windows Phone 8 app programatically
here is code for DisplayOrientations . public Pivot() { InitializeComponent(); Loaded += pivot_Loaded; this.navigationHelper = new NavigationHelper(this); Windows.Graphics.Display.DisplayInformation.AutoRotationPreferences = Windows.Graphics.Display.DisplayOrientations.Landscape; Windows.Graphics.Display.DisplayInformation.AutoRotationPreferences = Wind

Categories : Windows Phone 8

while progress bar is running how to disable other controls of the page in WP8
Try this way, Create a empty grid behind the Progress Bar that cover the whole screen and set its opacity of say 0.5 so that background is paritially visible. <Grid Grid.Row="0" x:Name="GrdProgressBar" Background="Transparent" > <Grid Background="White" Opacity="0.5"></Grid> <StackPanel VerticalAlignment="Center"> <ProgressBar IsIndetermina

Categories : Windows Phone 8

AdMob for Windows Phone 8 FailedToReceiveAd NetworkError
Select the mandatory and optional capabilities for your app. You can modify your app's capabilities by opening WMAppManifest.XML and selecting the Capabilities tab. Also check adRequest.ForceTesting = true; it must be false

Categories : Windows Phone 8

Image UniformFill centered
You need to remove Width and Height of your Image - you want it to fill the container so it should use container's properties. Also if you want it to be centered then you need to define VerticalAlignment (and maybe horizontal one). I think what you are looking for is: <Border BorderThickness="2" Width="180" Height="101" Grid.RowSpan="2" VerticalAlignment="Top"> <Image Source="{Bind

Categories : Windows Phone 8

Fixed pivot header item?
Hope this is what you're looking for? Tabbed interface with Pivot animation for Windows Phone

Categories : Windows Phone 8

Deploy to device fails when app is installed from store
I found that I experienced this error when I went to do some further work on our app a few months after I added an In-App purchase. It seems that in order to test the in-app purchases, I had to set the ProductID in the WMAppManifest.xml file to be the same as that of our live app. This makes the in-app purchasing testing work, but then fails with the above error the next time you want to deploy

Categories : Windows Phone 8

Is there a radial timepicker UI Control for Windows Phone 8?
I don't know of anything that is designed to do this out of the box. Telerik and Syncfusion (and likely others) have radial gauges that you could likely modify to make this. Syncfusion also has a RadialMenu, which looks similar to what you are trying to do, but I can't speak for how flexible it is. http://www.telerik.com/help/windows-phone/radgauge-ranges-radialrange.html

Categories : Windows Phone 8

Which usage is best for adding TileTask to ScheduledActionService for WP?
In all applications I have used LiveTiles in, I used the example provided my Microsoft for working with tiles. In that sample, they remove the existing task agent before recreating it, just like your code above. I would do that. I realize there are cases where the samples Microsoft provides are completely against accepted best practices, but in this case, I believe that the sample is correct (an

Categories : Windows Phone 8

Deploy WP8 app to device and save all its settings after rebuilding the project
Try IsoStoreSpy. It allows you to browse the IsolatedStorage of application on both emulator and device. You need to copy all the files from IsolatedStorage and upload them to device after updating the application.

Categories : Windows Phone 8

How to determine if Bluetooth is turned on on Windows Phone 8(.1)
Did you try using the BluetoothConnectionStatus, to check the indication whether the Bluetooth is turned on? Check these out: Windows Phone 8 Bluetooth Error HRESULT: 0x8007271D How to check status of bluetooth in Windows Runtime?

Categories : Windows Phone 8

Copy SDF file from WP8 device
You can write the database file to the SD Card. MSDN : SD Card Example : Make sure you have removableStorage capability in app manifest. You also might need to associate your app to handle the file extension you want to copy to the SD Card. MSDN : File associations Let me know how it goes or if you need more help.

Categories : Windows Phone 8

Programmatically Create Folder/ Directory in Windows Phone 8/8.1
here it is sample code to do that using System.IO; using System.Threading.Tasks; using Windows.Storage; and than to create folder StorageFolder folder = await ApplicationData.Current.LocalFolder.CreateFolderAsync ("myFolder", CreationCollisionOption.ReplaceExisting); see complete example here

Categories : Windows Phone 8

How to precisely calculate scroll speed of ScrollViewer?
I replaced ScrollViewer with ViewPortControl. Now instead of VerticalOffset in scrollviewer, I can do the same with ViewPortControl.ViewPort.Top I just had to make sure that Bounds are correct in ViewPortControl

Categories : Windows Phone 8

IsolatedStorage Edit in Windows Phone ScheduledTask
I've fixed it with delete file. Mutex mut; if (!Mutex.TryOpenExisting("IsoStorageMutex", out mut)) mut = new Mutex(false, "IsoStorageMutex"); mut.WaitOne(); using (IsolatedStorageFile file = IsolatedStorageFile.GetUserStoreForApplication()) { if (file

Categories : Windows Phone 8

Append contacts in contact list in WP8
SaveContactTask class is designed to add only one contact at a time and Show() function is asynchronous. You can't add second contact until the first call will be finished. Your code should be rewritten to react on saveContactTask.Completed += new EventHandler<SaveContactResult>(saveContactTask_Completed); event and start adding the second(etc) contact only when the previous is finished. The

Categories : Windows Phone 8

Scaling a 1920 * 1080p photo to be the lock screen image on a 1080p Windows Phone
Okay, this was silly. In the lock screen user control's xaml I just had to increase the height of the Grid's final row: <Grid.RowDefinitions> <RowDefinition Height="auto"/> <RowDefinition Height="0"/> <RowDefinition Height="30"/> <RowDefinition Height="160"/> <RowDefinition Height="18"/>

Categories : Windows Phone 8

arduino(microusb) and windows phone 8/8.1
No, you would need a USB serial driver and that's not something you're likely to find on a consumer phone. You may have some luck using a Microsoft Windows Embedded 8.1 Handheld for Mobile Rugged Industrial, Commercial, Automotive, and POS Mobile Enterprise Applications.[1] But you'll want to verify support with the manufacturer. [1] Named by committee

Categories : Windows Phone 8

How to open the Windows Store page for a specific WP app from a WP8 app (MarketplaceDetailTask?)
Just use the MarketplaceDetailTask with the guid of the app you want to show var marketplaceDetailTask = new MarketplaceDetailTask(); marketplaceDetailTask.ContentIdentifier = "d1a235ce-...-040e"; marketplaceDetailTask.ContentType = MarketplaceContentType.Applications; marketplaceDetailTask.Show();

Categories : Windows Phone 8

JsonConvert a json with a list<> element WP8
Just remove the [DataContract] and [DataMember] attributes, they do not mix well with Json.NET. Or you can do the deserialization "manually" var j = JToken.Parse("{ "Msg": "Success", "ProjectList": [ { "ID": "/Date(1400120100000-0700)/" }, { "ID": "/Date(1404260520000-0700)/" } ] } "); var resp = new Response { msg = j.SelectToken("Msg").ToString(), ProjectList = ((JArray) j.SelectToken(

Categories : Windows Phone 8

how to configure windows phone to receive wns push notification
i have developed application and need to upload beta version. in my application need to set Package SID,Application identity,Client ID,Client secret I'm not sure what exactly you are talking about. Please be more specific and detailed about what do you require help with. All that I understand is that you want to implement Push Notification in Windows Phone. For that, have a look at the fol

Categories : Windows Phone 8

Windows phone 8, Check if wifi is on?
In WP8.1 runtime you can query most of this stuff from NetworkInformation class like so: // need this namespace using Windows.Networking.Connectivity; bool is_wifi_connected = false; ConnectionProfile current_connection_for_internet = NetworkInformation.GetInternetConnectionProfile(); if (current_connection_for_internet.IsWlanConnectionProfile) { if (current_connection_for_interne

Categories : Windows Phone 8

How to make horizontal dropdown menu like this in WP
You will probably need to build the Control yourself. You can make a Composite Control consisting of a <Button> and a <ListBox> to emulate what you're trying to do. It is actually pretty easy. For example: <Button Content="{Binding SelectedItem.Song, FallbackValue=Show List, ElementName=myListBox}" Height="100" Click="Button_Click"></Button> <ListBox x:Name="myListB

Categories : Windows Phone 8

How to set a background image by code on windows phone?
This code works in a blank silverlight app in Windows Phone 8. In Xaml: <Grid x:Name="LayoutRoot" > <Grid.Background> <ImageBrush ImageSource="/Assets/boy.png" Stretch="UniformToFill" /> </Grid.Background> <Button Content="Change" Click="Button_Click" /> </Grid> and in the code behind: private void Button_Click(object sender, RoutedE

Categories : Windows Phone 8

Selection Changed Event is Rising when I clicked on Click Event handler
When you change the ItemsSource, the SelectionChanged event is raised. I think whenever you change the ItemsSource, the selection is reset (that is - set to null (none selected)). And that's how it should be, otherwise an item that's not in the ItemsSource could be the SelectedItem which is just wrong. Now, to fix your issue, just check if SelectedItem != null in itemsList_SelectionChanged method

Categories : Windows Phone 8

0% Impression CTR in Application
So your CTR is a bit under 0.2%. That is very low. One of the reasons it could be low is if you are asking for ads very frequently. What is your refresh rate? I find it best to use something around 60 seconds.

Categories : Windows Phone 8

Playing buffer, windows phone 8
You need to call the FrameworkDispatcher.Update. Same answer as here should work: Playing a sound from a generated buffer in a Windows phone app

Categories : Windows Phone 8

WebView Databinding only updating once
I have found a way to get it to update but I don't like it at all. I have updated the OnBindingContextChanged to detect when the property is changed, then rebind it to a new source. It works but if anyone has a better way or why this is happening in the first place please let me know. /// <summary> /// FIX: Due to bug https://bugzilla.xamarin.com/show_bug.cgi?id=21699 /// </summary>

Categories : Windows Phone 8

Populate ScrollView at runtime in WIndows Phone 8
I think LongListSelector works for you, but you should edit DataTemplate for your needs. <phone:LongListSelector ItemsSource="{Binding ArticleList}"> <phone:LongListSelector.ItemTemplate> <DataTemplate> <StackPanel Orientation="Horizontal"> <TextBlock Text="Title:" /> <TextBlock Text="{B

Categories : Windows Phone 8

How can I use XmlNode and XxmlNodelist in Windows Phone 8?
What should I do? You should use LINQ to XML (XDocument etc) instead. It's a far superior XML API. Once you've ported your code to use it, ditch the XmlNode (etc) code entirely - use LINQ to XML in both your desktop and mobile code. Unless you really need to use .NET 3.0 or earlier, you should (IMO) try to avoid ever using XmlDocument and friends again. (Some of the types like XmlReader are

Categories : Windows Phone 8




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.