Visual Studio Asynchronous Programming
Visual Studio Async CTP site. Make sure you check out the 101 samples and Iterators links on the page.
No need for async callbacks or generator classes for iterators anymore. Thank you very much Microsoft!
Now if I could just find a solid release date...
C#'s 'as' keyword will let you do this:
int? input = value as int?
Here's what I would assume the vb.net equivalent would be:
Dim input As Integer? = TryCast(value, Integer?)
There's an intellisense error in the TryCast stating the operand must be a reference type but Integer? is a value...
I'm converting the Prism Navigation Framework from C# to VB.NET and have 1 issue with an EventHandler that's giving me headaches.
The original Interface:
using System;
namespace PrismNavigationFramework.Infrastructure
{
public interface IPrismModuleLoadingService
{
bool...
Firestarter webcasts: Silverlight Firestarter 2nd December 2010 : The Official Microsoft Silverlight Site
Firestarter labs: Firestarter Labs : The Official Microsoft Silverlight Site
Thought I'd share the MVVM implementation that I've been using lately. I didn't want to use a pre-rolled framework so I could learn how things fit together.
Hopefully this will help those that are looking to learn about implementing MVVM in your projects.
Using MEF won't be included in the...
I've been using RX recently in Silverlight as a mediator between ViewModels. Even if you don't work with Silverlight anyone who does asynchronous programming wouldn't be wasting their time to take a look.
DevLabs page:
Reactive Extensions for .NET (Rx)
Couple of good blog posts:
A Brief...
Pretty nice site set up by Microsoft to get Silverlight/WPF designers up and running with Expression Studio.
The tutorials section is pretty lean at the moment but the courses section has some great stuff in it.
Code behind is C# but the focus is more on a design perspective. Online C# to...
Posting this in the Silverlight forum since that's what I'm using and I don't see an MVVM section. If a mod needs to move it to the MVC section since it's a pattern question please do so.
I'm having an issue getting a button to be disabled when CanExecute in my ViewModel is set to false...
I'm converting the Strokes collection from a Silverlight InkPresenter to xml so I can save it in an nvarchar(MAX) column in a SQL database.
Everything works correctly except in every <Stroke> tag I get an empty xmlns which blows up the XamlReader when I'm trying to load it.
I've gotten around...
I have an issue where I'm trying to send out an email with a stretched image for the background and text overlaying the image. The markup I'm using works fine in a browser (IE, Firefox, Opera) but the image shows in-line when I create the view and open it with Outlook 2007.
Dim content As...
Essential Guide To Regular Expressions: Tools and Tutorials | Developer's Toolbox | Smashing Magazine
Excellent list of resources for those trying to wrap their head around Regular Expressions.
I've run into a situation where I'm trying to resize/compress multipage tiff documents that were scanned at a huge resolution and color depth to a managable file size.
Here's the code I have so far. It works in creating a new file with the reduced resolution but I've run into a couple of snags...
I have a .bat file that performs the following steps
Rename FileBackup FileEncrypt File (gpg command line)Delete Unencrypted FileFtp Encrypted File
This fille runs perfectly when I run it from windows explorer. When I call it with Process.Start the encryption line is skipped completely.
I'm...
I'm trying to make a class where I can remotely execute processes.
The code I have below gives me a Return Value of Successful Completion and when looking at the processes in Task Manager I do see a process with the PID returned.
The problem is that the process is created and does nothing. :(...
I've run into a problem getting a file out of an image column in SQL. My method works when I run it against a pdf document. When I try it with an xls file I'm getting back gibberish due to the Utf-8 charset (I think).
Can somebody give me a nudge on how to incorporate System.Text.Encoding to...
I've run into a situation where I need to use UNION ALL to combine 3 queries (each returning 1 line) into a result set.
I have my queries set up in the following manner and am getting back the 3 rows of data as expected.
SELECT...
UNION ALL
SELECT...
UNION ALL
SELECT...
The problem I'm...
Imports System.Collections.Generic
Partial Class _Default
Inherits System.Web.UI.Page
Dim collection As New List(Of BlockRecord)
Dim entry As New BlockRecord
Protected Sub btnAddRecord_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnAddRecord.Click...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.