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...
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...
Slides and desks from my Expert Days’ sessions
Because of the new job , I’m bit tight in time, however, I  found a time to post slides from my sessions in Expert Days . Also, hand-on labs used for WPF beginners’  released as open source to CodePlex for your convenience. Windows Presentation...
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...
How to handle thickness
Yesterday, we spoke about type converters . We even, built simple generic enum converter. Today, we’ll create more complicated converter, that very missing in Silverlight – ThicknessConverter. During the post, I also explain about tokenizing values in...
Work process: How to use and build type converters
Today, I want to start new tag - “ Work process ”. Here I’m going to publish partial classes, fixes, small utilities, I’m building for myself or clients to help in work process. I’ll give an example : currently, I’m working on BiDi support for Silverlight...
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...
Quick Silverlight Tip: How to access HTML DOM from Silverlight and Silverlight managed objects from HTML?
After my session yesterday , I got number of email from people, who have a problem to access HTML DOM from Silverlight and vice verse. I want to answer to all of you by this post. Access HTML from Silverlight You have not do anything special in Silverlight...
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...
UserControl binding to own property bug in Sliverlight 2.0 beta 2
Today morning, I come to my office. Alex , sitting there, was very tired. His eyes were red. I asked him: “What’s going on?” and he responsed: “I think, I’m sick. Something is broken in Silverlight”. “What’s the problem?” – I asked. And he explained me...
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