Silverlight and Windows 8 Consumer Preview working? - windows

The Windows 8 Consumer Preview is now available. It is known that Silverlight will not run in metrostylemode, but with legacy/desktopmode it is working?
Anything unusual to keep in mind?
Are you able to access Silverlight applications?

(sorry for my bad english)
I have an medium sized SL5 LOB RIA Services app that runs OOB and it is working fine on windows 8 CP. The only thing that did not worked as I expected is that the on-screen keyboard do not show when I enter a text field. probably there is a way to p/invoke this but it would be nice if this happens by default.

I don't think there was anything new posted to that effect (but then the story was already explained in Dev Preview). It basically works the way you describe in Beta.

Apparently you can add a meta tag which causes the metro browser to prompt the user, but I have not yet tested.
Check out the following link:-
http://www.winmatrix.com/forums/index.php?/topic/33701-plug-in-free-web-in-ie10-metro/

Related

Multilevel expander View in windows phone 8

I am developing windows phone application and got stuck in a problem where I need use ExpanderView (using Telerik or phonetoolkit) but at Multiple levels (0-5), much like TreeView.
Please share any tutorial if anybody got one.
I just spent many hours in playing with this control but no luck.
Zauk
Have you checked the Telerik Examples app in the store? I belive there is an example like the scenario you want.
You can download sample code provided by Codplex for windows phone-8 and see Expanderview it's very clear and easy to use.

How to fix "Unable to activate Windows Tailored application" on Win8

I get "Unable to activate Windows Tailored application" error in Metro app when I'm running it under debugger of Visual Studio 11. I installed Windows 8 x64 Developer Preview on my Dell E6510 laptop.
I googled it and found out many people saying it happens when screen resolution is smaller than 800x600 but it's 1920x1280 in my case.
The app itself contains nothing. It's just empty wizard created application which is nothing but windows with black background.
Any ideas? It seems like very common issue.
The solution was quite bizarre but I figured it out.
It turns out not a single Metro application works under Administrator account including my apps. I'm talking about built-in Administrator account that is disabled by default (but which I enabled).
It gives "Access denied" error so I suspect it's somehow related to the way WinRT COM objects were registered or something like that. Go figure.
I hope somebody from Microsoft is reading this.
Best solution is to wait 2 weeks for the next release. The developer preview is full of fun bugs like this. I've seen this error caused by invalid app.xaml. Double check that you really haven't changed anything. I've also seen this error sometimes resolved by rebooting. Have fun!

IsolatedStorageSettings.ApplicationSettings doesn't get stored to restart

I'm writing a WP7 (Mango) application.
I store values in WP7 IsolatedStorageSettings.ApplicationSettings, then I call IsolatedStorageSettings.ApplicationSettings.Save();
If I press back, and leave the screen, and I come back I can read values just fine.
However if I press restart in the debugger (or just restart from the emulator) the ApplicationSettings throws a KeyNotFoundException, as if it didn't persist...
I haven't yet tried it on device, I don't have one available right now.
What can I possibly be doing wrong?
It turns out the problem wasn't in the emulator AT ALL, so everyone suggesting this is "by design" in emulator turned out to be wrong (but I can't undo my upvotes as they are locked).
The problem was that I tried to persisting a non-serializable class, and wp7 handled this by throwing away ALL my settings at next Save(). When I removed that single Add() (or more precisely serialzied that object with JSON.net (which COULD handle it), and persisted the json string) all my problems simply went away.
Still, ridiculous behavior on wp7's part.
This behavior is "by design" on emulator.
I suggest, below steps for your code.
1. Check Key is available or not
2. If not, then set default value to it.
Check that question: Automatic login process in Windows Phone 7.1 application
On emulator IsolatedStorage is not persistent after reload and that's for both files and application settings.
You can use Isolated Storage Explorer Tool from wp7 sdk to take a snapshot of isolated storage content and restore it after the restart: Click
That problem doesn't occur on real device where Isolated Storage is persistent.
I got the same error(The error occurs because after you stop the debugger the key get deleted), and I posted a question regards this: Automatic login process in Windows Phone 7.1 application. suggest you to use site settings instead of application settings. One more option:http://www.codeguru.com/csharp/.net/wp7/article.php/c19215/Using-Isolated-Storage-for-your-Windows-Phone-7-WP7-App.htm. Hope it solves your problem.

iPhone simulator for Windows

I would like an iPhone simulator for Windows. Something similar to this one here:
http://css-tricks.com/video-screencasts/38-basics-tips-on-designing-for-the-iphone/
Note, this is NOT to test iPhone Apps... but rather, to test websites. I know I could just use a browser, but I was hoping for something with a bit more functionality ( specific to the touch interface ) that I could test some web pages on.
I've seen the beta project here: http://labs.blackbaud.com/NetCommunity/article?artid=662
Is this the best option at the moment? The article was from last year, that's why I ask.
Just to add additional information to this post:
found another one for both iphone and ipad: http://code.google.com/p/ibbdemo2/downloads/detail?name=iBBDemo2.air&can=4&q=
Google Chrome now has the ability to "Toggle Device Mode" by clicking the Phone icon in Dev Tools. This gives you a more touch-specific interface than just using the browser, allows you to throttle data, etc...
From here, you can choose the device:
You can do it all online, without a simulator:
http://iphonetester.com/
Keep in mind, it's not a real test on an iPhone, but if you use it with Safari or Chrome for Windows, you'll come really close to how it'll look on an iPhone.
UPDATE: iphonetester.com no longer exists.
That's the best I found: http://iphone4simulator.com/
There is a commercial successor to iBBDemo2 that's available for $40 - http://www.electricplum.com/studio.aspx

Screensaver to cycle through webpages?

Does anyone have any suggestions for how to create a screensaver that can cycle through some webpages? I would like to create a screensaver that displays various dashboard and statistics pages that are available in our Hudson CI server. This is a windows machine, with firefox and IE available.
Extra bonus points if I can do it in ruby! :-)
Cheers,
Mike
I programmed a lot of screensavers in Delphi, but I think the following should be applicable to all sorts of development environments.
You create the main form of your screensaver and put an IE-control on it (or if your development environment does not support it, an OLE-container) and then create a timer which changes the webpage shown by the IE-control.
Sorry no solution in ruby....
Ok, so after a few false starts I found a pretty simple solution. I used Visual Studio Express Edition to create a windows forms application. You just need to drag a WebBrowser control onto the form and resize to full screen at startup. Then all you have to do is hook up the event handlers to deal with the mouse and keyboard.
Some more details here:
Blog post on how I made the screensaver
Source code on github

Resources