Visual studio feeds

All Visual Studio blogs in one place

Subscribe

Enter your email address:

Delivered by FeedBurner

Increase your website traffic with Attracta.com

Google+

Contact

Email:
Subject:
Message:
Anti-spam: How many eyes has a typical person?

Follow us on FB

Search

MobileOSGeek Weekly Links – 02-12-2012

AddThis Social Bookmark Button
Updating your Windows Phone Location code to use WinRT – Adam Denning Tips for using Rooms on other phones – Juliette Guilbert A Lap Around the Windows Phone 8 SDK – Nick Randolph Background Agent Expiry in Windows Phone 8 – Matt Lacey Increase your app reach with Windows Phone 7.8 – Todd Brix TouchDevelop: create apps ON iPad, iPhone, Android in addition to PC, Mac, Windows Phone – Nikolai Tillmann Camera Launching From HTML App In Windows Phone – Matthias Shapiro Q&A #32 – What are the different Tile templates available in Windows Phone 8? Q&A #31 – What
are the types of App Flavours that Windows Phone 8 supports? Q&A #30 – What engine does .NET for Windows Phone use? Download Windows Phone 8 Training Kit How to Change the Start Page of the Windows Phone 8 Application in Visual Studio 2012? How to Open the Application Manifest file for Windows Phone 8 in XML Editor? Windows Phone 8 SDK Feature – Graphical Manifest Designer How to save ringtone in Windows Phone using SaveRingtoneTask? How to Search for Music in the Windows Phone Marketplace using MarketplaceSearchTask? How to review the App in Windows Phone using C#?  ...(Read whole news on source site)

How To: Call a generic method with a runtime type

AddThis Social Bookmark Button
Problem:
Developing a generic class that maps datasets, datatables and datarows from a legacy system to my domain model, I ran into an issue. I wanted to call a generic method with a runtime type. Lets say the method looked like this: public string DoSomething(string param). Because I use reflection to iterate properties on a type, the type of the properties was dynamic and only known at runtime. I wanted to do something like this: DoSomething("bloggingabout"); This however resulted in an error message. The tooltip on the red colored propertyInfo read "Cannot resolve symbol 'propertyInfo'", while the build error stated "The type
or namespace name 'propertyInfo' could not be found (are you missing a using directive or an assembly reference?)". This is expected behavior, because "The type argument [...] can be any type recognized by the compiler." So that says compiler. So the type is parsed (and should be known) at compile time. Solution:
The solution is found in reflection. Taken from the MSDN article for the MethodInfo.MakeGenericMethod Mehod:
The MakeGenericMethod method allows you to write code that assigns specific types to the type parameters of a generic method definition, thus creating a MethodInfo object that represents a particular constructed method. If the...(Read whole news on source site)

Enable preview in Visual Studio 2012 after Update 1

AddThis Social Bookmark Button
After installing Visual Studio 2012 Update 1, my Visual Studio stopped opening files in preview mode when I clicked them in the Solution Explorer. This setting seems to have changed with the installation of Update 1. To re-enable opening files clicked (once) in the Solution Explorer in Preview mode, go to ‘Tools’ – ‘Options’ – ‘Environment’ – ‘Tabs and Windows’. There, check the box under ‘Preview Tab’ – ‘Single-click opens files in the preview tab in:’ – ‘Solution Explorer (Alt + click to avoid previewing)’. Hope this helps  
href="http://feeds.feedburner.com/~ff/GumpsBlog?a=2x4L-5oq5R4:7LiKKu4Qd58:I9og5sOYxJI">
...(Read whole news on source site)

Creating Windows Store App Using PhoneGap (Cordova)

AddThis Social Bookmark Button
There is new PhoneGap release called – Cordova or PhoneGap 2.2.0 that supports WinRT features, in this post I’ll demonstrate some of the basics of PhoneGap for Windows Store apps. Download Demo Project What is PhoneGap? PhoneGap is a free and open source framework that allows you to create mobile apps using standardized web APIs for the platforms you care about. This means that using PhoneGap in your Windows Store app can also be used by other Mobile OS such as iOS, Android, Windows Phone 7, Blackberry
and more. Enabling PhoneGap for Windows Store app is very easy, all you need is PhoneGap 2.2.0 library (Download), Visual Studio 2012 and Windows 8 OS. Getting Started with PhoneGap for WinRT Download PhoneGap 2.2.0 - http://phonegap.com/download Create Blank JavaScript project. Add “cordova-2.2.0.js” JavaScript file to your js folder. (Located in \lib\windows8) Add reference to cordova js file from default.html page
.csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier New", courier, monospace; background-color: #ffffff; /*white-space:...(Read whole news on source site)

Profiling Startup Of VS2012 – dotTrace Profiler

AddThis Social Bookmark Button
Jetbrains which is famous for the Resharper tool has also a profiler in its portfolio. I downloaded dotTrace 5.2 Professional (569€+VAT) to check how far I can profile the startup of VS2012. The most interesting startup option is “.NET Process”. With that you can profile the next started .NET process which is very useful if you want to profile an application which is not started by you.     I did select Tracing as and Wall time to get similar options across all profilers. For some reason the attach option did
not work with .NET 4.5 on my home machine. But I am sure that it did work with .NET 4.0 some time ago. Since we are profiling devenv.exe we can also select “Standalone Application” and start it from the profiler. The startup time of VS does increase about a factor 3 but that is ok. You get mainly three windows to work with. The first one shows the threads where you can drill down thread wise where most time is spent. I The next window is the call tree which does merge all threads...(Read whole news on source site)

Scaled DPI-aware image assets for Windows 8 Apps in Visual Studio 2012 Update 1

AddThis Social Bookmark Button
With the latest update to Visual Studio 2012, the mechanism for specifying and verifying DPI-aware images has just gotten easier. I've written and spoken about automatic DPI-aware image assets in Windows 8 apps in my book Windows 8 XAML in Action, and also at events. Here are the details, but in a nutshell, if you use a specific naming convention for images in your Windows Store app, for example logo.scale-100.png and logo.scale-180.png, your code can simply reference the root name (logo.png) and the runtime will handle pulling in the correct image for that DPI. Specifying images In base Visual Studio 2012, the file picker in the app manifest didn't quite
understand this convention. To pull in DPI-aware images, you had to simply type the root file name in the textbox. Everything worked beyond that. In Update 1, the appxmanifest designer has been updated to better support these types of image assets: Another nice change is that the "store logo" entry has been moved from the last tab to the first tab. This is a huge deal as the latest version of WACK now checks to make sure you have that logo in place. Those X logos you see in the Windows Store? That's from folks forgetting to update this logo. With it now on the first...(Read whole news on source site)

How to validate a required URL in HTML5?

AddThis Social Bookmark Button
I came across this one when trying out a sample Windows 8 app using HTML5 and JavaScript. How to validate a required URL in HTML5? You could validate the URL and also specify it as a required field in a Windows 8 App by using simple HTML5 tags and attributes. To specify the type of the textbox as URL, simply specify the attribute “type” of the input field to “URL”. To make this a mandatory field, set the required attribute. Below is a sample code along with the screenshot to demonstrate how to validate an required URL in HTML5?
html> App1

How to validate an required URL in HTML5 ?

When the textbox is left empty When an invalid URL is entered...(Read whole news on source site)

How to provide a default value for a Auto-Implemented Properties in C# ?

AddThis Social Bookmark Button
In C# , when you are using an Auto-Implemented Properties , you can use the constructor of the class to set the default value for that property. For example , class Movie { public Movie() { MovieName = "Thuppaki"; } public string MovieName { get; set; } } In the above example , the Auto-Implemented Property MovieName’s default property is set in the construtor of the class Movie.

Native Screenshot feature in Windows Phone 8

AddThis Social Bookmark Button
In one of my previous blog posts, I wrote about Screenshot App for Windows Phone Mango Windows Phone 7 Screen Recorder The ability to take the screenshot of the screen in the device was one of the most wanted feature especially among the bloggers. Now, the Windows Phone 8 includes this feature which allows the users to take screenshot natively with the combination of the shortcut keys on their Windows Phone device. How to take screenshot in Windows Phone 8? You can take the screenshot in Windows Phone 8 by pressing the Window Phone start button and the Power button
at the same time. This will take the screenshot of the current active screen and save it in the screenshots album of your Windows Phone 8....(Read whole news on source site)

Home