WPF: yet another way to customize buttons controls (and controls in general)

Days ago I needed a way to add an image and some other extensions to the standard button controls in WPF, I did a similar thing in the past in SIlverlight, but I had to rewrite the full control template. I wanted to avoid this situation, so I ...


Silverlight: Controls inside ScrollViewer - horizontal resize layout bug and related workaround

I was updating my sample on how to simulate a Window environment in Silverlight, after having implemented some fixes to the resize functions and having added the support for scrollbars inside a window, I realized a simple test form with a serie...


Silverlight: Dropdown Menu Control

In a previous post I showed how we can build a simple menu control for Silverlight 2 Beta 2 (Silverlight: how to build a simple menu control); then with the release of Silverlight RC0 some things were changed and the menu stopped working, due t...


Silverlight: simulate a ‘Windows’ desktop application - part 2 (Dragging Window)

With the release of Silverlight RC0 it was finally time to update this sample application. Let’s now go on with the tutorial and take a look at how the dragging capability of the Window is implemented, you can state if you want to enable or dis...


Silverlight 2 RC0 – first problems due to undocumented breaking changes on disabled controls

Yesterday I was about to use my brand new menu control in a new project, and after having recompiled and run the test with the brand new runtime…well…as usual the first problems arose. It seems that some undocumented changes were made again ...


Silverlight: how to build a simple Menu Control

In my current project I needed to use a dynamic Menu Control (a completely declarative approach hardcoding the structure in XAML wasn’t a good fit for my application cause I need to dynamically add, remove, enable and disable menu items). Since...


Silverlight Pagination Control – bug fixed

There were a couple of bugs in how the number of pages were computed, the problem is now solved and the solution is updated, see the article at: Silverlight: a generic Pagination Control I start to believe that I really have to test my contr...


Silverlight: a generic Pagination Control

The default silverlight controls like DataGrid and ItemsControl come without a default paging mechanism like we have in ASP.NET, so this article will be forcused in developing a generic Pager Control in Silverlight. This is what we want to obta...


Silverlight: Custom Buttons with Templates

Sometimes you want to define a consistent look for all you application and maybe you completely replace the template of a control (lets say...a button :D), then you want to use the same template with small variations (colors or images for examp...


Silverlight: simulate a 'Windows' desktop application - part 1

As my first real experiment in building a Silverlight control, I wanted to realize something that could permit me to offer to the users a windows-like experience application hosted in the browser, so I started wondering how difficult was to imp...


 1 di 2   1  »  Last »