silverlight,windows-phone-8,settings,account , How can i add an account to Windows Phone?

How can i add an account to Windows Phone?


Tag: silverlight,windows-phone-8,settings,account

I'm new in developing applications for Windows Phone 8. Can I add custom account from my application (to Settings => email+accounts)? Thank you.enter image description here


Not possible to add an account programatically with the current SDK.


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

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...

Could not load type 'Telerik.Windows.Documents.Packaging.DeflaterOutputStream'

I've to export some report into pdf. I'm using telerki library PdfFormatProvider. PdfFormatProvider p = new PdfFormatProvider(); p.Export(document, stream); But I'm getting exception on p.Export. Any kind of help will be appreciated. ...

Animate ScaleTransform of a Button using 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...

90/180/270 deg rotation of BitmapImage in 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...

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

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...

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

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...

change SystemTray Color in whole application - windows phone

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

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

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",...

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

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...

Webbrowser not loading page content on 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...

Error - “Pivot” does not exist in the namespace - 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 "" How can this be resolved ?...

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

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...

SQLITE inner 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...

String to Double Conversion (Comma to dot issue)

Struggling with the basics - I'm trying to code a simple currency converter. The XML provided by external source uses comma as a decimal separator for exchange rate (kurs_sredni): <pozycja> <nazwa_waluty>bat (Tajlandia)</nazwa_waluty> <przelicznik>1</przelicznik> <kod_waluty>THB</kod_waluty> <kurs_sredni>0,1099</kurs_sredni> </pozycja> I already managed to load the data from XML into a nifty list of...

Html5 input type number formatting

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...

Receiving shared content using windows phone 8.0

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...

Error x064 while registering a windows phone 8 for applications testing

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...

Application configuration files for Windows Universal app

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...

Windows Phone UI defaults to 19 margin on the left

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 8.1: Hide stackpanel if textblock is empty

my xaml code is given below my whole xaml <Page x:Class="App13.MainPage" xmlns="" xmlns:x="" xmlns:local="using:App13" xmlns:d="" xmlns:mc="" mc:Ignorable="d" xmlns:converter="using:App13" Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> <Page.Resources>...

Deployment failed because no Windows Phone was detected when using Windows Phone 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...

Circular progress bar in windows phone 8

In referencing 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...

Insert a blank row into a Datagrid with dynamic columns

I create the columns of my Silverlight DataGrid dynamically in the code behind using a List as follows: private void BuildQuotationDGColumns(List<ProductCategory> ProdCatList) { // add a template column with drop down list of products DataGridTemplateColumn ProductColumn = new DataGridTemplateColumn(); ProductColumn.Header="Choose Product"; ProductColumn.CellTemplate=(DataTemplate) Resources["ProductDDLTemplate"]; QuotationDG.Columns.Add(ProductColumn); // for each entity in ProdCatList...

Develop WP8 using VS Community 2013

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.

Ellipsis inside button content Windows Phone

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?

Windows phone store update app package on same app version?

I have uploaded an app with version Now I want to just update the package of this submission and not version in Windows Phone store can i do that?

Silverlight: Get first TextBox in DataTemplate,silverlight,datatemplate,children
So far I have looked at several questions and answers for how to get a TextBox within a DataTemplate, but none of it is working for me. I have xaml like so (minimal example). The data template is in my section for static resources, and the ItemsControl is in the...

Backbutton press navigates to two page backward in Windows Phone App

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 8.1 universal app : clear cookies

I am developing windows phone 8.1 universal app and i wish to clear cookies from browsers. I have used 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...

How do I access MainPage class non-static members from the App class?

I have added an application bar to my blank Windows Phone 8.1 Silverlight app as per MSDN documentation I have added event handlers encapsulated within the App class to each of the buttons in the application bar. I need a way of accessing the current instance of MainPage class...

Windows Phone 8.1 : Add remote Image to BottomAppBar or AppBarButton

I want to add remote Image into app bar button. My image is this url and I want to bind it to appbarbutton from the backend. my backend code is propic.UriSource = new Uri(""); But my backend code is not working...someone please tell me how to do it And...

How Does the Silverlight Client Talk to the Server in a 3 Tier Lightswitch Application?

I've picked up a legacy 3 tier Lightswitch application, and need to deploy it to a new server in my work. The client is a Silverlight application deployed to a file server where my clients can access it, and the Server is hosted on an IIS server. I've managed to...

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

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 Does anyone know why this may have happened? Is...

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

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...

Data Binding SQLIte to Listbox(containing three controls) 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...

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

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...

Style vs inline property setting in silverlight with a custom control

I have a custom silverlight control that is pretty much a glorified text box. I have some properties in it I need to be able to set from the XAML in silverlight, so for each property I have created something like this: public bool UseCustomTooltips { get { return _useCustomTooltips;...

WrapPanel grabs focus from its children

I have some (homemade) controls in a wrappanel in a scrollviewer and I want my controls to get focus when I click on them or Tab through them. But the wrappanel grabs the focus and hands it to Children[0]. <ScrollViewer IsTabStop="False" > <toolkit:WrapPanel> <!-- children, filled in from code. IsTabStop="True"...

Silverlight Nested Custom Controls results in StackOverflowException

iam writing a reusable Controllibrary for my Silverlight Projects. At the moment i get an StackOverflowException each Time i startup my test Application wich is using the Controllibrary. I was able to reproduce the Exception in a small sample Projekt. I have two simple Custom Controls: //Control1.cs public class Control1:Control...

Can we customize the default style of hub or panorama app

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?...

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

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...

Multiple screen support Windows Phone 8

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...

How to change listpicker dropdown ItemTemplate background?

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....

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

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....

Error while implementing reverse geocoding with C#

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 =...

How to bind a textblock visibility to another textblock text property

<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,...

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

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...

Error APPX1706: creating winrt dll with xaml

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...

Why does Silverlight View not throw a null exception?

Given a Silverlight View with the following binding: <TextBox Width="200" Text="{Binding Customer.FirstName, Mode=TwoWay}"/> and the code behind has the following: CustomerClass Customer {get; set;} This will not throw a NullReferenceException however the following String FirstName { get { return Customer.FirstName; } } does when I attempt to bind to FirstName...