The Brain Dump

My brain poured out on paper (or so to speak)

Posts
  • The Brain Dump

    Tasks are not Threads

    • 2 Comments
    One of the common misconceptions I’ve encountered when developers first start using the Task Parallel Library is that they think Tasks are just fancy threads. This is easy to assume because in a common case, calling Task.Run(…), it actually does run the...
  • The Brain Dump

    Custom page transitions in WP7

    • 0 Comments
    The Silverlight for Windows Phone Toolkit provides the mechanism for creating animated page transitions in your Windows Phone 7 applications. It also provides a few standard transitions that match the look and feel of the built in apps such as pages sliding...
  • The Brain Dump

    async/await does not “release the thread”

    • 7 Comments
    There is some language around async/await that I am going to stop using. I’ve heard others use it as well because it does help get the point across but I believe it is ultimately misleading. Async/await does not “release the thread.”...
  • The Brain Dump

    WP7 notifications

    • 0 Comments
    Windows Phone 7 provides a push notification mechanism to allow you to communicate with your application or the user even when your application is not running. The documentation describes the different headers and values you need to use in order to make...
  • The Brain Dump

    Managing multiple web service calls with Rx

    • 0 Comments
    Lets say I have a phone app (or any app really) that needs to make several web service calls at once. For example, imagine the user multiselects three items on a page and then taps the “add favorite” button. I then need to make three calls to the “set...
  • The Brain Dump

    Back to basics: Visual Studio tips

    • 0 Comments
    Lately I’ve been working a lot with developers who are completely new to C# and/or Visual Studio. So I’ve been trying to gather some features and workflows which I’ve seen new users overlook which will make them a little more productive...
  • The Brain Dump

    Pivot Title Templates

    • 0 Comments
    By default the Pivot Control on Windows Phone 7 simply displays a TextBlock as the title of the control. But what if you want to modify the title’s control template? Creating a default Windows Phone Pivot Application we see that the MainPage.xaml contains...
  • The Brain Dump

    Metro design guidelines/tips for developers

    • 0 Comments
    Not the guidelines you must follow in order to pass the Marketplace ingestion process - these are the guidelines you should keep in mind and follow in order to make your app fit in well with the overall Windows Phone 7’s Metro UI. Jeff Wilcox’s “Metro...
  • The Brain Dump

    .NET Extension methods from C++

    • 0 Comments
    Extension methods are a nice little feature now available in C# and VB.NET. They allow you to tack on new methods to existing classes for which you don’t own the original code. Now C++ does not support this natively and so I recently got bit when I was...
  • The Brain Dump

    Live fx Helper Class

    • 8 Comments
    Everyone seems to have their own Live fx helper class. I use one myself to cleanup the sample code that I build to demonstrate functionality or to reproduce reported problems. In the past in the forums I’ve just put a little caveat into discussion to...
  • The Brain Dump

    Visual Studio Tip #7: Whole line editing

    • 5 Comments
    OK here is a quick simple one. How do I move or edit entire lines of code? #1 Just don’t select anything. If you don’t have anything selected in your code window then the commands for copy, cut and paste work as if the entire line of...
  • The Brain Dump

    Meshing in C++ (CLI)

    • 1 Comments
    I recently was asked about accessing the Live Framework from C++. Taking this from the standpoint of “Hey, I have a regular old C++ application. How can I start putting my stuff into Live Services using Live fx?” there are a couple of options. REST/XML...
  • The Brain Dump

    Tasks and awaits and Rx! (And Drones!) Oh My!

    • 2 Comments
    A few people I work with are tinkering with an off-the-shelf drone in our spare time and so we are writing a C# library to control it. The way it works is you send UDP commands to the drone and you receive a stream of status & navigation UDP packets...
  • The Brain Dump

    Cancellable “awaiting” on .NET events

    • 0 Comments
    My last couple of posts have been inspired by await-ing things (see Lucian’s list ) which allow you to use Tasks and the new C# async features to write synchronous looking expressive code around things that are not based on threads. There was one bit...
  • The Brain Dump

    LINQing to the Live Framework (or “CreateQuery vs Entries”)

    • 2 Comments
    There are two possible different ways to query in the Live Framework if you are using the .NET or Silverlight Toolkits. They look very similar but behave differently. Let’s say we want to find all the Mesh Objects which start with the letter ‘M’ and...
  • The Brain Dump

    More Metro

    • 1 Comments
    Windows Phone iconography is a key part of the Metro look so the SDK provides a number of icons that match the look and feel of the built in apps on the phone. If you have the tools installed they are located at C:\Program Files (x86)\Microsoft SDKs\Windows...
  • The Brain Dump

    Visual Studio Tip #2: Pin your data tips

    • 0 Comments
    Most people know that when you are debugging, you can hover the mouse over a variable in your code and the tool tip will provide you the current value. For example, if I hover over the “uri” variable below it shows me that it’s current...
  • The Brain Dump

    Feeling a bit loopy

    • 1 Comments
    A looping construct is one that is often requested in the Live Framework forum discussions regarding scripting. With the latest release you can now perform loops and iterate over collections in resource scripts. In the following example we will walk through...
  • The Brain Dump

    Visual Studio Tip #6: Turn on those line numbers (with Quick Launch)

    • 0 Comments
    Writing code is very often a collaborative process and to discuss something you need to be able to refer to it. The simplest way to refer to a line of code is “look at line #26.” For some reason though, line numbers are not on by default....
  • The Brain Dump

    Populating Windows Phone view models with Rx

    • 0 Comments
    I’ve gotten rather fond of using the Reactive Extensions for populating my data from the web in my Windows Phone applications. They provide a lot of flexibility and the code stays in a readable form. To demonstrate in a traditional MVVM model, let’s drop...
  • The Brain Dump

    Custom Page Transitions in WP7 (part 2)

    • 0 Comments
    In the last post I discussed how to create a custom page transition with the Silverlight for Windows Phone Toolkit that used your own local storyboard. That’s all well and good but there some nice changes we might like to see. Lets allow the storyboard...
  • The Brain Dump

    Cancellable “awaiting” on .NET events continued

    • 3 Comments
    Compose, compose, compose. Reuse, reuse, reuse. In the last post on cancellable “awaiting” on .NET events , I was so busy focusing on the wrapping the click event in order to get a smooth async control flow for the caller, I neglected to do the same inside...
  • The Brain Dump

    Visual Studio Tip #3: Use “Navigate To”

    • 0 Comments
    I spend a lot of time looking at other people’s code. That means a lot of time searching other people’s code. One of the main tools I use is not Search but “Navigate To”. It is found on the Edit menu or you can use the keyboard...
  • The Brain Dump

    Windows 8 ViewModel Property Code Snippet

    • 0 Comments
    Visual Studio provides a bunch of good code snippets for creating boilerplate code. For example if you type “prop” you get this in intellisense You’ll see a few nice property snippets. prop – creates a basic automatic...
  • The Brain Dump

    Moving from local LOE to local LOE

    • 1 Comments
    How Do I Ensure My Mesh Object Is Available Everywhere I Need It? Let’s say you have a scenario in which you have a regular WPF client application which is going to create and manage its own mesh objects in the local Live Operating Environment (LOE...
Page 1 of 4 (82 items) 1234