Kategorija: WPF

  • If you are like me, you probably keep bitmaps (png files) of your WPF project in Resources. Since Resources uses System.Drawing.Bitmap for storing bitmaps, I wrote (some code modifications were done by Bojan) this little extension that will convert bitmap resource to BitmapSource.

    ·

    ,
  • On one project that I’m working on, I had a need to animate height (simulating Visible/Not Visible state of ‘overlay’ and edit dialogs) of FrameworkElement. So I wrote this little behavior that does just that. You can use IsVisible to control (using binding) ‘Visibility’, as well as ShowDuration and HideDuration to control duration of animation.

    ·

    ,
  • TextBox style that you can use in WPF 3.5 and WPF 4. Do note that the provided Resource Dicitionary has SelectedBrush defined which must be removed if you intend to use this style in WPF 3.5 (WPF 4 only property). Download gymdotextbox.zip.

    ·

    ,