Browse by Tags

Creating transparent buttons, panels and other control with Compact Framework and putting one into other
In WPF / Silverlight world it's very simple to make transparent controls and put anything inside anything. However, that's not the situation in WinForms, and even worth in the world of compact devices with CF. Within this worlds, there is only...
How to P/Invoke VarArgs (variable arguments) in C#? ... or hidden junk in CLR
Recently I wrote a cheat sheet for pinvoking in .NET . Shortly after I got a question in comments about how to deal with variable arguments, when it's more, then one parameter. Also what to do if those arguments are heterogeneous? Let's say, that...
Auto scroll ListBox in WPF
In WinForms era it was very simple to autoscroll listbox content in order to select last or newly added item. It become a bit complicated in WPF. However, complicated does not mean impossible. As for me, Microsoft should add this feature to base ListBox...
P/Invoke cheat sheet
I’m working a lot with p/invoke, and know how it’s hard to produce correct signature for unmanaged method. So, today I decided to publish basic cheat sheet for methods, parameters and attributes you should use in order to invoke unmanaged methods from...
Set binding, based on trigger
Let’s say, that you want to set binding. However, you want to set it by using some trigger. Wait! Why I need it? Let’s say, that I have some very special object, that actually has no hard-coded properties. All it’s properties are created during the runtime...
WGS to UTM, UTM to WGS conversions, geo distance, azimuth and other geographical calculations in C#
"The reports of my death are greatly exaggerated" Since my post about leaving consulting field , I got huge amount of email with questions about all community projects, I'm leading, blogging in general and specific to the future of this...
Configuring and running Mono ASP.NET 3.5 (AJAX.NET) on Linux computers
Before we will start, we should install Linux. To do this, you can download any of LiveCDs with live installation. Officially, Mono supported only on one free Linux - openSuse . However, you can make it work on any RedHat (and its alternatives), OpenSolaris...
Silverlight Visual Tree Investigation
Wait a moment. Silverlight has Visual and Logical Trees as well as WPF? Not exactly. The design more similar to how it was in WinForms (Parent-Child relationship). But dev team made all possible to make it syntactically similar to WPF. Let’s start Challenge...
How to consume WCF or Webservice from Vista Sidebar gadget by using Silverlight?
The challenge today is really simple. All we have to do is to write Silverlight   Vista Sidebar Gadget , that consumes either WCF , ASMX or REST based service. Really simple, isn’t it? Let’s start Build server side services We should start from services...
HLSL (Pixel shader) effects tutorial
Recently, I already wrote about PixelShader effects , introduced in .NET framework 3.5 SP1 (WPF). However it looks like for most people this syntax is still hard to understand. Today we’ll try to lean it more. In order to do this, I wrote small program...
Brightness and contrast manipulation in WPF 3.5 SP1
While being in flight, I had to learn new features, introduced in .NET 3.5 SP1. So, let’s start from image manipulation. I want to perform contrast and brightness manipulation in GPU over displayed image. In order to begin, you should download and install...
Page view counter