Menu
  • HOME
  • TAGS

Application configuration files for Windows Universal app

windows-phone-8,windows-store-apps,windows-universal

No direct equivalent, you need to create something similar by yourself.

Can we customize the default style of hub or panorama app

windows-phone-8,panorama-control

i would just create a custom header <phone:PhoneApplicationPage.Resources> <Style x:Key="ItemHeaderCustomStyle" TargetType="TextBlock"> <Setter Property="FontSize" Value="44"/> <Setter Property="Margin" Value="-12,24,30,0"/> <Setter Property="CharacterSpacing" Value="-35"/> <Setter Property="Foreground" Value="#EEEEEE"/> <Setter Property="HorizontalAlignment" Value="Center"/> <Setter Property="VerticalAlignment" Value="Center"/> </Style>...

How to hide “Phone is plugged in and battery is fully charged” icon

c#,windows-phone-8

As I know, there is no such possibility in the public API. Only API for OEM....

How to bind a textblock visibility to another textblock text property

c#,xaml,windows-phone-8,windows-phone-8.1,winrt-xaml

Using Converters You can achieve this In xaml <TextBlock x:Name="TB" Text="Text"/> <TextBox Visibility="{Binding ElementName=TB,Path=Text,Converter={StaticResource StringToVisibilityConverter}}"/> And Corresponding converter in c# code is public class StringToVisibilityConverter: IValueConverter { #region IValueConverter Members public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { return string.IsNullOrEmpty((string)value)?Visibility.Collapsed:Visibility.Visible; }...

Is there a way to implement a wcf service connected to a database without paying for azure?

database,wcf,azure,windows-phone-8

Here are some interesting articles about WCF Services in Windows Phone world. How to consume an OData service for Windows Phone 8 Using WCF Service in Windows Phone 8.1 (same in Windows Phone 8) Now you can host the WCF Service in your own server, hosting provider or anything else....

Windows Phone local toast notification Text wrapping and image is not showing

c#,windows-phone-8,windows-phone,windows-phone-8.1,toast

There is no way around this. Windows Phone 8.12 supports only the toastText02 template. This template displays the app's logo along with two strings on the same line, with the first string bold. See the toast template catalog for details and an example image....

Receiving shared content using windows phone 8.0

c#,windows-phone-8,windows-phone-8.1,windows-phone-8-emulator

Not possible with 8.0, only with 8.1.

Ellipsis inside button content Windows Phone

xaml,c#-4.0,windows-phone-8,windows-phone-8.1

You should have some options. If it's just at the instance, you can just plop your content in as TextBlock so something like; <Button> <Button.Content> <TextBlock Text="Blah Blah Blah" TextTrimming="WordEllipsis"/> </Button.Content> </Button> Or if you make a custom style template for Button you could replace the ContentPresenter in it with...

WP8 platform on Cordova cannot run: CordovaBrowser_NavigationFailed

cordova,windows-phone-8,visual-studio-cordova,cordova-cli

Cordova 5.0.0 hasn't been tested on VS 2013 Update 4. If you want to use 5.0, you should download VS 2015 RC and refer to Known Issues section for Cordova 5.0 . Thanks.

Text input focus issue on Windows Phone (Universal) with Cordova

cordova,windows-phone-8,win-universal-app,hybrid-mobile-app,visual-studio-cordova

Upgrading Cordova to version 5.0.0 resolved this problem. ...

How to change listpicker dropdown ItemTemplate background?

xaml,windows-phone-8,listpicker

So your issue was that you were attempting to apply an image to an item. When you needed to hit the control itself that the items populate via ItemsPresenter so by pulling out the default style template for the control, and either making a place to pass in your image...

How reliable is DeviceNetworkInformation.IsNetworkAvailable?

c#,windows-phone-8,network-connection

DeviceNetworkInformation.IsNetworkAvailable will result in true if the user is connected to Wifi or has Mobile Data turned on. This does not guarantee that the Wifi is connecting phone to the internet. Or in case of Mobile Internet the phone could be connected to a 2G network which sometimes is not...

Have a function as a property in ViewModel

c#,wpf,windows-phone-8

If your ProfileParams_Call is the same in every case, then just use the built in delegate type Func<T> to hold a function that returns type T. Since the call is async, it will return a Task<T>. Example. If ProfileParams_Call returns an object, and takes no arguments it would be: public...

List won't display it's content

c#,list,button,windows-phone-8

In addition to fixing how you set your properties you also have an issue with the start and end times. openShop.Add(new Shop("ill forno", DayOfWeek.Tuesday, new TimeSpan(18, 0, 0), new TimeSpan(00, 0, 0), "ermoupoli", "pizza")); openShop.Add(new Shop("Η ΣΥΡΑ", DayOfWeek.Sunday, new TimeSpan(12, 0, 0), new TimeSpan(00, 0, 0), "ermoupoli", "pizza")); openShop.Add(new Shop("ΠΙΤΑΚΙ",...

Changing an image's source in Windows phone

c#,windows,windows-phone-8

You should provide the full path to your file starting with "ms-appx:///". tactImgList[0] = new BitmapImage(new Uri(@"ms-appx:///Assets/Images/1.png"); ...

Windows Phone Offline routing

c#,windows-phone-8,windows-phone-8.1,bing-maps,bing-api

You don't need the key to show offline map. If you have map downloaded on your device, then offline routing should work. You can see the sample to get more details. Following is the quote from msdn sample, However, mapping services also work without Internet connectivity when maps are downloaded...

How to achieve that design in windows phone

windows-phone-8

Stack Panel in a Scroll viewer. That Stack Panel can then have n rows of horizontally oriented sub-Stack Panels, and each one of those can have a text block for each cell. You can try data binding as well. How many rows of data will be displayed?

update listbox item when item is tapped

c#,wpf,xaml,windows-phone-8,listbox

You can achieve it with few ways: 1) Inherit you custom class from INotifyPropertyChanged public class MemberUser : INotifyPropertyChanged { public int member_id { get; private set; } public String first_name { get; private set; } public String last_name { get; private set; } public string fullName { get {...

Circular progress bar in windows phone 8

c#,xaml,windows-phone-8,progress-bar

Looks like the listed properties have no getter. Make sure to add one before referencing them in the XAML.

Deserializing JSON Array with JSON.net

c#,json,windows-phone-8,windows-phone,json.net

Your JSON represents an array, not an object, so use JArray.Parse instead: JArray EPAData = JArray.Parse(b.Result); foreach (var UVIndex in EPAData) { Console.WriteLine (UVIndex["UV_VALUE"]); // 0, 1, 1, etc. } Example: https://dotnetfiddle.net/G4PkSf...

In-app-purchase - LoadListingInformationAsync() doesnt work WP 8.1

c#,windows,windows-phone-8,windows-phone-8.1

You need to use CurrentAppSimulator while developing the app and change the code while pushing into the store.

Developer unlock Windows Phone 8 : Error Code 0x64

windows-phone-8,windows-phone

As of May 13, 2015, you can no longer developer unlock Windows Phone 8.0 devices. You have to upgrade them to Windows Phone 8.1. I don't have an article to point to, just an email I received from MS to the email address associated with my developer account: If you...

Why has my Windows Phone Dev Centre Dashboard stopped reporting downloads?

windows-phone-8,windows-phone

I think they have downvoted your question because is not a code related question.. Anyway.. It's a DevCenter's known issue and normally it's resolved within a few days.. All the lost report will be restored, don't worry! It's not the first time!...

Data Binding SQLIte to Listbox(containing three controls) Windows phone 8

c#,.net,sqlite,xaml,windows-phone-8

please keep height and width of listbox and controls inside listbox to "Auto" in xaml.if you used any border control..make sure width and height are set to "Auto" Height="Auto" Width="Auto" please check this and revert back with error picture.....

record video by front-camera - WP8 - C#

windows-phone-8,video,rotation,front-camera

Finally i solved my problem after 24 hours of efforts with below solution. The line of code that causing issue by rotating video was below. videoCapture.SetProperty(KnownCameraGeneralProperties.EncodeWithOrientation, videoCapture.SensorRotationInDegrees); here videoCapture is object of AudioVideoCaptureDevice While using front camera, we need to invert the rotation of cameraSensor. So I've used the above...

How can I create a simple text file on a windows phone (8.1) that can be accessed trough USB cable?

c#,file,windows-phone-8,windows-phone,windows-phone-8.1

There is a capability for writing to the Documents folder on the phone, but adding it to your manifest would cause your app to fail the certification process in the Windows Phone Store. The capability is called documentsLibrary <Capability Name="documentsLibrary" /> If you declare it, you can then read and...

Windows Phone 8 Ionic app navigation issue(Hybrid Application)

angularjs,cordova,windows-phone-8,ionic-framework,ionic

Problem In windows phone Due to ms-appx IE problem : When you use ng-href and dynamic url's in your app on Windows Phone, for example: <a ng-href="#/view/"> click here </a> You will notice that when you click on the url, you get a message "Search for app in appstore?". You...

Create persistent Sqlite db in Windows phone 8

database,sqlite,visual-studio-2012,windows-phone-8

As @Chubosaurus says, closing and re-opening the emulator will remove all the apps. You can generally keep it running as long as you want and keep re-deploying your app to the emulator (although obviously rebooting the host PC will kill it). You can save and restore the data from your...

How to draw a circle hole inside a rectangle in xaml

wpf,xaml,windows-phone-8,canvas

You should look into the Path element and learn the mini-language for the path data. This is a rough example: <Path x:Name="path" Data="M0,100 v-50 h100 a10,10,0,1,0,50,0 h100 v50 z" Fill="Gray" /> Basically: Move down 100 px vertical line up 50 px horizontal line 100 px arc of radius 10 px...

How to pass data from CustomMessageBox to the page which called it?

c#,windows-phone-8

I used the following link How to create a LongListSelector control programmatically and instead of creating a separate file as a CustomMessageBox, I created my own xaml file programmatically and called it in CustomMessageBox

Deployment failed because no Windows Phone was detected when using Windows Phone Emulator

windows-phone-8,windows-phone,windows-phone-8-emulator

I found a problem. I have 3 Windows Phone projects, one of them (which was in fact not marked as a startup one) was targeting the physical device, and that caused the problem. Problem was solved by switching Target device in project properties -> Debug to emulator.

Visual Studio 2013 Ultimate no Windows Phone 8 template

c#,visual-studio,windows-phone-8,visual-studio-2013,windows-phone

Look for the Windows Phone 8.0 Silverlight. That is the only way to create WP 8.0 app. There is also WP 8.1 Silverlight but it is recommended not to go Silverlight because all the apps are going in the Universal App direction.

animating a custom grid via code behind in wp8.1

c#,animation,windows-phone-8

Grid gd = this.FindName("SecondaryGrid") as Grid; DoubleAnimationUsingKeyFrames dm = new DoubleAnimationUsingKeyFrames(); LinearDoubleKeyFrame l1 = new LinearDoubleKeyFrame(); LinearDoubleKeyFrame l2 = new LinearDoubleKeyFrame(); l1.Value = -703.203; l1.KeyTime = TimeSpan.FromSeconds(0); l2.Value = 0; l2.KeyTime = TimeSpan.FromSeconds(1); dm.KeyFrames.Add(l1); dm.KeyFrames.Add(l2); dm.Duration = new Duration(TimeSpan.FromMilliseconds(30000)); Storyboard sb = new Storyboard(); sb.Children.Add(dm); Storyboard.SetTarget(dm, gd);...

Updating a Windows Phone App using a new project

windows-phone-8,windows-phone-8.1

They don't look for same name of the .xap file. In WP dashboard, you can click on update app and uplaod new .xap. It wouldn't matter if source code is same or not. So, you can create new project/solution in VS and upload new .xap. Basically, it is your app...

Windows phone store update app package on same app version?

c#,silverlight,windows-phone-7,windows-phone-8

If you are updating the package, update the version, so users know that they have the latest version. https://msdn.microsoft.com/en-us/library/windows/apps/gg442301(v=vs.105).aspx https://msdn.microsoft.com/en-us/library/windows/apps/ff769509(v=vs.105).aspx...

SQLite SELECT very slow on Windows Phone

sqlite,windows-phone-8,windows-phone-8.1

SQLite can easily return 15,000 records from a simple table in a fraction of a second on a Windows Phone (tested on a Lumia 920). There are other things causing your poor performance. If you have a huge number of columns, that might be a problem. Depending on how the...

Animate ScaleTransform of a Button using VisualStateManager

xaml,animation,windows-phone-8,visualstatemanager

The trick is, to define only the visual states, you are interested in. In this case, you are only interested in "pressed" and "normal", so only define those. Here is an example: <Button.Template> <ControlTemplate TargetType="Button"> <ContentPresenter x:Name="LayoutRoot" RenderTransformOrigin="0.5 0.5"> <ContentPresenter.RenderTransform> <ScaleTransform/> </ContentPresenter.RenderTransform> <ContentPresenter.Foreground> <SolidColorBrush Color="White"/> </ContentPresenter.Foreground>...

Error while implementing reverse geocoding with C#

c#,windows-phone-8,bing-maps

The problem is you are expecting e.Result (an array) to have values when it might not, so when you try to access the first element (e.Result[0]), it fails. The weird thing is, you are accessing e.Result[0] to make a variable you don't even use. Change your code as follows and...

How to display button over a Ad Mediator in windows phone 8?

c#,xaml,button,windows-phone-8,canvas

Just embed it in a panel like Grid so it just follows the DOM. Something like (in pseudo); <Grid> <AdMediator/> <Button/> </Grid> ...

windows phone 8.1 bing maps clustering

c#,windows-phone-8,bing-maps

As they don't have any nuget package or dll to reference directly, you need to download the source code of specific classes like ClusteringLayer & PushPin with related .cs files or the project itself to your machine and add reference of this project in your windows phone project to get...

Deploy enterprise (in-house) application on windows phone without developer unlocking the phone?

windows-phone-8,deployment,windows-phone-8.1,enterprise

The link you have shared describes steps to distribute app internally. For deployment of company apps developer unlocked phone is not required. Once company app is ready for deployment, you need to install .aetx file which is generated form the code signing certificate. .aetx file can be shared to users...

how to get route distance in windows app

windows-phone-8,maps,bing-maps,bing-maps-api

You can apply for an api key to Bing's driving distance calculator. After you get your key, make http requests like so... "http://dev.virtualearth.net/REST/V1/Routes/Driving?o=xml&wp.0=\\firstaddress&wp.1=\\secondaddress&distanceUnit=mi&key=\\yourkeyhere" Here's a link with more in depth details... https://msdn.microsoft.com/en-us/library/ff701717.aspx Here's where you can get a key... https://www.bingmapsportal.com/ I believe the distance can be parsed out like so......

Data Binding in Xaml from modal

c#,listview,windows-phone-8,windows-phone-8.1,windows-phone-7.1

Forst of all your json is invalid.. You can not use City name as Digit.. You can check your json in following link: http://jsonlint.com/ To convert json to class : http://json2csharp.com/ Just add any character before the cityname or Digit like a1,a2,a3......

how do i get rows and columns dynamically in windows phone app?

windows-phone-8,layout,windows-phone-8.1

Updating suggestion here: you can use Grid Layout. Create a Grid in XAML and define Rowdefinition and ColumnDefinition dynamically in code behind and append to grid. If your xaml has Grid with name "grid" then in code behind you can rows and column like this. You can use loop for...

Get ActualHeight from control after it's text has been bound

c#,xaml,windows-phone-8

Subscribe to the SizeChanged event. It's for precisely the use case you have presented. MSDN Documentation - TextBlock Events, SizeChanged Event That event will fire whenever the ActualHeight or ActualWidth properties change for the TextBlock element. As wpf controls inherit from the FrameworkElement base class, WPF controls all have access...

windows phone 8 c# httpclient dosent send request for second time

c#,php,windows-phone-8,httpclient

As @Null Pointer suggested, it might be a caching issue. You can add a random parameter to the url as he said or you can add this line of code to ignore cache if you don't or can't add parameter to the url: hc.DefaultRequestHeaders.IfModifiedSince = DateTime.Now; ...

Thread's join() method won't work for waiting the thead to finish in Windows Phone 8

c#,multithreading,authentication,windows-phone-8

Remove the async keyword from getMyToken and then call it like this from your Tap handler: await Task.Run(() => getMyToken()); This will run the DropBox code on a background thread (presumably the DropBox API is doing network calls and might take a long time) but keep the UI responsive until...

Microsoft App Submission Dashboard page sets AdUnitId to “none”?

c#,.net,windows-phone-8,windows-store-apps

Ok, So finally I resolved this issue and I thought to post it here so that others will get benefit too. I have noticed that its a one way process, creating app id in PhoneSubmission page informs Pubcenter, but creating appId in Pubcenter may or may not informs Microsoft's In-App...

windows phone 8.1 universal app : clear cookies

c#,windows-phone-8,cookies,windows-phone-8.1,webbrowser-control

The following should work for clearing the cookies for a specific URI: Windows.Web.Http.Filters.HttpBaseProtocolFilter myFilter = new Windows.Web.Http.Filters.HttpBaseProtocolFilter(); var cookieManager = myFilter.CookieManager; HttpCookieCollection myCookieJar = cookieManager.GetCookies(new Uri("target URI for WebView")); foreach (HttpCookie cookie in myCookieJar) { cookieManager.DeleteCookie(cookie); } ...

Windows Phone 8.1 : Add remote Image to BottomAppBar or AppBarButton

c#,xaml,windows-phone-8,windows-phone-8.1,windows-phone-7.1

You can't give an absolute Uri to AppBar Images , AppBarButtons just don't work that way. What might work is you can download your image , save it to local storage and read as image from there.Don't forget that your images need to follow sizing formats. You can get some...

openpgp.js on wp8 error

javascript,cordova,windows-phone-8,openpgp,openpgp.js

So, for anyone who came here with the same problems. Use var openpgp = window.openpgp; to avoid "undefined" error. The next problem is inside getRandomValues function - there is an exception No secure random number generator available.. To avoid this error too I've changed the last (with exception) statement to...

Check if there is an App present which responds to a given URI

c#,windows-phone-8

Windows 8.x No, currently windows phone OS 8.0/8.1 doesn't allow 1 you check if certain third party app is installed on the device or not. Though you can check if the user has installed other app of yours, if the publisher ID is same 2. 1: http://stackoverflow.com/a/13617515/546896 2: http://stackoverflow.com/a/15871975/546896 Windows...

change SystemTray Color in whole application - windows phone

windows-phone-8,windows-phone,system-tray

Solution for Windows phone RT app: In OnLaunched method of App.xaml add below code: var statusBar = Windows.UI.ViewManagement.StatusBar.GetForCurrentView(); statusBar.BackgroundColor = Colors.Green; statusBar.ForegroundColor = Colors.Red; statusBar.BackgroundOpacity = 1; statusBar.ProgressIndicator.Text = "Some text"; statusBar.ProgressIndicator.ShowAsync(); Ref: http://blogs.msdn.com/b/amar/archive/2014/05/12/status-bar-in-windows-phone-8-1.aspx For WP Silverlight App: You may need to define style in App.xaml under tag <Style...

Webbrowser not loading page content on Windows Phone 8

javascript,c#,html,css,windows-phone-8

I managed to fix the problem. Apparently the main html file needs to be at the root of the folders' structure. Would be nice to have that information on the official msdn page. Hope at least this helps anyone that may have the same problem when loading local pages. Thanks!...

Are checked events firing “late” or “early”?

c#,xaml,windows-phone-8,telerik

MJW's answer is correct. However in order to solve my problem I was modified the code such that the count calculation is done when the CheckBox click event was triggerd. It works in my private case but I am not sure if it is a rule that the click event...

Custom exception handling

c#,exception,windows-phone-8

If you set BackPressedEventArgs (e) parameter's Handled property to True , you will block the OS action on this event you can trigger your custom exception. When you set this property to true OS will stop to navigate back.However , you shouldn't prevent user from terminating your app.Otherwise your app...

Convert the URL entered by user in textbox to URI format

c#,windows,windows-phone-8

Please try this Uri myuri = new Uri(urltext.Text); HttpWebRequest request = (HttpWebRequest)WebRequest.Create(myuri); instead of HttpWebRequest request =(HttpWebRequest)WebRequest.Create(urltext.Text); hope it work for you...

Stream CopyTo() method in c# not working as I want it to

c#,windows-phone-8

Most likely, you need to reset the position of e.ChosenPhoto before performing the copy: e.ChosenPhoto.Position = 0; The documentation states: Copying begins at the current position in the current stream ...

Cordova media plugin and local files in Windows Phone 8

cordova,audio,windows-phone-8,media

var mypath = location.pathname; var idx = mypath.lastIndexOf('/'); var backgroundMusicFilePath = mypath.substring(0, idx + 1) + "audio/BackgroundMusic.mp3"; app.backgroundMusic = new Media(backgroundMusicFilePath); The local mp3 for my project is stored under the www\audio folder. Getting the local file is tricky because it differs for iOS, Android and WP8....

Can't access datacontext of parent

c#,windows-phone-8,binding,windows-phone-8.1,datacontext

Try IsEnabled="{Binding DataContext.IsDeleteOptionEnable, ElementName=LayoutRoot}" ...

ISupportIncrementalLoading doesn't stop after navigating away

c#,xaml,windows-phone-8,infinite-scroll

I've just found another way, adding additional bool field isStopped with methods Start, ForceStop setting it to false/true. This value is used when getting HasMoreItems like bool HasMoreItems{get{return !isStopped && DetermineIfHasMore()};} And simply by calling those to methods I can stop or continue loading the same collection generator. Another way...

90/180/270 deg rotation of BitmapImage in windows phone 8

c#,windows-phone-8

Looks like Transformed Bitmap is deprecated you can now try setting a BitmapImage to an Image control and rotate that image using MyImageControl.Source= new BitmapImage(new Uri("ms-appx:///Assets/SmallLogo.scale-240.png", UriKind.RelativeOrAbsolute)); RotateTransform myRotateTransform = new RotateTransform(); myRotateTransform.Angle=30; MyImageControl.RenderTransform = myRotateTransform; ...

Windows Phone Launcher/Theme

windows-phone-8,windows-themes

Actually Microsoft do not provide core accessibility (OS level access) to 3rd party developers. That's the reason why Themes can not be developed for windows phone. So, answer to your question is NO, you can't develop Themes for Windows Phone alternative through Launchers I saw 2-3 apps in wp store...

Align control to right - xaml

c#,wpf,xaml,windows-phone-7,windows-phone-8

If in your user control, you have designed the layout inside a grid, and the alignment of the elements inside the grid (possibly "LayoutRoot") is left, then the control will take up whole of your third column and your control wilol appear as if it is left aligned, even though...

How to structure and edit images that are in an xaml grid and adjust them in C#

c#,xaml,windows-phone-8

Use the Image.Tag property to store your instance of GridSpaces. For example: Give the name of each Image, and attach the same event ImageTapped <Grid> <Image x:Name="image1" HorizontalAlignment="Left" Height="100" Margin="43,72,0,0" VerticalAlignment="Top" Width="100" Source="Assets/First Action.png" Tapped="ImageTapped"/> <Image x:Name="image2" HorizontalAlignment="Left" Height="100" Margin="159,72,0,0" VerticalAlignment="Top" Width="100" Source="Assets/Second Action.png" Tapped="ImageTapped"/> </Grid> Then in code...

Windows Phone UI defaults to 19 margin on the left

windows-phone-8,windows-phone-8.1,guidelines

It's the difference between Windows Phone Silverlight and Windows Phone Runtime app scaling. Silverlight apps always scale to 480 virtual pixels wide. Runtime apps scale based on pixel density at specific plateaus (multiples of 20% for Windows Phone 8.1 and of 25% for Windows 10). The 12 pixel guidelines you...

Error - “Pivot” does not exist in the namespace - Windows phone 8.1

c#,windows-phone-8,windows-phone-8.1

Have you tried to add the pivot like this? <Controls:Pivot> </Controls:Pivot> ...

Add blur effect on image

c#,xaml,windows-phone-8

Try this: http://www.blendrocks.com/code-blend/2015/1/29/implementing-image-blur-in-a-windows-universal-app This worked for me for an universal app. The effective code is: private void OnDraw(CanvasControl sender, CanvasDrawEventArgs args) { if (imageLoaded) { using (var session = args.DrawingSession) { session.Units = CanvasUnits.Pixels; double displayScaling = DisplayInformation.GetForCurrentView().LogicalDpi / 96.0; double pixelWidth = sender.ActualWidth * displayScaling; var scalefactor = pixelWidth...

how to get windows phone 8 app version from windows app store

windows,windows-phone-8

For Windows Phone 8.1 If you swipe to the "details" panel on the app's page, it should say the app version at the top under "Information". It includes the current version as well as the last time the app was updated. For Windows Phone 8 On the main panel for...

Windows Phone make pushpin icon move on map between start and end location

c#,wpf,silverlight,windows-phone-8,dictionary

You have a couple of challenges here. The updated location will not be able to tell you the path that the user took travelling from A to B, so animating curves etc will be difficult. Initially I would suggest you change your MovementThreshold to 0 so that you get as...

Windows Phone 8 Change Image Source From Code Behind

c#,.net,image,windows-phone-8,source

Type mismatch. ImageBrush is not subclass of ImageSource which is required. Try this: Image[] bullets = new Image[100]; BitmapImage bmp = new BitmapImage(new Uri("ms-appx:/Assets/1.jpg")); for(int i=0;i<100;i++) { bullets[i] = new Image(); // Update edit #1 bullets[i].Margin = new Thickness(0, 0, 0, 0); LayoutRoot.Children.Add(bullets[i]); bullets[i].Source = bmp; bullets[i].VerticalAlignment = VerticalAlignment.Top; bullets[i].HorizontalAlignment...

How does SQL Server CE schema get updated in WP8 updates

vb.net,windows-phone-8,sql-server-ce

You use the DatabaseSchemaUpdater class! https://msdn.microsoft.com/library/windows/apps/hh394022(v=vs.105).aspx...

Open command prompt to access folders of a USB connected windows phone

powershell,windows-phone-8

To get a list of USB drives attached to the PC, execute this command. Get-WmiObject Win32_Volume -Filter "DriveType='2'" If your mobile is attached as a USB disk, it should show up. From the data you get back, you should be able to extract things like Caption, Label, Name and DriveLetter....

Html5 input type number formatting

android,iphone,html5,windows-phone-8,input

When retrieving the value with jquery it is returned with a . decimal separator. Try this: <!DOCTYPE html> <html> <head> <script src="https://code.jquery.com/jquery-2.1.1.min.js"></script> <meta charset="utf-8"> <title>JS Bin</title> </head> <body> <input type="number" name="myNum" id="myNum"> <button id="submit">Submit</button> <hr/> <code></code> <script> $("#submit").on("click",function() { var numericValue = $("#myNum").val();...

Backbutton press navigates to two page backward in Windows Phone App

c#,xaml,windows-phone-8

Add following line into the OnNavigatedFrom method: Windows.Phone.UI.Input.HardwareButtons.BackPressed -= HardwareButtons_BackPressed; In case the OnNavifatedFrom doesn't exist in your partial class of the XAML page, create it like bellow: protected override void OnNavigatedFrom(NavigationEventArgs e) { Windows.Phone.UI.Input.HardwareButtons.BackPressed -= HardwareButtons_BackPressed; } ...

Detect frequencies in a buffer along the time

windows-phone-8,signal-processing,frequency-analysis,goertzel-algorithm

If you know the set of frequencies and the durations, then a set of sliding Goertzel filters is a good start to building a simple demodulator. Comparing and scanning for for a peak difference between these filters is a better decision criteria than just checking for a certain magnitude output.

Error x064 while registering a windows phone 8 for applications testing

windows-phone-8

Microsoft closed the registration of Windows Phone 8 devices for development. If you can upgrade your phone to 8.1, you can register it, otherwise you can not use it anymore.

windows phone 8.1: Hide stackpanel if textblock is empty

c#,xaml,windows-phone-8,windows-phone-8.1,visualstatemanager

You can write converter to hide/show stackpanel public class BooleanToVisibilityConvertor: IValueConverter { public object Convert(object value, Type targetType, object parameter, string language) { if(value!=null) { if (!string.IsNullOrEmpty(value.ToString())) { return Visibility.Visible; } } return Visibility.Collapsed; } public object ConvertBack(object value, Type targetType, object parameter, string language) { throw new NotImplementedException(); }...

Windows Phone 8.1 : how to Launch an Installed app From My app

c#,windows-phone-7,windows-phone-8,windows-phone-8.1

If the app has a registered URI, then you should be able to use Launcher.LaunchUriAsync for this. You can also find some help, here at MSDN - How to launch the default app for a URI. Otherwise I don't think it's possible....

BackgroundTransferService with POST method and Parameters

c#,windows-phone-8,file-upload,windows-phone,background-transfer

i ran into similar kind of problem before few weeks. i somehow managed this file upload by HttpClient. Check code HttpClient client = new HttpClient(); StorageFile file = null; // assign your file here MultipartFormDataContent formdata = new MultipartFormDataContent(); formdata.Add(new StringContent("value"), "key"); formdata.Add(new StreamContent(await file.OpenStreamForReadAsync()), "file", "recordedVideoFile2.mp4"); var response =...

SQLITE inner join windows phone 8

c#,.net,sqlite,join,windows-phone-8

Create a class which has properties from both the class and use that classes. In your case it will have ITMID_PK,ITMNAME, description ,iCON and PRICE. Just keep the properties name same as column name. That class can be a separate class or Base class for these two classes. Edit: You...

Read given file Windows Phone 8.1

c#,windows-phone-8,windows-phone-8.1

You cannot access an UI element from a background thread. One quick fix is to read the value beforehand then pass it to your method: private void BtnDownloadData_Click(object sender, RoutedEventArgs e) { var fileName = SearchBox.Text; Task t = new Task(() => DownloadDataAsync(fileName)); t.Start(); } And change the signature of...

Running Windows Phone 8 apps on Windows Phone 8.1

windows-phone-8,windows-phone-8.1

Yes apps built for Windows Phone 8 and Windows Phone 7 run on Windows Phone 8.1. Wikipedia...

how to add a windows phone project to existing Xamarin.Forms project

c#,android,ios,windows-phone-8,xamarin

What version of Visual Studio are you using? VS 2015 now has baked in support for add shared project references. If you are using 2013 or lower, you need to download the visual studio extension to add shared project references. It will then be in the right-click context menu. https://visualstudiogallery.msdn.microsoft.com/315c13a7-2787-4f57-bdf7-adae6ed54450...

Develop WP8 using VS Community 2013

windows-phone-8,vs-community-edition

File > New Project > Visual C# > Windows Store Apps > Windows Phone Applications > Blank App(Silverlight Application for Windows Phone) insert the name of the project and click ok! Visual studio will prompt you to choose between 8.0 or 8.1! Choose 8.0, done! ;)...

how to connect wp8 and above apps with external database (remote) [closed]

database,windows-phone-8

This is in fact very similar to this question because in that question the questioner wants to access a server-based database from random client devices - just like you do. The answer is the same. The reason is that most databases listen on a particular port (it can usually be...

How to open a xaml page as a dialog in windows phone 8?

c#,windows-phone-8

Use a popup control. Add xaml page that you want to open as child of popup. PopUp mypopup = new PopUp(); mypopup.child = new Uri("Mypage.xaml",Urikind.RelativeOrAbsolute); ...

Collapse HubSection programmatically crashes - WP8 C++

c++,windows-phone-8,winrt-xaml

This is a known issue. Instead of setting visibility of the section, give that hub a name a name and use add(), insert(), remove() private void hideSection1Button_Click(object sender, RoutedEventArgs e) { HubName.Sections.Remove(section1); } ...

Error APPX1706: creating winrt dll with xaml

xaml,windows-phone-8,windows-runtime,windows-store-apps

A WinMD library is basically a regular library (DLL) with some metadata information. These metadata information will allow it to be used from different languages. You can for example, create a WinMD library in C# and use it from a C++ or JS application. Since the WinMD Library can be...

How to play Windows Phone 8 SpeechSynthesizer during lock screen?

c#,windows-phone-8,background-process,speech-synthesis,speechsynthesizer

It is just an suggestion, but why don't you simply allow you app to run under lock screen. In Application_Launching and Application_Activated events just add: PhoneApplicationService.Current.ApplicationIdleDetectionMode = IdleDetectionMode.Disabled; ...

Cordova Push Notification using Parse not working when app is Open when App is closed or in background it is working in Window Phone

windows-phone-8,parse.com,push-notification,cordova-plugins

Finally found the answer. I have remove old plugin and install https://github.com/cookys/parse-push-plugin and add below code in App.xaml.cs file // Parse initialization ParseClient.Initialize("APP_ID", ".NET_KEY"); this.Startup += async (sender, args) => { ParseAnalytics.TrackAppOpens(RootFrame); await ParseInstallation.CurrentInstallation.SaveAsync(); }; It worked for me. :)...

windows phone: deserialise and store both json key and value to modal

c#,windows-phone-8,windows-7,windows-phone-8.1,json-deserialization

public class Invoice { public string TF { get; set; } public string BF { get; set; } public string MD { get; set; } public string EFM { get; set; } public string ATT { get; set; } public string FPK { get; set; } } public class Example...

Windows Phone deploy Issue

visual-studio,windows-phone-8

I've had some problems sometimes registering some WP devices as developer devices. I've never had this particular error, but maybe this will work. When the device is connected to the computer, in the taskbar click in the icon which shows that a device is connected (the one where you can...

Difference between Hide and Unpublish in Windows Phone Dev Center

windows-phone-8,windows-phone

Hide from Store: The app is in a unlisted state, this means users can't find it using built-in seach function of the Store, moreover the app won't apper in Store spotlight. Actually users are still able to download/rate it and, if search engines (Google, Bing...) indexed the Store page,...

WP8 Beta App Database not listed in Isolated Store

windows-phone-8,windows-phone

That's the drill..! You can not play with any of internal Data of Windows Phone application which is installed from Windows Phone Store, irrespective of the app is BETA or Public. Once you upload the app package to Store, Microsoft will Encrypt the App package and make it non Extractable...