yashsingh1/xdaforums huggingface dataset:
[Windows Phone 7 Software Development] Maikeu Locatelli:
will the WP7 support for the old apps of wm?

i know, only market apps, but if we can cook, then we can add a install app existent which install apps, this if the programs have acess to the file system and register.
[Windows Phone 7 Software Development] StevieBallz:
As far as current information goes, there is no support for legacy software, so I don't think that the libraries necessary for WM6.5 hardware would be on the phone.

Also the window-management (if one wants to call it that) would be completely different in the Windows Phone 7 series.

Another important thing is that it is based on a different kernel than Windows Mobile 6.* (which uses Win CE 5.1). I don't remember what the last number was but it could either be the Win CE 6 Kernel or as was rumored some time ago: the first use of the new Win CE 7 Kernel. This means that lots of API might have changed or be missing.
[Windows Phone 7 Software Development] ramdroid77:
if we would manage to cook our own custom WP7 ROMs in the future then we also can get us access to the native api. however it won't be possible to run standard wm 6 applications due to GUI components missing. But we still could develop some nice little hacks, tools, services, free customization or maybe even build libraries with native functions exported (to re-use them in the Silverlight apps) to allow us develop something like a simple file explorer, task switcher or registry editor! though not sure about the Silverlight part. What are some .NET experts saying there?
[Windows Phone 7 Software Development] StevieBallz:
Silverlight and Isolated Storage

When I first read, that there was no direct access to the FileSystem and instead the Silverlight isolated storage was to be used I wondered wether the regular Silverlight Quota's for the isolated storage would apply.

Anyone who wants to know more on what IsoStore quotas are can look for more information here: http://msdn.microsoft.com/en-us/magazine/dd458794.aspx

Suffice to say, that for Silverlight 2 there was a default quota of exactly 1 Megabyte of Storage Space (which could be expanded by querying the user). So I went to find out if this would apply to WP7s Applications as well.

Luckily there are methods for requesting exactlly this information.

This told me that I have: 1 927 Megabytes of free space and that the quota limit is set to the maximum value supported by a long variable - which implies no quota limitation.

The question remains: is this only true of the emulator image or will this apply to the final phones as well (my guess currently is that the 1.9 GB of free space imply 2 gb storage space on the emulator image and ~ 90 mb being used by the system and IE).

I hope somebody thinks this information is useful, I'll perhaps try how much i can fill this memory up and how big my programm can get in memory next.
[Windows Phone 7 Software Development] TheNinthPlayer:
How do I create 'pages' in VS?

I've downloaded the new VS Express and made a basic GUI app, but I can't figure out how to make pages. Please see my pic below to understand what I am refering to.

Has any one figured this out or seen any guides on how to do this?
[Windows Phone 7 Software Development] Musicman247:
Don't remember where I saw it, but I think pages or "pivots" as they have been called are disabled in this release of the sdk.

Edit - It's on page 57 of the UI Design and Interaction Guide.
[Windows Phone 7 Software Development] DMAND:
Yup it's meant to come in the updated release, also support for Visual Basic
[Windows Phone 7 Software Development] matejdro:
Visual Basic

I just downloaded Windows Phone Developer tools and i can see only support for C#.

Does that means that they are still working on VB part or that they done with VB and i should finally start learning some real programming languages?
[Windows Phone 7 Software Development] mrabie:
check this out... good behavior that works like the panoramic control for that might be released in future versions of the SDK

http://aimeegurl.com/2010/03/18/pan...ne-7-with-no-code/comment-page-1/#comment-966

hope this helps
[Windows Phone 7 Software Development] hyellow:
you know what I'd like to see?

The WP7 homescreen consists of hubs, right? and swiping it to the left, gives you a list of applications. The app list doesn't seems to be finished yet, but how likely will it be, that this page will eventually be made available for UI customization? I mean, the hubs/tiles interface should still be the main screen when getting the phone out of standby, but the app page could an ideal spot for custom UI, just by a swipe of your finger. just a thought.
[Windows Phone 7 Software Development] DMAND:
Quote from the developer forum

Hi folks,

I have some great news!

I received feedback from the GPM for the Microsoft VS Languages team, who indicates:

"there will definitely be support for writing VB apps for Windows Phone 7, but we are still working on the details and the timeline".

Best Regards,

Mark
[Windows Phone 7 Software Development] DMAND:
Cool link! :)
[Windows Phone 7 Software Development] matejdro:
Yay, i can postpone my VB to C switch :D

Thx for info
[Windows Phone 7 Software Development] TheNinthPlayer:
Thanks for pointing out where in the guide it said that. Also thanks to mrabie for that link. I hope the 'pivot' template released with the final version of VS is a simpler though.
[Windows Phone 7 Software Development] TheNinthPlayer:
You can probably get away with using VB in SL4 using the VB edition of VS2010. Just avoid using any libraries or controls that SL4 doesn't support in WP7. Then when they launch WP7 it will just be a matter of re-making your interface and copy & pasting most of the code.

Beware: I am an idealist ;)
[Windows Phone 7 Software Development] TheNinthPlayer:
Silverlight limitation \ work around

I was investigating if it was possible to create a Silverlight (SL) application that can help IT people with basic task; ping, trace-route, port scan, viewer HTTP headers, etc. Unfortunately Silverlight doesn't seem to be cable of doing any of this. Very disappointing to learn.

Anyway, the only work around I can in-vision is if a program were to be installed on that network that had all these abilities and then SL could just be used as a remote control. Since many of us in this forum are tech savoy people, I'm curious as to your feelings toward such an application.

Personally, I would use it only as a last resort. I have a similar application for my iphone, but its all self contained on my phone which makes it great when I have to troubleshoot a foreign network.
[Windows Phone 7 Software Development] StevieBallz:
Possibly you could do the part about an http-header viewer, but as silverlight and XNA currently don't give you access to the ip-stack itself, port-scanner, ping, tracert don't seem possible.

A fact, MS hopefully will address. As to an application which does this from the phone using a proxy: if i have to setup that proxy first, I'd rather stick with that machine for the occasional ping, tracert, too - but that's just me. Nice idea anyway.
[Windows Phone 7 Software Development] X-BLADE™:
Arabic support in the development tools? [Edit: resolved]

Hello

I'm new to WM development and trying to learn on the WM 7 CPT tools released last week. I try to change label text to Arabic characters but they show up as squares. Are the current tools not yet supporting such languages or is there a work around?

On a semi-related note, is anybody else experiencing some lag while playing around the emulator? It just seems quite slow. I'm running on quite a decent PC (quad core, 2gb ram etc).
[Windows Phone 7 Software Development] LooperNor:
How would I go about downloading a file?

How would I download a file from the internet onto the phones storage?

I got a text file in mind, and I'd like the text from the file to be displayed in a text box.

So does anyone know how I would go about doing this?
[Windows Phone 7 Software Development] GuestK00306:
You don't need to download it to the storage device to be able to display a text file from the net. I haven't developed on WP7 yet, but assuming you can use System.Net.dll and System.IO.dll:

C#:

HttpWebRequest hwr = HttpWebRequest.Create("http://www.google.com/Robots.txt");
WebResponse resp = hwr.GetResponse();

StreamReader sr = new StreamReader(resp.GetResponseStream());
this.textBox1.Text = sr.ReadToEnd();
sr.Close()

edit:

And looking at Scottgu's Twitter code example, you should be able to do:

private void Form1_Load(object sender,EventArgs e)
{
string url = "http://www.google.com/Robots.txt";

WebClient wc = new WebClient();

wc.DownloadStringCompleted += new DownloadStringCompletedEventHandler(wc_DownloadStringCompleted);
wc.DownloadStringAsync(new Uri(url));
}

void wc_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e)
{
if (e.Error != null)
return;

string DownloadedText = e.Result;
this.textBox1.Text = DownloadedText;
}
[Windows Phone 7 Software Development] dayyanj:
What's heavy?

The reason your code isn't working is you already have the xml file open, you can't create two handles to the same isolatedstorage. You have to read the xml into an XDocument, close the file, add the new element, write back to the file.

If there is a better way of doing this, I'd be happy to know too.
[Windows Phone 7 Software Development] Robby Light:
I feel a bit sheepish to ask, but would you be so kind to write the code for me. A code that deals with my example.

Would be very very nice!

Hope you find the time to do this for me.

Thanks for your help til yet!
[Windows Phone 7 Software Development] dayyanj:
Here you are.

// Add new Item

var store = IsolatedStorageFile.GetUserStoreForApplication();
// Open the document into a StreamReader
StreamReader sr = new StreamReader(store.OpenFile("LentItems.xml", FileMode.Open, FileAccess.Read));
// Add the content of the file to an XDocument
XDocument data = XDocument.Parse(sr.ReadToEnd());
// Close the file
sr.Close();

// Create the XML to be added
XElement newAppointment = new XElement("Appointment", new XElement("Name", newperson), new XElement("Contact", newcontact), new XElement("Date", newdate);
XElement rootNode = data.Root;
// Add the XML in the XDocument (data)
rootNode.Add(newProgress);

// Write back to the file
using (StreamWriter sw = new StreamWriter(store.OpenFile("LentItems.xml", FileMode.Open, FileAccess.Write)))
{
sw.Write(data.ToString());
sw.Close();
}
[Windows Phone 7 Software Development] Tom Servo:
You'll get that error usually if you forgot to close your reader. If the object is declared globally in the class, it is mandatory to do that. If it was locally in a function, you should still do it, because otherwise, you'd be relying on the garbage collector to finalize and dispose it, which can happen at any random time, even after you're trying to write the file on a different file stream.
[Windows Phone 7 Software Development] Robby Light:
@ dayyanj:

Thank you really much for the code.

But I still get some errors.

The name 'newProgress' does not exist in the current context

'Verleinix.XDocument' does not contain a definition for 'Root' and no extension method 'Root' accepting a first argument of type 'Verleinix.XDocument' could be found (are you missing a using directive or an assembly reference?)

'Verleinix.XDocument' does not contain a definition for 'Parse'

for Error 1: Did you mean "newAppointment" instead of "newProgress" here?

for Error 2 and 3: I have no idea waht is missing :S

Would you please be so kind to look over the code again?

Where are my mistakes?

Thank you for your work till here, the rest seems to work!

Best wishes

Robby
[Windows Phone 7 Software Development] dayyanj:
Yup, sorry I wrote the code with notepad so didn't test, you are right the newProgress should be newAppointment.

I don't know what Verleinix is, but you need to add a reference to System.Xml.Linq. This "should" solve the second issue.
[Windows Phone 7 Software Development] HerrVorragend:
try "personal shopping assist" from marketplace... it scans the barcode from a take picture and than starts a product- / price-search.
[Windows Phone 7 Software Development] Robby Light:
Haha, I'm sorry!

"Verleinix" is the name of my app :D

I didn't tell, my fault.

But I already have added the System.Xml.Linq Reference.

Look: http://thepagedot.de/Bilder/screenshot.jpg

Or is there something else I have to do?
[Windows Phone 7 Software Development] dayyanj:
have you added the following to your class?

using System.Xml.Linq;
[Windows Phone 7 Software Development] Robby Light:
Yes of course.

As you can see in the screenshot I have added every XML-using derivate I can imagine :S

And I added the references. Please lokk in the screenshot and tell me what's to do.

I am desperate...
[Windows Phone 7 Software Development] dayyanj:
Remove

using System.Linq

change the order of

using System.Xml.Linq;

using System.Xml;

to

using System.Xml;

using System.Xml.Linq;

Try again, and let me know.
[Windows Phone 7 Software Development] Robby Light:
I couldn't imagine that the order of the usings is relevant, but of course I tried it out.

Without success.

I am at the end of my knowledge.

Please someone help me couse I really don't know why my programm doesn't work.

Does it maybe help to post the whole project here?

Thank you for helping. :S
[Windows Phone 7 Software Development] dayyanj:
Instead of "XDocument" try the full reference "System.Xml.Linq.XDocument"
[Windows Phone 7 Software Development] Robby Light:
That's it!

I would have never expected, that this is the solution, but it is.

Thank you very, very much.

Now I just have one more Error:

this line here thorws an IsolatedStorageException called "Operation is not permitted on IsolatedFileStream":

StreamReader sr = new StreamReader(store.OpenFile("LentItems.xml", FileMode.Open, FileAccess.Read));

Any ideas?

I neither know what this exception mean, nor why it is throwed.

Thank you really much for your help till here.

You will definately will be named in my credits.

Can you help me with this last Problem, too?

Best wishes and friendly greets!
[Windows Phone 7 Software Development] dayyanj:
It seems you have the file open already. I would check your code and make sure that you are closing the file when you no longer need to have it open (you may be reading it somewhere else in your app, but not closing the stream etc.

If you would like me to check your entire code, please PM me and I will give you my contact details.
[Windows Phone 7 Software Development] Robby Light:
This is the method for reading the XML file:

private void showLentItems()
{
// Load XML-File
var items = XElement.Load("LentItems.xml");

int counter = 0;
foreach (var a in items.Elements())
{
lentList[counter] = new Item(a.Element("Name").Value, a.Element("Contact").Value, a.Element("Date").Value, a.Element("DateReturn").Value, counter, "lent");

AppointmentLent sce = new AppointmentLent(lentList[counter]);
lbxLent.Items.Add(sce);
counter++;
}
}

It really seems like there is no closed read progress. The XML is still open, I think.

Is there an alternative Way to read from the XML-File and get the same result as I do?

Thank you, you will get a PM from me where you can check the whole project, if we can't find a solution, okay?

Thank you really, really much for your help!
[Windows Phone 7 Software Development] dayyanj:
Instead of using "var" use XElement

---------------------------------------------------------------------------

var store = IsolatedStorageFile.GetUserStoreForApplication();

// Open the xml file into a streamreader

StreamReader sr = new StreamReader(store.OpenFile("LentItems.xml", FileMode.Open));

//Read the content of the file into the XElement "items"

XElement items = XElement.Load(sr);

//Close the xml file (note your xml data is still stored in the XElement "items"

sr.close;

int counter = 0;

// Create a list of enumerable items

IEnumerable<XElement> childlist =

from el in items.Elements()

select el;

foreach (XElement a in childList)

lentList[counter] = new Item(a.Element("Name").Value, a.Element("Contact").Value, a.Element("Date").Value, a.Element("DateReturn").Value, counter, "lent");

AppointmentLent sce = new AppointmentLent(lentList[counter]);

lbxLent.Items.Add(sce);

counter++;

--------------------------------------------------------------------------------

It's always best to use the streamreader option like in the last example I gave you, this way you can be sure that the file is opened and closed.

Make sure you check the rest of your app for similar issues, and change them to use the Streamreader option rather then opening the file directly with XElement or XDocument.
[Windows Phone 7 Software Development] Foxman13:
Have a look at the CameraCaptureTask API. It returns a stream that you could pass into the barcode parser.

http://msdn.microsoft.com/en-us/library/microsoft.phone.tasks.cameracapturetask(VS.92).aspx
[Windows Phone 7 Software Development] Robby Light:
Thank you for the code.

I have done the loading-operations of the items with the streamreader now and searched for other non-streamreader solutions in my code.

But there weren't more.

Never the less my programm throws every time I want to use a Stream-Reader on one of my XML-Files the IsolatedStorageException "Operation not permitted on IsolatedStorageFileStream." :(

Maybe I have to change some properties of my XML-Files?

I really don't know.

I am near the solution, this is the last step to the final app.

Please help me at this last point.

Thank you.

If you can't help from here, check your PM, dayyanj, I've sent you some contact datas.
[Windows Phone 7 Software Development] dayyanj:
Before sending me the code, uninstall the application from you phone/emulator (press and hold the application in the application list on the phone / emulator then select "uninstall" from the menu that appears.

close the emulator/restart the phone (may not be necessary, but just to be safe)

RE-deploy your application and test again. If you still have the same problem, then I will take a look at the code.
[Windows Phone 7 Software Development] jgibo1:
[Q] Will lync work with previous OCS servers?

Looking forward to lync on my wp7. Anyone know if it can work with ocs for communicator 2005 or 2007? Hope I am wording that right.
[Windows Phone 7 Software Development] Robby Light:
Didn't work!

But thanks. Did you recieve my mail?
[Windows Phone 7 Software Development] dayyanj:
Yep, I've looked at your code, but my compiler isn't liking it on the machine I am using at the moment, so I will try again tonight. What I did notice though was you are using "IsolatedStorageFile.GetUserStoreForApplication();" where it isn't needed.

Change this:

--------------------------------------------

var store = IsolatedStorageFile.GetUserStoreForApplication();

// Open the xml file into a streamreader

StreamReader sr = new StreamReader(store.OpenFile("LentItems.xml", FileMode.Open));

//Read the content of the file into the XElement "items"

XElement items = XElement.Load(sr);

//Close the xml file (note your xml data is still stored in the XElement "items"

sr.close;

----------------------------------------------------------

To this and see what happens

----------------------------------------------------------

//var store = IsolatedStorageFile.GetUserStoreForApplication();

// Open the xml file into a streamreader

StreamReader sr = new StreamReader("LentItems.xml");

//Read the content of the file into the XElement "items"

XElement items = XElement.Load(sr);

//Close the xml file (note your xml data is still stored in the XElement "items"

sr.close;

------------------------------------------------------------

I'll be able to try your code again in about 3 hours time so should be able to get back to you by about 2030 JP time, however in the meantime try the above and let me know how it goes.
[Windows Phone 7 Software Development] Duese2000:
Getting data from SQL Azure & OData

Hi all!

Since a few days i try to code an WP7 app which gets some data from my SQL Azure DB. The DB is working fine and it's extended with OData functionality. When i call the URL in my browser i get all the data back in XML format.

When i try this in my WP7 app, i didn't get anything.

Does anyone has an idea how i can get the data using VB.Net??

Thanks
[Windows Phone 7 Software Development] at45:
Could someone with the emulator please tell me...

Could someone with the emulator please post an image of the start screen with the green accent colour so that I can find out the exact colour and size/position of the tiles? It's just for making a themed lock screen.

Thanks
[Windows Phone 7 Software Development] axeroz:
Same... Now, I use the Tables of Windows Azure and it works better! Try to inform you about it.
[Windows Phone 7 Software Development] kennyken747:
Sockets?

Any updates on WHEN exactly sockets will be available to utilize for devs?

It needs to be very soon, real-time multiplayer games and many types of apps are damn near impossible without it.

Why in the world would Microsoft push XBL on Windows Phone and then go and mangle it like that..

In fact, we all need to collectively push for this somehow, we need them to listen to us screw waiting.
[Windows Phone 7 Software Development] athompson:
You can always write a socket emulation layer running over web-services ;)
[Windows Phone 7 Software Development] kennyken747:
Ehh but developers seem to not want to do that.. if that's the case then where are all of the real-time online m.p. games right now? Besides AlphaJax...
[Windows Phone 7 Software Development] toolsche:
Here you are!

The UI Design and Interaction Guide [PDF] says:

and
[Windows Phone 7 Software Development] JustinC74:
The simplest answer is no, at this time the intergration will only be with Lync server. Currently the group is trying to fix this issue and they are expecting that when they release it for WP7 in MS's Q2 2011 it will work with communicator 2007 R2.
[Windows Phone 7 Software Development] ~~Tito~~:
Devs, please post your questions regarding anything here. The forum should be clean of discussion posts, and should only have app posts.

~~Tito~~
[Windows Phone 7 Software Development] emigrating:
Yeah, lets all search thru a single thread with umpteen hundred pages looking for an answer to a question someone might have asked rather than having one thread per question/topic.

The forum is called "Software Development" right? if it was called "Application Releases" I would agree with you, but it's not... Geez, someone needs to pull the stick out their ass or get down from that high horse.

[Whoops I meant to push quote not edit. . .]
[Windows Phone 7 Software Development] kennyken747:
Tito no disrespect but that totally ruined my thread and others'.
[Windows Phone 7 Software Development] ~~Tito~~:
I will un-merge these threads, and I will contact the higher ups as well to see if they can add some more forums like the other sections. I just wanted to make this place clean and spotless :cool:.

~~Tito~~
[Windows Phone 7 Software Development] anaadoul:
check this out

http://www.windowsphoneme.com/?p=365

unfortunately it's not yet supported.
[Windows Phone 7 Software Development] LooperNor:
Can't seem to get it to work.

It doesn't give me any errors either, it just doesn't show me the file.