Archive for the ‘.Net’ Category
Announcing Sketchables – Rapid Mockup Creation with SketchFlow
December 30th, 2010
wiseinn
SketchFlow is a great addition to Blend, but I was missing the ability to create quick mockups of user interfaces. I’m a huge fan of productivity tools such as Balsamiq, and I was sorely missing its ease and speed in SketchFlow. Meet Sketchables. Sketchables is a simple framework complemented by a set of controls that [...]
An Abstraction Layer for Temporary Data in .NET and Silverlight
December 30th, 2010
wiseinn
Up until now, I’ve dealt with temporary data in my .NET applications using local files and FileInfo instances. This worked just fine – until I needed a solution that works under both .NET and Silverlight. The problem: In Silverlight, you can’t just create a temporary file on the file system for security reasons. Instead, there’s [...]
A Custom Text Encoding Generator For Silverlight
December 30th, 2010
wiseinn
Unlike the .NET platform, Silverlight only provides two text encodings out of the box: UTF-8 (UTF8Encoding class) and UTF-16 (UnicodeEncoding class). Accordingly, if you find yourself in a situation where you need to encode or decode data with another encoding (e.g. iso-8859-1), you’ll have to write your own Encoding class (or delegate the work to [...]
Input Focus from the View Model – Configured via Blend Behaviors
December 30th, 2010
wiseinn
Background / Focus of this Article WPF wizard and fellow WPF Disciple Josh Smith published an article yesterday that showed how to control input focus from View Model objects using attached properties and a custom binding extension. Prior to the article, there was a discussion in the Disciples group, during which I looked into using [...]
Microsoft WPF DataGrid vs. Commercial Solution: 1:0
December 30th, 2010
wiseinn
I’ve never been really happy with the commercial data grid I’ve been using so far – the whole API felt somewhat “winformish”, and required my to write a lot of XAML or even code for even the most basic tasks. Today, I needed a simple grid on one of my current projects, and immediately got [...]
Detecting Double Click Events on the WPF DataGrid
December 30th, 2010
wiseinn
Either I missed the obvious solution, or there is indeed no simple way to catch double click events on a given row of Microsoft’s WPF DataGrid. This snippet here fires the event whenever the grid is clicked – it doesn’t matter whether the user double-clicks into an empty area (no rows) or a row: <!– [...]
Moving WPF DataGrid Rows using Drag and Drop
December 30th, 2010
wiseinn
For my upcoming NetDrives tool (will be released shortly) I wanted to enable the user to reorder managed network shares using drag and drop using a preview of the dragged row: As it turned out, it’s not too hard to implement, but it took my a while to find all pieces of the puzzle, [...]
Working with Images- A Complete Guide
December 29th, 2010
wiseinn
Working with Images Ever since Graphical User Interfaces (GUIs) were invented, developers have been keen to use images to make their programs easier to use, and more attractive and intuitive to their users. Images brighten up an otherwise boring and clinical computer screen, and make the general computing experience more enjoyable. Visual support facilitates the [...]
Windows 7: Taskbar Extension in Event in Time Application
November 23rd, 2010
wiseinn
Big idea with simple implementation (you use it daily) Download source code – 417.19 KB Download sample run – 397.51 KB Introduction Because exams are at the door and for businessman events, I made this program to manage events with alarm that you choose from your computer , and I use the features of Windows 7 [...]
C# Delegates, Anonymous Methods, and Lambda Expressions – O My!
November 23rd, 2010
wiseinn
Introduction Delegates, anonymous methods, and lambda expressions can be very confusing in .NET. I think this is proven in code like the example below. Which one of the calls to First compiles? Which one returns the answer we are looking for; namely the Customer with the ID 5. The answer, incidentally, is that all six [...]
RSS Feed
Posted in
Tags:
