Recommended

Skip Navigation LinksHome / Search

Search

 
Results Per Page

Found 9 results for Design Patterns.
Date between: <not defined> and <not defined>
Search in: Articles , Tips , Shows , Showcase , Books

Order by Publish Date   Ascending Title   Rating  

  • 0 comments  /  posted by  Pencho Popadiyn  on  May 06, 2009 (more than a year ago)

    1. Introduction

    In the previous parts of the article I showed you the first two groups of patterns used in the Composite Application Library (CAL) – Composite User Interface patterns and Modularity patterns. In the final part I will show you the third group – Testability patterns.

    2. Patterns and Practices in the CAL - quick overview

    As a whole the patterns used in CAL can be separated in three main groups:

    • Composite User Interface patterns (part 1)
      • Composite
      • Composite View
      • Command
      • Adapter
    • Modularity patterns (part 2)
      • Separated interface and Plug In
      • Service Locator
      • Dependency Injection
      • Event Aggregator
      • Façade
      • Registry
    • Testability patterns (part 3)
      • Inversion of control
      • Separated presentation

    3.



  • 1 comments  /  posted by  Pencho Popadiyn  on  Apr 21, 2009 (more than a year ago)

    1. Introduction

    In the previous part of the article I showed the first part of most important patterns and practices used in the Composite Application Library (CAL). In the second part I will show you the second group – the Modularity patterns.

    2. Patterns and Practices in the CAL - quick overview

    As a whole the patterns used in CAL can be separated in three main groups:

    • Composite User Interface patterns (part 1)
      • Composite
      • Composite View
      • Command
      • Adapter
    • Modularity patterns (part 2)
      • Separated interface and Plug In
      • Service Locator
      • Dependency Injection
      • Event Aggregator
      • Façade
      • Registry
    • Testability patterns (part 3)
      • Inversion of control
      • Separated presentation

    3.

  • 1 comments  /  posted by  Pencho Popadiyn  on  Apr 08, 2009 (more than a year ago)

    1. Introduction

    In previous articles I showed how the most famous composite design patterns (Model – View – Controller and Model – View – Presenter) can be used with great success in Silverlight despite of the different programming model in Silverlight. My latest article targets a completely new pattern which has been created especially for WPF, but it is also very suitable for Silverlight applications. Today I’ve decided to continue my series of articles with OOP approach and to present you the main design patterns and practices used in the Composite Application Library (CAL).

  • Model – View – ViewModel in Silverlight

    29 comments  /  posted by  Pencho Popadiyn  on  Mar 11, 2009 (more than a year ago)

    1. Introduction

    Whatever software application you want to create, the most important problem that must be solved is the tight coupling. Mixing one layer with another is a very common mistake and it is the main reason for your application to be tightly coupled. For example: as a practical example in this article I will create a simple data entry application, which purpose is to load, create, edit, delete and save data. The most straightforward way to create the application is to put everything in the user interface (handling the button’s click events and writing the code there). It is the easiest way but it is far from the best. This will produce a low quality code and high complexity. And when the things are tightly coupled, one change can lead you into chasing breaking changes in the whole code. So the most important thing is to keep the layers separate, one layer – one responsibility. Yes, it is true, that creating an application with separate tiers requires additional work, but this may save you a headache in the future.

    The most famous solutions and approaches (patterns) for creating a multi layer application are the MVC and MVP patterns. Since Silverlight does not require reinventing the wheel, these patterns and practices can be applied with great success when you create a Silverlight application. In previous articles I showed you how the Model-View-Presenter (MVP) pattern and the Model-View-Controller (MVC) pattern can be used in Silverlight. Today I decided to continue and to present you another pattern – it is the Model-View-ViewModel (MVVM). MVVM is tailor-made for WPF and it is an adaptation of the MVC and MVP.

    View live demo

    Download source

    Read more ...
  • 6 comments  /  posted by  Pencho Popadiyn  on  Feb 12, 2009 (more than a year ago)

    1. Introduction

    In this article I will present you a game which I created on Silverlight. It is a very small and simple but extremely popular game – the n-puzzle game. The n-puzzle is known in various versions, including the 8 puzzle, the 15 puzzle, and with various names. It is a sliding puzzle that consists of a frame of numbered square tiles in random order with one tile missing. If the size is 3x3, the puzzle is called the 8-puzzle or 9-puzzle, and if 4x4, the puzzle is called 15-puzzle or 16-puzzle. The object of the puzzle is to place the tiles in order (shown on the next figure) by making sliding moves that use the empty space.

    If you are interested in more details about the history of the puzzle game, you can use the next link. But now let’s roll up our sleeves and dive into the world of Silverlight. The demo can also be found on a separate page.

  • 6 comments  /  posted by  Damon Payne  on  Feb 06, 2009 (more than a year ago)

    Note: This article is submitted by Damon Payne for Silverlight: Write and Win contest.Thanks a lot, Damon! Hello All, Please drop a comment if you like it.

    If you have used Amazon.com or Flickr you may be familiar with Image Hotspots or Hot Regions. This is a region on an image where clicking or hovering the mouse reveals some additional information in a callout or popup. By providing extra information your photographs become more interactive and appealing. In this article we'll build a Hotspot Designer that allows the user to draw Hot Regions on an image, a preview and display control, and a way to save their work.

    Here's a finished example, using a photo of the "gear closet" from my home theater.

  • 9 comments  /  posted by  Pencho Popadiyn  on  Dec 17, 2008 (more than a year ago)

    Note: This article is submitted by Pencho Popadiyn for Silverlight: Write and Win contest.Thanks a lot, Pencho! Hello All, Please drop a comment if you like it.

    1. Introduction

    In the previous article I showed you how Silverlight and the Model – View – Presenter pattern (MVP) can interact with each other. Today I decided to move on ahead in the world of Object Oriented Programming and to present you another big player on scene – the Model – View – Controller (MVC) pattern. Actually the MVC is a MVP’s ancestor, and I think it must be studied first, but that is another topic. Before I start, I want to mention that the purpose of that article is not to compare both of the “brothers”, but to present you the world through the MVC eyes.

  • 19 comments  /  posted by  Pencho Popadiyn  on  Nov 13, 2008 (more than a year ago)

    1. Introduction

    In the previous part of the article I described how to create a simple analog clock in Silverlight using pattern oriented approach. It was focused not so much on Silverlight but on the object oriented programming. In that part I will focus your attention on the process of improving the view (the clock face), making it much better and user-friendly. I will look at little more advance topics such as creating gradient brushes, creating custom figures, making transformations and of course adding movement and interactivity with animations.

    So let’s roll up our sleeves and set to work.

  • 27 comments  /  posted by  Pencho Popadiyn  on  Oct 29, 2008 (more than a year ago)

    1. Introduction

    I have been trying to get myself up to speed with the latest Microsoft technologies and more specially .NET 3.5,VS.NET 2008 and Silverlight/WPF. So rather than just ‘playing’ I have set myself a little application to write: a simple analog Silverlight clock. It is extremely simple application that I have been able to complete the first version of it just for few days (working only in my spare time, if I had any). The target of that article is to introduce some basic concepts of programming in Silverlight, such as: drawing simple elements, using styles, making simple transformation, as well as introducing some of the most important and powerful approaches in object oriented programming.

    Source code


Help us make SilverlightShow even better and win a free t-shirt. Whether you'd like to suggest a change in the structure, content organization, section layout or any other aspect of SilverlightShow appearance - we'd love to hear from you! Need a material (article, tutorial, or other) on a specific topic? Let us know and SilverlightShow content authors will work to have that prepared for you. (hide this)