WPF, C#, Objective C and a little Math

Posts Tagged ‘WPF’

WPF Binding double to TextBox Text Property

Binding to double property of some object with UpdateSourceTrigger set to PropertyChanged allows dynamically update ViewModel while user enters the number. Application become more responsive and user friendly. Unfortuntely simple binding has frustrating editing behaviors – portion of the text are automatically erased in some cases (usually decimal separator and leading or trailing zeroes) – […]

Transform Bitmap in WPF

Sometimes Effects are not enough when you need to modify an image  – in example to highlight it. Originally the task was to higlight an image (wich might have alpha channel) with different colors – red, green, blue, etc., depending on the state of the application. Googling didnt help a lot, thats why I finished […]

Modal UserControl in WPF

Common approach to show some modal view (dialog) in WPF application is to use some kind of “IModalDialogService” realization which creates a window on View side and places View corresponding to requested ViewModel inside it. There is also the other way – just to put a control element above the current main window content. This […]

3d L-Systems rendering using WPF Viewport3D

Wow! Its 3d now! ITurtle interface was extended with Pitch and Roll commands, and now it is possible to define L-Systems in 3d. Its the very first implementation, and UI is a bit ugly – I just created 2 tabs – “3d” and “2d”, so both views can be used for the selected System. The […]

LSystems 2d Viewer

Latest project update includes 2d Viewer – it uses turtle graphics to render L-System (implementation is based on my previous post). Viewer includes 2 examples – Tree (taken from L+C description) and Leaf. Some changes were done in LSystems to be able to render 2d: * Introduced Turtle namespace containing everything needed for turtle rendering, […]

L-Systems and Turtle Graphics in C# and WPF

I’m currently interested in L-Systems and how to generate content using them. WPF and .Net provides nice tools to create an application which I am going to use to my experiments. It is similar to Online experiments with L-Systems using JSXGraph but more “realtime”. Simple context-free, non-parametrized L-Systems are supported. And this is how the […]

HGE fonts builder

I made a program to create raster fonts for HGE. HGE offers standard program for that, but it uses GDI for rendering fonts and antialiasing looks not so fine. WPF uses new ClearType engine for fonts, so I decided to use it. I also took RangeSlider from AvalonControlsLibrary – it is used to specify characters […]

HGE goes WPF!

I’m, currently making small PC game using HGE. It’s a simple game engine, based on DirectX, written in C++ (source code also available). This engine is exactly what I need now: smart and simple. And right now I decided to make a level editor for my game. And I really DO want to make it […]

Out of space for Horizontal Tabs?

The company, where I’m currently working, decided to create an application based on page design: application itself is a big tab control and each page contains some useful features. This approach is commonly used by most websites. Sounds good, but unfortunately we pretty soon found ourselves out of space for horizontal tabs (because of 800*600 […]