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

W8WIL #4: Pinch-to-Zoom and Rotate in the Simulator

AddThis Social Bookmark Button
As most of you may have figured out, I've been doing a fair amount of Windows 8 development over the last year or so, much of it focused on HTML5, CSS3, and JavaScript apps. In this 3rd (whoops! It's the 4th, not 3rd) installment of my Windows 8: What I've Learned series, I'll share some tips on using the Windows Simulator for testing your Windows Store apps. One of the features that I find very handy in Visual Studio 2012 for building Windows Store apps is the Simulator. You can build and deploy your apps to the simulator in order
to test them in ways that would not otherwise be possible without specialized hardware. For example, if you're building your apps on a desktop machine with a native resolution of 1920x1080 (such as the PC on which I'm writing this), the Simulator allows you to change the target resolution on the fly to simulate a variety of resolution and DPI levels, from a 10.6" screen running at 1024x768 (the minimum resolution to run Windows Store apps) to the same size screen running at 1366x768 (the minimum resolution needed to support snapped view), all the way up to a 27" screen...(Read whole news on source site)

Windows 8: Implement Search Suggestions

AddThis Social Bookmark Button
source: jesseliberty.com This time take a look at what it takes to have your application offer Search suggestions as the user types into the Search box.   To examine this, we'll create a Windows 8 application with the suggestions hard coded, but you can just as easily obtain the suggestions from a web service, or database, etc. Once again what I'm going to do is strip down one of the Microsoft SDK examples and then build it up from scratch.  You can find the original sample by clicking on Help->Samples in Visual Studio.  The one you
want is Search Contract. To begin, create a new Blank application in Visual Studio and call it SearchQueryList.  The very first thing to do is to double-click on PackageAppxManifest and then click on the Declarations tab.  Choose Search from the available declarations and add it to the project. Open App.xaml.cs and override OnSearchActivated as follows, async protected override void OnSearchActivated(SearchActivatedEventArgs args) { await EnsureMainPageActivatedAsync(args); if (args.QueryText == "") { // navigate to landing page. } else { MainPage.Current.ProcessQueryText(args.QueryText); } } ...Read more ...(Read whole news on source site)

Windows 8 AppFest and the Developer Song

AddThis Social Bookmark Button
The Windows 8 AppFest, an 18 hour coding marathon was held in Bangalore on September 21 and had provided some excellent opportunity for the developers to come up with an idea and build great apps with the help of the Microsoft Experts at the venue. To Get a sneak preview of what happened during the Windows 8 AppFest, watch the below video uploaded by Tony John, Techulator which includes the Developer song compiled with few pictures at the event. Eat Drink Code .My CPU’s gonna overload Eat Drink Code. Don’t disturb I’m in App mode

5 LINQ for JavaScript Libraries

AddThis Social Bookmark Button
Below are few collections of JavaScript Library that allows you to query JSON objects with the syntax similar like Syntax . 1. LINQ to JavaScript (JSLINQ) LINQ to JavaScript is an implementation of LINQ to Objects for JavaScript. It provides the developers with the options to query against the JavaScript Arrays. Know more about LINQ to JavaScript (JSLINQ) and download from codeplex 2. JLinq JLinq is a 100% JavaScript library which allows the developers to perform LINQ queries on JSON arrays. Another interesting feature of JLinq is the extensibility. Know more about JLinq and download here 3. Reactive Extensions for
Javascript (RxJS) The RxJS enables the developers to use Rx operators in JavaScript. Know more about Rx for Javascript here 4. linq.js – LINQ for JavaScript linq.js – LINQ for JavaScript implements close to 90 methods and all .NET 4.0 methods and supports Intellisense support for Microsoft Visual Studio. It comes in 2 versions – one for JavaScript (linq.js) and other for JQuery (jQuery.linq.js). Know more about linq.js – LINQ for JavaScript and download from codeplex 5. $Linq $linq is a Javascript version of .NET’s LINQ to Objects and implements most of the corresponding .NET LINQ to Objects methods like...(Read whole news on source site)

Refactoring to Maybe pattern

AddThis Social Bookmark Button

The NullReferenceExceptionis the most commonly occurring bugs in any programming language.
Passing nulls from a method leaves the responsibility to check the validity of the response object to the callee object/ method which leaves the space of null reference exceptions. For example in the code given below, the method which calls the repository’s GetByIdmethod needs to make sure that the Customerobject is a valid one before making the assertions.
[TestMethod]
public void GetCustomerReturnsCustomerWithIDFromDB()
{
    var repository = new CustomerRepository(_dbContext);
    const int customerId = 5;
    var customer = repository.GetById(customerId);
    if(customer != null) Assert.AreEqual(customer.Id, 5);
    Assert.Inconclusive(string.Format("Customer with Id {0} was not found
in the context", 5));
}
public Customer GetById(int id)
{
    return _context.Customers.FirstOrDefault(x => x.Id == id);
}
Refactoring the code to a maybe pattern implementation will make the repository define the contract of GetById to return a Maybe object which the callee always expects.
public interface Maybe
{
    bool HasValue { get; }
    T Value { get; }
}
public class Some : Maybe where T : class
{
    private T _value;

    public Some(T value)
    {
        _value = value;
    }

    public bool HasValue { get { return true; } }
    public T Value { get { return _value; } }
}
public class None : Maybe where T...(Read whole news on source site)

Windows Phone: Splitting Application to Multiple Assemblies when using Caliburn.Micro

AddThis Social Bookmark Button
source: mikaelkoskinen.net In this tutorial I'll demonstrate how to split a Windows Phone app into multiple assemblies - which are loaded on-demand, not on startup - when using Caliburn.Micro. The Problem If you want to use Caliburn.Micro and you also want to split the app into multiple assemblies, the problems starts with the app's bootstrapper and IOC. Given the scenario that we have the following assemblies: LoadAssembliesOnDemand - The main assembly, which starts the app. Module1 - Another assembly which will contains views (pages and user
controls) and view models Module2 - Another assembly with views and view models Now if we configure the Caliburn.Micro's container as we usually do, the code ends up looking like the following: container.PerRequest(); container.PerRequest(); container.PerRequest(); And here's the debug output from our app's startup: As you can see, configuring the container as we did forces the platform to load both the Module1 and Module2 assemblies, even though we don't need them yet. What we need is a way to configure the IOC...(Read whole news on source site)

SharePoint 2010 Field Expression Builder

AddThis Social Bookmark Button
OK, back to two of my favorite topics, expression builders and SharePoint. This time I wanted to be able to retrieve a field value from the current page declaratively on the markup so that I can assign it to some control’s property, without the need for writing code. Of course, the most straight way to do it is through an expression builder. Here’s the code:
1: [ExpressionPrefix("SPField")] 2: public class SPFieldExpressionBuilder : ExpressionBuilder
3: { 4: #region Public static methods 5: public static Object GetFieldValue(String fieldName, PropertyInfo propertyInfo) 6: { 7: Object fieldValue = SPContext.Current.ListItem[fieldName]; 8:  9: if (fieldValue != null) 10: ...(Read whole news on source site)

Virtual Labs in the modern application lifecycle

AddThis Social Bookmark Button
Originally posted as Virtual Labs in the modern application lifecycle on Visual Studio ALM - Guidance for agile teams developing modern software with Team Foundation Server, Visual Studio & ScrumIn the world of modern application development we have many more moving parts than we ever did before and it has become increasingly difficult for organisations to effectively simulate their environments with virtual labs. Add to that the demand from Development Teams to be able to have many times the environments that they ever had [...]Are you trying to rise up and meet the needs of your bushiness in
the world of the modern application lifecycle? Does your business want you to deliver more frequently? With the right guidance in process, practices and tools you can rise to the challenge and Northwest Cadence can provide that guidance... call This e-mail address is being protected from spambots. You need JavaScript enabled to view it today to help you define, develop and operate your way to success......(Read whole news on source site)

Home