smoura

Stories kicked by smoura

Quick introduction to MVVM design pattern for WPF(blog.smoura.com)

submitted by smourasmoura(165) 1 year, 9 months ago

A quick introduction to get you started with M-V-VM (Model-View-ViewModel). The MVVM pattern is introduced in a very straight forward way with some code examples. read more...

add a comment |category: |Views: 84

tags: another

Creating a Printer selection ComboBox with default printer(blog.smoura.com)

submitted by smourasmoura(165) 1 year, 9 months ago

In this tutorial I will show you how to create a ComboBox that lists all the printers installed on your computer and automatically selects the default printer. read more...

add a comment |category: |Views: 45

tags: another

Runtime Intelligence support in VS2010(sweux.com)

submitted by pombeiropombeiro(80) 2 years ago

Visual Studio 2010 comes with support for adding Runtime Intelligence to your software out-of-the-box (courtesy of PreEmptive Solutions). I have tried this with Scrum Sprint Monitor, and it really is as simple as sprinkling an Attribute on strategic places in your code to track the functionality you are interested in. With CodePlex providing support for acting as an endpoint for uploading those statistics right at each projects’ page, this makes for a very compelling proposition indeed. read more...

add a comment |category: |Views: 4

tags: another

RhinoMocks Stub not retaining property values(sweux.com)

submitted by smourasmoura(165) 2 years, 3 months ago

I was still fixing the tests that had failed after upgrading to Castle.Windsor 2.1 and RhinoMocks 3.6 when I stumble on this one. Basically I had a unit test that passed before I upgraded and as soon as I switched to using the most recent versions of both libraries the test failed.The issue manifested on a stub for an Interface... read more...

add a comment |category: |Views: 4

tags: another

BadImageFormatException when debugging interface mocked with RhinoMock(sweux.com)

submitted by smourasmoura(165) 2 years, 3 months ago

Recently I updated the project I am working on to Castle.Windsor version 2.1. Since we are using an abstraction over the container (for resolving purposes only), we had to adapt it to conform with the new restrictions for Resolving dependencies... read more...

add a comment |category: |Views: 8

tags: another

Why breakpoints do not get hit when targeting x86 on Windows 7 x64?(smoura.com)

submitted by smourasmoura(165) 2 years, 3 months ago

I am currently working on a fully managed WPF application, that references a certified C# DLL that was purposely compiled targeting x86 platform (part of the certification process I think). Since I recently got an upgrade on my development machine, and I wanted to take full advantage of my 8GB of RAM I ended up installing Windows 7 x64. read more...

add a comment |category: |Views: 4

tags: another

Why does the DependencyProperty I set using a DataTrigger does not get(sweux.com)

submitted by smourasmoura(165) 2 years, 3 months ago

In this blog post I elaborate on a mistake I come across many time. I have struggled with it and have seen others face this same issues countless times. read more...

add a comment |category: |Views: 12

tags: another

Using FileSystemWatcher to synchronize ComboBox Options(sweux.com)

submitted by smourasmoura(165) 2 years, 9 months ago

In this post I will present you with my latest addition to my personal user experience arsenal: direct file system synchronization. You will be shown how easily it is for you to setup a FileSystemWatcher to observe file changes on disc, astonishing your user when he least expects. read more...

add a comment |category: |Views: 208

tags: another

Animated WPF Panels(sweux.com)

submitted by pombeiropombeiro(80) 2 years, 9 months ago

This article presents new classes that extend the stock WPF panel classes. They add animation behavior in response to changes in the bound collection (demo video included). read more...

add a comment |category: |Views: 84

tags: another

Playing Storyboards on DataTriggers to animate a Path(smoura.com)

submitted by smourasmoura(165) 2 years, 10 months ago

In this post a sample application is shown that allows the user to control the animation over an image represented by a Path through a bounded field. This bounded field is represented by an Enum and each different value forces a different Storyboard to be played. read more...

add a comment |category: |Views: 11

tags: another

A view model base class to use with MVVM in WPF | UX and WPF ramblings(sweux.com)

submitted by psampaiopsampaio(115) 2 years, 10 months ago

A view model base class to use with MVVM in WPF, with caching of PropertyChangedEventArgs for each property. read more...

add a comment |category: |Views: 52

tags: another

WPF Localization Guidance Paper Posted on CodePlex(west-wind.com)

submitted by rstrahlrstrahl(7226) 2 years, 10 months ago

I’m happy to announce that my WPF Localization paper went live a couple of days ago on CodePlex. This document provides an overview of localization in .NET in general as well as specifically to WPF. It covers localization with the rigid LocBaml approach, as well as using Resx resources for binding using markup extensions and attached properties respectively. read more...

add a comment |category: |Views: 20

tags: another

WPF Toolkit DataGrid Part IV: TemplateColumns and Row Grouping(sweux.com)

submitted by smourasmoura(165) 2 years, 11 months ago

This post is part of the WPF Toolkit DataGrid series. In this part we will have a look into more advanced concepts. First we will see how we can use the DataGridTemplateColumn to imitate the behavior of a DataGridComboBoxColumn and to show a small chart representing the age deviation from average for each player. We will then have a look on how we can group rows on our DataGrid using two separate methodologies. read more...

add a comment |category: |Views: 537

tags: another

Using Data Binding with Static Resources in WPF | UX and WPF ramblings(sweux.com)

submitted by psampaiopsampaio(115) 2 years, 11 months ago

In this post, I’ll be showing how to use resources for which you don’t know in design time the key to use in xaml (maybe because you’re loading them dynamically), by binding them to view model properties. read more...

add a comment |category: |Views: 47

tags: another

WPF Toolkit DataGrid, Part III – Playing with Cells and Columns(sweux.com)

submitted by smourasmoura(165) 3 years ago

In Part II we gave a bluish style to our DataGrid. In this part we will go through setting up how our data gets displayed within the DataGrid. We will have a look on how to create styles for our cells and cell elements along with creating some new types of DataGridColumns that extend existing ones in order to enrich them with further functionality. read more...

add a comment |category: |Views: 317

tags: another

WPF: Padding does not work on styled button(sweux.com)

submitted by smourasmoura(165) 3 years ago

In this blog post I show you a small tip on how to fix this recurring issue on getting Padding to work on a custom Button style. read more...

add a comment |category: |Views: 34

tags: another