Windows Phone 7 Page Navigation and Data Retrieving - windows-phone-7

I'm pretty new at this and not sure what the code should look like. I would like to do the following:
I want to code an application that will navigate to the 'settings page' of the windows phone device and then "read"/ retrieve the data that displays under the 'Theme page'?

I tried using the MSDN site for that exact same thing, and found it a little lacking.
Basically what you want to use is the IsolatedStorageSettings object. It's essentially a Dictionary that you can access in any page.
Here is the blog I found the most useful (it has simple examples that are free of extraneous stuff):
http://www.jeffblankenburg.com/2010/10/15/31-days-of-windows-phone-day-15-isolated-storage/

Related

How to create About Dialog or About Page?

I am just finishing my latest app but I am straggling with the About page implementation.
How should I create About Dialog or About Page in Windows Phone?
I do not want to use just a plain page with text, because it doesn't look professional. Is there a standard way of doing this? An About page/dialog provided within the framework, for example?
There are many ways you can do this. The best would be if you could download a few of the popular free apps to see how exactly have they implemented it, to get a few ideas.
I prefer to go in one of the following 2 directions:
Custom styled page, that includes icons, developer details, some legal details (which controls did you use, under which licenses etc.) You can even use a pivot page, and then split the details about you, and legal details (and any other details) to multiple pivot items.
Use a popup from Coding4Fun toolkit. Scroll down for a sample of how it looks.

Google analytics in windows phone 7

I am using google analytics in my app to track each pages. I am using article from http://mark.mymonster.nl/2011/10/21/statistics-for-your-windows-phone-application-google-analytics. The problem is whenever I go to Content->overview in google analytics detail page I am getting values like Views/MainPage.xaml,View/Page1.xaml.
So my question is whether there is a way to change this pagename to custom names.
I figured out how to do this manually by just dipping into the source code. A Page View is just a specific set of AnalyticsEvent property values sent so all I'm calling is.
Log(new AnalyticsEvent() {
ActionValue = pageViewUri,
HitType = Microsoft.WebAnalytics.Data.HitType.PageView,
Name = "CurrentScreenChanged",
NavigationState = pageViewUri,
ObjectType = pageViewUri
});
Which is working how I want it.
In Visual Studio you can right click the page and select "Rename", then rename the pages to something sensible that makes sense.
Don't forget that you might have to change references to the pages in your code (if Visual Studio doesn't do that for you)

How to make a site-lookup addon for Firefox?

I'd like to create an addon for Firefox that would enable me to search a particular site by selecting text on one site and choosing to search another site by selecting that option in the context menu.
I already have an extension like that in my browser - the Wikipedia Lookup extension. Basically, I want the exact same functionality but which will send the search text to a different site.
I'm completely new to Firefox addons, so can somebody tell me what's involved in this? Or point me at a site with a list of instructions to do a plugin like this? I can see examples on how to make a Hello World kind of plugin but I can't see how to extend that example into what I need. Thanks.
Have you considered opening the Wikipedia extension source and modifying the pointer from wikipedia.com to the other search site? This is assuming you're using Windows Vista or higher. The source code should be located at:
C:\Users\YourUserName\AppData\Roaming\Mozilla\Firefox\Profiles\xxxxxxxx.default\extensions\something#wikipedia.com\chrome\content
You would then have to modify the source code inside to change the pointer, and the POST variables string to match that of the site you will be using.
I hope this at least points you in the general direction!
-Alex

Implementing the IExtractImage COM interface

I see a lot of references to IExtractImage when researching how to generate thumbnails in explorer, and I cannot use the new API which is Vista/7 only as the target OS is XP.
Almost all the results I've found talk about using IExtractimage to acquire thumbnails, not implementing IExtractImage to create them. I don't want to retrieve thumbnails, I want to make them so that i can display a custom image format in windows explorer.
Those that do talk about what I want to do, give no examples, dont tell me how I would implement the IExtractImage object and tell me nothing about the APIs to use to actually draw to the thumbnail, and normally reference msdn articles which give 404 not found results.
I'm using c/c++
You want to implement IExtractImage (or IExtractImage2) and register it as a shell extension. A good article on this on CodeProject: http://www.codeproject.com/KB/shell/thumbextract.aspx

How do I write a custom start page for VS 2008?

I've looked around, and not found much documentation on this, so I thought I'd ask where all the experts hang out.
I would like to create a new start page, with bug tracking and source control interfaces, rather than the standard MSDN feed. I seem to remember that one can do more than just supply a different URL, but can actually implement a component to run as the start page, which needn't use web content. I may be wrong. Can anyone please give me some tips?
You can do is to create a DTE ToolWindow (read: Creating a ToolWindow hosting a .NET user control) and host your controls there, then its pretty easy to create an addin that will show the tool window as a document at runtime. (The same way that the start-up page looks)
Go to Tools > Options > Environment > Startup and put your RSS URL in the Start Page news channel field.
That should give you enough, but if you want to do more you can select open home page in the at startup dropdown and point it at a URL with the appropriate content. If you use an intranet with Windows authentication you could display user specific stuff.
This will be completely customizable in VS 2010. You'll be able to do anything you want to on the start page.

Resources