In windows phone 7 - c#

In windows phone 7 ,is there any combo box and table view control.
If any one knows tel , friends.
And how to web service in wiindows phone 7.how to bind those values into list box or table view control.
thanks & Regrads,
selladurai

There isn't a combobox, as such, in WP7 but one of the AutoCompleteBox, ListPicker or LongListSelector (from the toolkit) may be appropriate, depending on your specific needs.
A table or grid view doesn't translate well to the "Metro" style and has usability issues on a small screen. As such, no equivalent control has been provided.
You can use any kind of web service on WP7 but proxy generation from WSDL services isn't directly supported. It's recommended to use a WCF/ODATA backend or a rest based service.
Data retrieved from a web service can be turned into objects and then bound to the UI using viewmodels.
You may want to take a look at the following questions which have already been asked:
Want to start with Windows Phone 7 development
How to start developing for the Windows 7 phone?
Getting Started with Windows Phone 7
Resources for Windows Phone 7 development
https://stackoverflow.com/questions/4318003/learning-to-develop-for-windows-phone-7
To get better (more specific) answers, please see the FAQ on asking questions.

Related

Login Mechanism in Windows 10 UWP App Development?

I see lot of difference between Win 8.1 and Win 10 Apps. Login used to be in settings in Win 8.1. How to implement custom login in Win 10? Which is the right component or control for it? Also how to implement carousel panel in XAML which is similar to Win 10 Store App?
Thank you !
How to implement custom login in Win 10? Which is the right component or control for it?
See:
Guidelines for login
Authentication and user identity
How to implement carousel panel in XAML which is similar to Win 10
Store App?
There is no carousel control like in Store App right out of the box. However, Pivot control has similar functionality, see Guidelines for tabs and pivots -> The Pivot control -> Carousel section. If you edited the template in Blend For Visual studio it could look just like the carousel in store app although it won't be easy.
Another option is to google for 3rd party control or create your own.
If you are serious about creating apps for windows, you should really read all the guidelines for Universal Windows App design and development.
If you look at what's measued in microsoft exams:
70-354 - UWP – App Architecture and UX/UI
70-355 - UWP – App Data, Services and Coding Patterns
you will have very good overview of what is recommended to know. For each exam there use to be a great book called Exam Prepartion Guide, but since these exams are new and currently still in beta, the books has not been published yet.

Windows Phone 8.1 Development - Get data from a list to populate answers on a page

I'm attempting to build a sort of quiz for Windows Phone 8.1 using C# and XAML, and I want to add questions and answers to a list/array, and then on the page each line from that list/array populates the buttons and textblocks on the page.
I originally wanted to do this from a text file instead of a list or array but this seemed a lot more complicated than I first thought.
I'm wondering if anyone can point me in the right direction?
U have plenty of choices. U can do this using an XML file or SQLite or you can store it in a remote machine and develop and REST API and then consume the same on the Windows Phone app.

Change app root frame in Windows Phone 8.1 Silverlight application

I have two simple questions since I'm very new to Windows Phone programming:
1:
How do I cange the root frame, or show a different Page on startup, in a Windows Phone 8.1 Silverlight application? I have a LoginPage and then I want to check if the user is logged in show MainPage as root frame and if the user is not logged in show the LoginPage.
2:
Windows Phone Silverlight applications seems so different to me compared to the Windows Phone WinRT applications, or maybe I'm just not experienced enough. For example I can't put a placeholder/hint text in a textBox in Silverlight but it's super easy in WinRT, why is it like that? Isn't that something very basic that many IDE's implements? Or have I missed something mayor when I'm developing a Silverlight application for Windows Phone?
I know that Windows Phone WinRT is used to create universal apps and Silverlight is used to create only mobile apps for Windows Phone, but why is developing a mobile app in Silverlight so much different (at least to me) compared to build a Windows Phone app i WinRT?
For your first question, use the UriMapper.
The basic principle is that you check if the user is logged in or not and based on that, navigate to the correct view.
The code is not all that complicated, there is a very good tutorial up on Shawn Kendrot his blog here...
For question 2, how to add some sort of hint/watermark can be done in several different ways.
But a very simple version is presented on MSDN here... it uses events to set and clear the watermark.
Point 1
You have to go to Package.appxmanifest and under the tab called Application the second field contains the startup page name. Currently it should be MainPage.xaml, just change it to LoginPage.xaml.
Point 2
I don't quite understand your question. Silverlight and Windows Runtime are two different platforms, they have in fact many different libraries. The goal of Windows Runtime is to run the same application on several different devices, so different hardware requirements and different resolutions. It was a need to organize the environment differently and of course Microsoft added some minor changes such as the hint text (e.g.).
What is so different to you? I did the porting of an app from SL to WinRT but it's not difficult nor tricky at all.

Ruby on Rails > Action Pack APIs > Getting images from website to windows phone 7 app

I have an application for Windows Phone 7 that is in its final stages. All I have left to do is allow content I post on my website, from user submissions, to make its way into the phone application's listbox as a new listboxitem for each image.
Some background:
I have a website made in HTML from dreamweaver, and I have installed Ruby on Rails software for it. I am at the point where I need to obtain the set of APIs that the phone can communicate with in order to receive the image data from the website to the phone.
I am thinking of using Action Pack APIs (action web service), and exporting the data in XML. Technically speaking, is this possible? Is there a better set of APIs to use (free of course)?
As I have never done this before, will what I plan on do be fine in terms of having my phone gain the image data I need to dynamically populate a listbox in my application?
Thank you,
Richard
is something like this would help?
windows phone 7 twitter appliaction
The standard approach is parse your web content and binding data into your listbox on wp7
It's perfectly possible to get images from a website and display them in a list box. The only issue you'll have if you're controlling the backend/website is formatting the output. If you can expose a list of Uris to the images in an XML format your task shoudl be really simple.

Is there a way to open the Bing Maps App on Windows Phone 7 to a specific location?

The built-in emulator from the WP7 Tools doesn't have the Bing App installed, and I don't have any phone hardware to test with. So I'm simply wondering, how can I open the Bing Maps Application to a specific Lat/Long?
Related Questions:
iPhone -- How can I launch the Google Maps iPhone application from within my own native application?
Android -- https://developer.android.com/guide/appendix/g-app-intents.html
It seems that starting from the OS version 7.1 there's a specific task available for this, see BingMapsTask and for directions the BingMapsDirectionsTask.
Unfortunately there is no way to launch the Bing Maps App from within your own application.
In an early CTP there was a way but this has been removed. Hopefully it will return in the future but it is not on any current, public, roadmaps.
This leaves two alternatives.
Option 1
You could perform a search for the lat/long you want to show. The search app does directly integrate with the bing maps app so, assuming that bing can take the lat/long you provide and return something useful, the user would still be able to do whatever they wished within the bing maps app.
This has 2 downsides though. Firstly, you have no control over the search results. And, secondly, you cannot test this on the emulator.
Option 2
You could use the BingMaps control within your own silverlight application.
(Prior to the RTM, it was posible to use the full Silverlight version of the control within your app. But, this had a few quirks and was only ever intended as a stop gap solution.)
While not as fully featured as the app, the control does offer a lot of functionality.
Without a real device, but you could simulate location data, for testing, with the Reactive Extensions.
Even with a real device you will probably want to look at doing this as it's a lot easier than trying to debug while walking or driving around.
Edit:
As per this post by Kevin Marshall, if you're going to use the WebBrowserTask() (option 1 above) prefix your query with "maps:" and URL encode your query string. eg:
var task = new WebBrowserTask();
task.URL = "maps:1%20N%20Franklin%2060606";
or
task.URL = "maps:37.788153%2C-122.440162";
Bing maps silverlight control is now supported out of the box and is part of the tools... learn more about it here: http://channel9.msdn.com/Learn/Courses/WP7TrainingKit/WP7Silverlight/UsingBingMapsLab/Exercise-1-Introduction-to-the-Bing-Map-Control
Yes you can do this. I've got it running in the emulator (however, as many people have said there's no guarantee the Bing Maps for Silverlight control will run on the actual device)
Here is the xaml:
<m:Map Grid.Row="0" x:Name="mapMain" ZoomLevel="5" Mode="AerialWithLabels" CredentialsProvider="YOURBINGMAPSLICENSE" />
and here's some code to set the location in the .cs class
var ppLoc = new Location(-37.821285, 144.97785);
mapMain.SetView(ppLoc, 17);

Categories

Resources