smoura

Stories submitted 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

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

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

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

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

WPF Toolkit DataGrid, Part II – Custom Styling(sweux.com)

submitted by smourasmoura(165) 3 years ago

In Part I we went through basic DataGrid setup creating a sample application that showcased the usage of DataGridColumns. In this part we will dive into more advanced concepts. It is my ambition that you get a good understanding of how to setup a DataGrid to do whatever you wish without restrictions. In this part we will focus: Visual breakdown of styles and layout, Styling the DataGrid, Styling DataGridColumnHeaders, Styling DataGridRowHeaders and Creating a new template for the SelectAllButton. read more...

add a comment |category: |Views: 358

tags: another

WPF Toolkit DataGrid, Part I - Introduction(sweux.com)

submitted by smourasmoura(165) 3 years ago

This article is part of a series in which I will go through some key achievements when using WPF Toolkit DataGrid on a project I am working on. In this first article we will go through the following topics: Hands on your First WPF DataGrid, DataGridColumn Hierarchy and Using DataGridColumns to enhance the DataGrid sample. Running samples are provided for all source code presented. read more...

add a comment |category: |Views: 526

tags: another