FAQ Database Discussion Community


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

database,wcf,azure,windows-phone-8
It seems like everything that I read is saying that for Windows Phone 8 Development, in order to create a database that connects to my WCF Service, I need to pay for it (Azure). Is that the truth? I want to create a database that my mobile app can access...

windows phone 8.1: Hide stackpanel if textblock is empty

c#,xaml,windows-phone-8,windows-phone-8.1,visualstatemanager
my xaml code is given below my whole xaml <Page x:Class="App13.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:App13" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" xmlns:converter="using:App13" Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> <Page.Resources>...

Updating a Windows Phone App using a new project

windows-phone-8,windows-phone-8.1
I uploaded a Windows Phone application to the Windows Phone Store 1 year ago. I want to update the application, but I've lost my code. I don't know the package name of the App. Will the Windows phone app store allow updates for apps created from other packages/projects? Do they...

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

windows-phone-8,windows-phone
All of my applications report in as published and up, however, I've gone from 60+ daily downloads to absolutely zero across all applications for several days straight. This seems very odd and more like an error in MS reporting on dev.windowsphone.com. Does anyone know why this may have happened? Is...

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

c#,windows-phone-8
What am I doing Wrong ?. This is my code snippet below: PhotoResult e; using (var filebytes = new MemoryStream()) { e.ChosenPhoto.CopyTo(filebytes); Debug.WriteLine(e.ChosenPhoto.Length); // Outputs the correct length Debug.WriteLine(filebytes.Length); //Outputs 0 } ...

Developer unlock Windows Phone 8 : Error Code 0x64

windows-phone-8,windows-phone
We need to unlock a Windows Phone 8 device in order to deploy our app that still supports this specific platform. The process was working some months ago without any problem but now, Windows Phone Developer Registration Tool, available with SDK 8.0, returns the following error: We have already tried...

Data Binding in Xaml from modal

c#,listview,windows-phone-8,windows-phone-8.1,windows-phone-7.1
I am not able to bind data to xaml... i have json, class and Xaml then also i am not able to bind the data to the xaml...i can see data the backend that data is getting stored into the Class...but is unable to show at the front End This...

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

c#,xaml,windows-phone-8
I've been searching around for methods to manage grided images through c sharp and xaml. So far what I've read is to use xaml and then edit it with c sharp instead of creating everything in c sharp for xaml to use. (how to display image in a grid using...

Convert the URL entered by user in textbox to URI format

c#,windows,windows-phone-8
I am working on windows phone application. The user enters the ip and port of his server, database name, username and password. In the code i access the url entered by 'urltext.Text' But the error pops up 'Invalid URI format'. How to convert the data from textbox to valid URI...

Have a function as a property in ViewModel

c#,wpf,windows-phone-8
I have a page containing a list of elements -clickable settings-, each of which have a SettingViewModel associated. Each element is set in the constructor of the page view model, like so: AccountSettingsVMList.Add(new SettingViewModel() { SettingTitle = AppResources.MainApp_EditProfileSetting, PageType = typeof(EditProfilePage) }); By clicking each element, I trigger the page...

Error x064 while registering a windows phone 8 for applications testing

windows-phone-8
I just finished a phonegap app ready to be deployed in a nokia lumia 520, I purchased a dev account, but everytime that I try to register the phone with the registration tool I get this: Status: Error communicating with the Windows Phone Dev Center. Please set the correct date...

Animate ScaleTransform of a Button using VisualStateManager

xaml,animation,windows-phone-8,visualstatemanager
I created a control template for a button which contains a grid and a content control. What I want to do is the following: when the button is pressed, the scale of the button should animate to 0.5 and when the button leaves the pressed state, the button's scale should...

The attachable property “ThemeDictionaries” was not found in type “ResourceDictionary”

c#,xaml,windows-phone-8,resourcedictionary,app.xaml
The following code is within app.xaml on a Windows Phone 8 application. It receives the error The attachable property "ThemeDictionaries" was not found in type "ResourceDictionary". Likewise, it does not set the background. I'm trying to set the background across the entire application with the option to change it using...

Difference between Hide and Unpublish in Windows Phone Dev Center

windows-phone-8,windows-phone
I want to remove/hide my app from the public Windows Phone Store. In the Windows Phone Dev Center, on the app page, there are two different options: Hide app in Store Unpublish What is the difference between these two? How should I choose, or maybe do both?...

SQLITE inner join windows phone 8

c#,.net,sqlite,join,windows-phone-8
I have two tables... ITEM and STOREITEM ITEM columns --ITMID_PK,ITMNAME, description ,iCON STOREITEM columns --ITMID_FK,PRICE to retrieve data of ITEM table to list and store in listbox. I follow this List<ITEM> retrievedlist = sqlconn.query<ITEM>("select * from ITEM").ToList<ITEM>(); foreach (var t in retrievedlist ) { listbox.Items.Add(t); } this works perfectly for...

how to get route distance in windows app

windows-phone-8,maps,bing-maps,bing-maps-api
I am Creating a windows mobile app using bing map.I have latitude and longitude of my starting point and destination points. I am getting the aerial route but my requirement is to find the routing distance i.e the actual distance by road which is shown in my map between two...

Windows Phone UI defaults to 19 margin on the left

windows-phone-8,windows-phone-8.1,guidelines
I've noticed that all guidelines, guides and blogs explain that the standard margin on the left (leading) for Windows Phone is 12. Yet, when I go File > New Project in VS2013 for any type of Windows Phone app, I'm met with a margin of 19, which looks really good....

Windows phone store update app package on same app version?

c#,silverlight,windows-phone-7,windows-phone-8
I have uploaded an app with version 1.0.0.1. Now I want to just update the package of this submission and not version in Windows Phone store can i do that?

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

c#,windows-phone-8
I have a page where I call one xaml layout page as a CustomMessageBox which displays country list. I am displaying the country list with the help of LongListSelector. After selecting the country , I just want to close the CustomMessageBox and go back with the selected country to the...

Deserializing JSON Array with JSON.net

c#,json,windows-phone-8,windows-phone,json.net
I have some JSON from the EPA's UV Index API. The json is an array with separate elements in it. Example of the JSON: [ { "ORDER": 1, "ZIP": 19021, "DATE_TIME": "MAY/27/2015 07 AM", "UV_VALUE": 0 }, { "ORDER": 2, "ZIP": 19021, "DATE_TIME": "MAY/27/2015 08 AM", "UV_VALUE": 1 }, {...

update listbox item when item is tapped

c#,wpf,xaml,windows-phone-8,listbox
I have a listbox wit listboxitems with an image and a textblock. The listbox has a custom class as datasource. What I want is when the listboxItem is tapped. The image inside the listboxitem changes. Here is what I have so far: My custom class: public class MemberUser { [JsonProperty("member_id",...

List won't display it's content

c#,list,button,windows-phone-8
I want to make an app that shows the shops that are currently open. Each shop has a name, work hours and a category. I made a list which contains each shop and its attributes, but when i use the foreach method it wont display any of them... Do you...

Add blur effect on image

c#,xaml,windows-phone-8
i want blur effect on image on the potion which user tap.User can tap multiple times on image and when he taps the image potion which he taps get blur. using (var blurfilters = new FilterEffect(source)) { var blur = new BlurFilter(); blurfilters.Filters = new IFilter[] { blur }; var...

WP8 platform on Cordova cannot run: CordovaBrowser_NavigationFailed

cordova,windows-phone-8,visual-studio-cordova,cordova-cli
I already built the same application on iOS and Android, but now I'm trying to build it for Windows Phone 8. The problem is that when I attempt to run it on the emulator I get this error: CordovaBrowser_NavigationFailed :: www/www/index.html And the application doesn't run, it only displays a...

How to play Windows Phone 8 SpeechSynthesizer during lock screen?

c#,windows-phone-8,background-process,speech-synthesis,speechsynthesizer
I have the following code to synthesize text to speech in a Windows Phone 8 application, however I can't seem to figure out how to have it continuously play during lock screen/screen off/or in the background. Does anyone have a suggestion or snippit of code on how to do this?...

Html5 input type number formatting

android,iphone,html5,windows-phone-8,input
I have this page where i use the input type number. so that it will show the numeric keyboard on wp, android and ios device . But my problem is that if the user use a culture info on the device for. lets say Denmark. the numeric keyboard shown use...

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

windows-phone-8,layout,windows-phone-8.1
In my application i need to design the seat layout arrangement in the form of rows and columns dynamically. Please any one suggest me how to get rows and columns and which view i need to use. this my xaml code <Grid x:Name="grid" Background="White"> <Button HorizontalAlignment="Stretch" Foreground="Black" Margin="23,56,268,527">Text</Button> </Grid> this...

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

c#,xaml,button,windows-phone-8,canvas
I use in the application Ad Mediator. I need to add a button(see example) I tried to use the Canvas and Canvas.Zindex. But then does not display advertising. Please tell me how to do it....

Running Windows Phone 8 apps on Windows Phone 8.1

windows-phone-8,windows-phone-8.1
Do apps compiled for Windows Phone 8 run on Windows Phone 8.1 ?

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
So as title states, I would like to create a simple text file, that I could write to from my C# application, and copy it to my PC trough an USB cable. Just to be clear, I would like to write a file to this place, because I can access...

SQLite SELECT very slow on Windows Phone

sqlite,windows-phone-8,windows-phone-8.1
Simple SQLite SELECT query on Windows Phone is very slow on a high-end device (Lumia 930). select * from tableName It's fetching around 15000 records (yeah, I need them all) and normally I'd expect it to not be this slow. However, it takes around 12-13 seconds to get all the...

windows phone 8.1 bing maps clustering

c#,windows-phone-8,bing-maps
Hello i am using windows map control described in this link and i have a MapLayer with multiple MapOverlays with differents pois on map. And i want to do the clustering thing. I try to do this but no ClusteringLayer exist and no Pushpin. How can i do the clustering?...

How does SQL Server CE schema get updated in WP8 updates

vb.net,windows-phone-8,sql-server-ce
I just submitted my first WP8 application pending approval/certification. It is all built in VB.NET and SQL Server CE. I chose this because I love to build my relationships in the database. My problem is that when I look at the update process, it describes that "When you update your...

BackgroundTransferService with POST method and Parameters

c#,windows-phone-8,file-upload,windows-phone,background-transfer
I want to upload a file (VideoFile) to server through BackgroundTransferService. My problem is, I also want to send 2 parameters along with File (POST request). So, is it possible to send parameters along with File upload while using BackgroundTransferService API..? Code with BackgroundTransferService: BackgroundTransferRequest req = new BackgroundTransferRequest(new Uri("ServerURL",...

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

c#,windows-phone-8
On WindowsPhone you can launch some applications by using the URI associations. Now I understand and implemented the launching of another App by using: Windows.System.Launcher.LaunchUriAsync(new System.Uri("<custom-uri-scheme>:<path>")); But before we tell the Launcher to start the other App we would like to check if the App is actually installed. Is it...

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

c#,android,ios,windows-phone-8,xamarin
I created a Xamarin.Forms Shared project in Xamarin Studio, so it did not add iOS or windows Phone project so I added it from Visual Studio then I added Xamarin.Forms package from nuget to both project now when I try to add the shared library to both ios and winphone...

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

c#,.net,sqlite,xaml,windows-phone-8
Iam new to implementing SQLITE DB & windows phone 8 app development... Implemeted following startegy to retreive data to listbox which contains three other controls.. here is my XAML code.. <ListBox Height="Auto" Name="TaskListBox" Margin="5,61,-1,298"> <ListBox.ItemTemplate> <DataTemplate> <Grid Background="Red" Height="480" Width="200"> <TextBlock Text="{Binding status }" Name="team1Name" Width="120" ></TextBlock> <TextBlock Text="{Binding CreationDate...

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

c#,php,windows-phone-8,httpclient
i am trying for a simple app in windows phone 8.1. i have a button and on first time click it send a request to insert data into the database via url in php. on second click it delete the data from the same table in database via another url...

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

c#,windows-phone-8,windows-7,windows-phone-8.1,json-deserialization
Hello guyzzzz i want to store both key and value in modal class...below is my json.. { "Example": [ { "Invoice": { "TFDGFF": " 200", "BF": " 200", "MD": "10", "EFM": " 12", "ATT": "4" }, "TF": "200" }, { "Invoice": { "DF": " 49", "DR": " 49", "KJ": "4",...

Windows Phone 8.1 : Add remote Image to BottomAppBar or AppBarButton

c#,xaml,windows-phone-8,windows-phone-8.1,windows-phone-7.1
I want to add remote Image into app bar button. My image is this url http://2.bp.blogspot.com/-yEbb9_qp-jg/U8-KGeZAy3I/AAAAAAAAB0U/m91Bv1jPAQI/s1600/india+win+at+lords.jpg and I want to bind it to appbarbutton from the backend. my backend code is propic.UriSource = new Uri("http://2.bp.blogspot.com/-yEbb9_qp-jg/U8-KGeZAy3I/AAAAAAAAB0U/m91Bv1jPAQI/s1600/india+win+at+lords.jpg"); But my backend code is not working...someone please tell me how to do it And...

How reliable is DeviceNetworkInformation.IsNetworkAvailable?

c#,windows-phone-8,network-connection
I have a Windows Phone 8 app that is stable and has been out in the wild for quite some time now. A few users have reported odd behaviour that I cannot reproduce. However, the odd behaviour reported would make sense if these particular devices are reporting DeviceNetworkInformation.IsNetworkAvailable as true...

Windows Phone Offline routing

c#,windows-phone-8,windows-phone-8.1,bing-maps,bing-api
I am trying to made windows phone application with offline routing. I have found that It is possible by using Bing API. I have registered and got the key, but I can't find, how can I use the key. I am using following code: private async void Button_Click(object sender, RoutedEventArgs...

Develop WP8 using VS Community 2013

windows-phone-8,vs-community-edition
Is there any way to develop wp8 app using Visual Studio Community 2013 edition? I've installed wp8 sdk, but still I can't see wp8 template.

Changing an image's source in Windows phone

c#,windows,windows-phone-8
I'm developing a metronome application, I made a bunch of images for it to display the rhythm number, but I don't know how tho load the images in the first place if I even need. I tried with this: tactImgList[0] = new BitmapImage(new Uri("Assets/Images/1.png")); And so on the rest, but...

Windows Phone deploy Issue

visual-studio,windows-phone-8
I have a strange issue that I can not seem to find any record of but it has now happened to me on two separate machines! I am building Windows Phone 8.1 apps and testing them on a physical device. This works fine for a time until at some point...

How to draw a circle hole inside a rectangle in xaml

wpf,xaml,windows-phone-8,canvas
I need to put a image as background of whole page, and put over it a rectangle with a transparent circle hole. The example result is bellow. Update I found some solutions using Geometry.Combine, but this does not exists in WP8. With this aproach I could draw a rectangle and...

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

c#,windows-phone-8
I am developing a windows phone app on windows phone 8.0. How to show xaml page as a dialog ? In android they have given an option to select a Theme.Dialog which makes the android activity to appear as a dialog. But how to do this in windows phone 8.0?

How to change listpicker dropdown ItemTemplate background?

xaml,windows-phone-8,listpicker
I have a Windows Phone 8 listpicker that I'm trying to change the background color of, however, it only seems to change the item background and not the dropdown box background as you can see in the screen capture. The dropdown box seems to be binded to the WP8 theme....

Error APPX1706: creating winrt dll with xaml

xaml,windows-phone-8,windows-runtime,windows-store-apps
I built a WinRT(Windows phone 8.1) dll with Page.xaml and App.xaml files. Next, I add reference to this winmd in wp8.1 application project. And I get following error: error APPX1706: The .winmd file 'project.winmd' contains type '?A0x32772d97.project_XamlTypeInfo.XamlMetaDataProvider' outside its root namespace 'project'. Make sure that all public types appear under...

WP8 Beta App Database not listed in Isolated Store

windows-phone-8,windows-phone
I have a WP8 to test my developed apps. I have 2 apps installed: one deployed by VS2013 and another by Windows Store Beta App. The app installed by VS2013 appears on IsoStoreSpy or Windows Phone Power Tools programs and I can copy the database. The other one installed by...

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

powershell,windows-phone-8
I am trying to open a command prompt to access folders of a USB connected windows phone. I have tried several commands like the following but to no avail. wmic logicaldisk get name GET-WMIOBJECT win32_diskdrive | Where { $_.InterfaceType -eq 'USB' } Could someone suggest me the best way to...

Windows Phone 8 Ionic app navigation issue(Hybrid Application)

angularjs,cordova,windows-phone-8,ionic-framework,ionic
I am developing an hybrid app for Android and WP8 using Ionic. It works fine on Android platform but when I recently used this on WP8, its showing me "You need to install an app for this task. Would you like to search for one on the Store?" When I...

Read given file Windows Phone 8.1

c#,windows-phone-8,windows-phone-8.1
I try to read a certain file based on user TextBox input Case: There are 2 files: A and B. User types in "A" into TextBox.Text property and clicks a button to load the data from file. File is processed by the JSONConverter and then displayed in UI. Problem: This...

Ellipsis inside button content Windows Phone

xaml,c#-4.0,windows-phone-8,windows-phone-8.1
is it possible to get ellipsis inside button when content length increase the width of button. I tried editing template but did get much success?

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

windows-phone-8,windows-phone,windows-phone-8-emulator
I'm facing a weird problem. When I'm trying to debug my app on Windows Phone Emulator I'm getting this error: Deployment failed because no Windows Phone was detected. Make sure a phone is connected and powered on. However Emulator is launched, the app is deployed correctly and I'm able to...

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

cordova,windows-phone-8,win-universal-app,hybrid-mobile-app,visual-studio-cordova
I'm currently building a mobile app using Cordova platform. The app was targeted on Android, iOS and Windows Phone 8. Recently, I had to change the latter to Windows Phone 8.1 (Universal). After adding the winstore-jscompat library and making couple changes to CSS everything seems to work the same way....

Custom exception handling

c#,exception,windows-phone-8
I am making an app in wp8.1 I want to make sure that during certain process user is not allowed to press the hardware backbutton of windows phone. IF he does then my custom catch block exception should run. I don't know how to handle the backbutton exception for my...

Collapse HubSection programmatically crashes - WP8 C++

c++,windows-phone-8,winrt-xaml
I'm trying to set the visibility of a HubSection to Collapsed but my when I'm doing it my app crashes with the following error. accountSection->Visibility = Windows::UI::Xaml::Visibility::Collapsed; // Executed on the main thread. Error Message: The parameter is incorrect. Could anyone help me? Thanks...

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
I have created in windows phone in Cordova. All things are working fine. But now I have integrated Push Notification using Parse. I have configured correctly. But now I am only getting push when my app is in background or closed. But I am not getting Push notification when my...

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

windows,windows-phone-8
I want to find my windows phone app version from market place. Is it possible to find current app version from market? if ,then help me to find this.

Cordova media plugin and local files in Windows Phone 8

cordova,audio,windows-phone-8,media
I want to port cordova app to Windows Phone 8 platform. But there's come troubles with sound. There was string new Media('/android_asset/sounds/bell.wav'). When I changing param to 'sounds/bell.wav', error code is 1. If I put 'x-wmapp0:www/sounds/bell.wav' or 'file:///www/sounds/bell.wav' there's no errors but sounds is not playing. URLs from Internet (files...

How to Change Button Background Image inside Listbox In Windows Phone 8

windows-phone-8
Hi all how i can change button background image when button is pressed inside listbox using style for button </Grid.ColumnDefinitions> <StackPanel Orientation="Horizontal" Margin="0, 10, 0, 10"> <TextBlock x:Name="item_name" Text="{Binding Name, Mode=OneWay}" FontSize="{StaticResource PhoneFontSizeLarge}" Margin="10, 0, 0, 0" /> </StackPanel> <Border BorderThickness="0" HorizontalAlignment="Left" VerticalAlignment="Center" BorderBrush="{StaticResource PhoneAccentBrush}" Margin="5, 0, 0, 0"> <Button...

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

c#,windows-phone-8
I have followed the msdn link for this But the problem is at TrasformedBitmap. The error says that The type or namespace name 'TransformedBitmap' could not be found I am not getting why this error pops up because I have included the namespace i.e System.Windows.Media.Imaging and PresentationCore assembly is also...

Detect frequencies in a buffer along the time

windows-phone-8,signal-processing,frequency-analysis,goertzel-algorithm
if I record a series of frequencies beeps into a buffer, for example: 15kHz for 50ms, 17k for 50 ms and goes on, is there any way to "go" along the time plain and to decode this freqs(with goertzel or something)? Hey, this is an update, I've added a code...

Application configuration files for Windows Universal app

windows-phone-8,windows-store-apps,windows-universal
I have developed a windows universal app 8.1 for tablets and phones. Is there any equivalent of App.config file what we used to have in desktop applications in win 8.1 tablets and phones ? Searching over the net revealed nothing. Thanks and Regards, Saurav...

Receiving shared content using windows phone 8.0

c#,windows-phone-8,windows-phone-8.1,windows-phone-8-emulator
I am working on windows phone application 8.0 not 8.1 I want to receive shared file into my application For E.g : I found some code that will allow register file type to be shared with application but no luck .. I just want to know is that possible to...

openpgp.js on wp8 error

javascript,cordova,windows-phone-8,openpgp,openpgp.js
I'm using an openPgpJs library in my app, created with Apache Cordova. Here's the part of the code: var publicKey = openpgp.key.readArmored(_publicKey); openpgp.encryptMessage(publicKey.keys, text).then(function (pgpMessage) { // success callback(pgpMessage); }).catch(function (error) { // failure console.error(error); }); It works fine but not on WP8. If fails, 'cause openpgp var is undefined....

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

c#,xaml,windows-phone-8
I am trying to get the ActualHeight of a TextBlock after it's text has been changed. This text may change multiple times on the same page, which means the Loaded method on my page, is only fired once.. Getting the value in the Page Loaded method works fine, but only...

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

c#,xaml,windows-phone-8,telerik
I am using a Checkbox control inside an ItemTemplate of a Telerik RadJumpList. The ItemTemplate is defined like this: <DataTemplate x:Key="ItemTemplate"> <StackPanel Orientation="Horizontal" Margin="4"> <Image Source="/Assets/Weather.png" Width="64" Height="64" Margin="0,4,12,4" Stretch="Fill" /> <CheckBox x:Name="checkBox" IsChecked="{Binding IsChecked, Mode=TwoWay}" Checked="checkBox_CheckedChanged" Unchecked="checkBox_CheckedChanged" /> <TextBlock FontSize="{StaticResource PhoneFontSizeExtraLarge}"...

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

c#,.net,windows-phone-8,windows-store-apps
I have submitted a application for Windows Phone 8 / 8.1. I have created a pubCenter account from Microsoft Pubcenter and generated the ApplcationId and adUnitId too. This two fields I have set in the mainPage.xaml so that it display advts. Now I have submitted the app in the store...

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

c#,windows-phone-8,windows-phone,windows-phone-8.1,toast
In my application, sending toast notification from the application itself. ToastTemplateType toastTemplateXml = ToastTemplateType.ToastText03; XmlDocument toastXml = ToastNotificationManager.GetTemplateContent(toastTemplateXml); XmlNodeList toastTextAttributes = toastXml.GetElementsByTagName("text"); toastTextAttributes[0].InnerText = "Welcome to My app! Let us know how you heared about us."; string text = DateTime.Now.ToString("MM-dd-yyyy hh:mm:ss", CultureInfo.InvariantCulture); toastTextAttributes[1].InnerText = text; ToastNotification...

animating a custom grid via code behind in wp8.1

c#,animation,windows-phone-8
i am trying to create a animation using grid. it's a login screen. whenever user taps forget password i want the second grid to animate from top and slide till it stops at center and on tap it's visibility changes. i know how to do it using blend but the...

How to bind a textblock visibility to another textblock text property

c#,xaml,windows-phone-8,windows-phone-8.1,winrt-xaml
<Grid Height="{Binding ElementName=oldPrice, Path=Height}"> <TextBlock VerticalAlignment="Bottom" FontSize="{StaticResource TextStyleSmallFontSize}" RequestedTheme="Light" FontWeight="Bold" Foreground="#B0B0B0" Style="{StaticResource TitleTextBlockStyle}" TextWrapping="NoWrap"> <Run x:Name="oldPrice" Text="{Binding oldPrice}" /> </TextBlock> <Line Stretch="Fill" Stroke="#B0B0B0" StrokeThickness="1" X1="1" Width="{Binding ElementName=oldPrice, Path=Width}" Height="{Binding ElementName=oldPrice,...

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

c#,windows-phone-8,windows-phone-8.1
I am very new to Windows phone development. recently i am working on a project. i have got some code which uses pivot. but it is showing error as: The name "Pivot" does not exist in the namespace "http://schemas.microsoft.com/winfx/2006/xaml/presentation" How can this be resolved ?...

Can we customize the default style of hub or panorama app

windows-phone-8,panorama-control
I am trying to customize the hub or panorama style in WP8. Can I make Screen 1 by customizing the default hub or panorama style? I am having trouble in changing the default Screen 2 style. Is it possible, and how?...

Can't access datacontext of parent

c#,windows-phone-8,binding,windows-phone-8.1,datacontext
Basically what i have is a ListBox with ContextMenu <ListBox Margin="2,0,0,0" Grid.Row="1" ItemsSource="{Binding MyCollection}"> <ListBox.ItemTemplate> <DataTemplate> <Button Style="{StaticResource NoVisualButton }" Tag="{Binding ID}" Width="430" toolkit:TiltEffect.IsTiltEnabled="True" Margin="0,0,0,12" Click="OnSelectWorkOutItemClick"> <StackPanel> <toolkit:ContextMenuService.ContextMenu> <toolkit:ContextMenu> <toolkit:MenuItem Header="delete" Tag="{Binding ID}"...

how to get phone contacts in windows phone app 8.0 without using silverlight template

windows,windows-phone-8,windows-phone
I am new to windows developement. I want to get the contacts from phone, but i am getting contacts from phone when i am using silverlight template. Now i want without using sliverlight template i need to get contacts from phone. i tried alot,but i failed to get the contacts...

Error while implementing reverse geocoding with C#

c#,windows-phone-8,bing-maps
I am trying to implement the reverse geocoding with visual studio using C#. But i could not handle the exception "Argument out of range exception". CODE: ReverseGeocodeQuery reverseGeocode = new ReverseGeocodeQuery(); reverseGeocode.GeoCoordinate = new GeoCoordinate(47.608, -122.337); reverseGeocode.QueryCompleted += reverseGeocode_QueryCompleted; reverseGeocode.QueryAsync(); private void reverseGeocode_QueryCompleted(object sender, QueryCompletedEventArgs<IList<MapLocation>> e) { MapAddress geoAddress =...

Windows Phone 8 Change Image Source From Code Behind

c#,.net,image,windows-phone-8,source
I'm developing a windows phone 8 app, still learning .NET, though. What I'm trying to do is create an array of images but I cannot set the source. This is my code: async private void b1_Click(object sender, RoutedEventArgs e) { Image[] bullets = new Image[100]; var brush = new ImageBrush();...

Circular progress bar in windows phone 8

c#,xaml,windows-phone-8,progress-bar
In referencing https://github.com/asimmittal/SillyUIControls/tree/master/CircularProgressBarWP8 for a fun new implementation of a progress indicator, I would like to adapt the circular progreessbar control to Windows Phone 8. But when i downloaded the project and rebuild-ed , it gave compile time error. error is as follow The property 'BgBrush' does not exist on...

Create persistent Sqlite db in Windows phone 8

database,sqlite,visual-studio-2012,windows-phone-8
I am trying my hands on Windows phone 8 applications and I am stuck into a weird situation here. I am using sqlite in order to create sqlite db and add values into the database. I am able to create the database and add the values in the database successfully...

record video by front-camera - WP8 - C#

windows-phone-8,video,rotation,front-camera
My windows phone app needs to record a video from front-camera and send it to the server through a webservice. Here while I'm trying to record video from front-camera, I'm getting mirror inverted video. Means front-camera records 180 degree rotated video. what i think probably the only solution of it...

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

c#,windows-phone-8
Well this is my first Windows Phone 8 app. On my all pages I set shell:SystemTray.IsVisible="False" to show the app always on full screen mode. But when I'm showing a message box a Phone is plugged in and battery is fully charged icon is showing. Please see below image. I...

windows phone 8.1 universal app : clear cookies

c#,windows-phone-8,cookies,windows-phone-8.1,webbrowser-control
I am developing windows phone 8.1 universal app and i wish to clear cookies from browsers. I have used windows.phone.controls namespace and used following code await new WebBrowser().ClearCookiesAsync(); but it says that it throws several error. Please help windows programmers . I think the above code works well for silverlight...

Backbutton press navigates to two page backward in Windows Phone App

c#,xaml,windows-phone-8
In my windows phone app sometimes it takes me two page backward although I pressed hardware back button just once. To handle the back button I used following code snippet: private void HardwareButtons_BackPressed(object sender, BackPressedEventArgs e) { e.Handled = true; if (Frame.CanGoBack) Frame.GoBack(); } And in OnNavigatedTo() method I added...

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

c#,wpf,silverlight,windows-phone-8,dictionary
I am creating an app in which I am trying to move bike icon as user travel on his path. I am getting new location of the user by subscribing to position changed event of Geolocator class. I am setting the pushpin to this new location every time. But the...

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

c#,windows,windows-phone-8,windows-phone-8.1
I'm trying to create In-app-purchase in my WP 8.1 app, but i have problem with displaying all the in-app products available for purchase. I can not load listing information I have this code, but when I try to load products, my application crashes on line var listing = await CurrentApp.LoadListingInformationAsync();...

Multiple screen support Windows Phone 8

c#,button,windows-phone-8,background-image
I used to develop for Android and iOS, and for multiple screen support we use to use mdpi, hdpi, xhdpi. Now I want to develop for Windows Phone, I want to set a background to a button and I don't know how to define image size to support all screen...

Binding.StringFormat doesn't adhere to CultureInfo.CurrentCulture [duplicate]

c#,windows-phone-8
This question already has an answer here: Why a binding's StringFormat didn't use a current culture? 1 answer I'm experiencing a weird format with currency issue when using data-binding on windows phone. I have checked the CultureInfo.CurrentCulture.NumberFormat.CurrencySymbol and this is £ When I do string.Format("{0:C}", 30.30) it displays correctly...

Windows Phone Launcher/Theme

windows-phone-8,windows-themes
I want to ask that is there way for creating Themes or Launcher for windows phone.Because when i search over the internet it leads me to the launcher and pickers (Browser launcher, Contact Picker) etc. i have created several themes for windows 7+ which are working fine and now i...

Align control to right - xaml

c#,wpf,xaml,windows-phone-7,windows-phone-8
I have Grid with 3 columns. <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="*" MinWidth="215"/> <ColumnDefinition Width="*" /> </Grid.ColumnDefinitions> In first column I have image. In second Stack Panel. In third I have my user control and I want to make it horizontal right, but it's align to left. This is code...

Webbrowser not loading page content on Windows Phone 8

javascript,c#,html,css,windows-phone-8
I'm building somewhat of a caching mechanism for some webpages, so that if the webpage is already stored in IsolatedStorage, then it's not necessary to fetch it online. However, when I'm loading the page, the content (CSS, js, images) aren´t being loaded, although the files are already in the appropriate...

change SystemTray Color in whole application - windows phone

windows-phone-8,windows-phone,system-tray
I want to change the SystemTray Background and Foreground color in whole application but I don't define a base page and now I can't change the color for each page. is there a way for changing the background and foreground color of SystemTray in whole application through App.xaml.cs

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

windows-phone-8,deployment,windows-phone-8.1,enterprise
As the title says, I would like to deploy my application on multiple phones, without developer unlocking them. The said application is private, thus it can't be distributed through the store. I've heard of Company app distribution, however it's not clear for me whether it requires a developer unlocked phone...

ISupportIncrementalLoading doesn't stop after navigating away

c#,xaml,windows-phone-8,infinite-scroll
I suddenly found a strange behavior of collection implementing ISupportIncrementalLoading. Let's say we have a main page with ISupportIncrementalLoading collection bound to ListView. And we have another page where we can navigate to. When navigating to main page, the ISupportIncrementalLoading starts loading items until ListView thinks it's enough. I navigate...

Visual Studio 2013 Ultimate no Windows Phone 8 template

c#,visual-studio,windows-phone-8,visual-studio-2013,windows-phone
I don't see the Windows Phone 8 template in VS 2013 Ultimate edition. Yes, I have already tried solution from this question on Stackoverflow but it doesn't work, or maybe this solution was just for VS 2013 Preview. Any suggestion and workaround is appreciated I have VS updated to latest...

How to achieve that design in windows phone

windows-phone-8
I'd like to implement something like that (see the image) in Windows Phone. What's the best and easiest way to achieve that design? http://i.stack.imgur.com/WYjGv.png ...

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

c#,multithreading,authentication,windows-phone-8
I'm doing a SharpBox authenticating for WP8. I searched "wait for a thread to finish" and I got so many answer suggesting using join(). So I added it to my code inside of the click handler: private async void uploadBtn_Tap(object sender, System.Windows.Input.GestureEventArgs e) { System.Threading.Thread thread = new System.Threading.Thread(getMyToken); thread.Start();...

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

database,windows-phone-8
I am developing an application which needs to connect with an external database tables to perform insert and read operations. I have no experience related to this. I need some help from the beginner's view point.

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

c#,windows-phone-7,windows-phone-8,windows-phone-8.1
I have tried the following links How do I launch other app from my own app in Windows Phone 8.1? Call an external app on windows phone 8.1 runtime(not silverlight) xaml c# application but nothing is working for me as i simply wants to launch one app for e.g. angry...