Archives
-
Excel cell behavior for WPF TextBox
Excel cells have a very special and useful behavior that they become editable as soon as it gets selected but it doesn’t changes its visual appearance i.e. caret doesn’t becomes visible. User can start typing into it or use Enter or Arrow keys to move around, caret becomes visible as soon as user starts typing into it.
-
Resolving harmless binding errors in WPF II : 2 approaches for removing data binding errors due to heterogeneous types in a hierarchical view
This is a continuation post to my previous post Resolving harmless binding errors in WPF in which I talked about various ways of resolving different binding errors etc. I recently came across another situation in which we get these binding errors and how they can be resolved.
-
Making animations work for disabled controls
Problem -
-
Outrageous Work Conditions for a Developer analyst
Recently came across a job opening sent to me by a HR person on LinkedIn; The service based company is a very big name in IT but the work conditions mentioned in the job description were extremely unusual -
-
Attached Behavior for auto scrolling containers while doing Drag & Drop
This is a very common problem in WPF, if you support Drag & Drop within your Items control or across the controls like ListView, TreeView etc. and your List contains hundreds of items then it’s very hard to drag an item at the bottom to the top. Various solutions are available on net for this -
-
Working on WPF application Memory Profiling
Today, I am going to start with the task of memory profiling the WPF application, on which I am working from past few months. I have successfully done this in past, fixing a lot of memory leaks and improving the performance of WPF applications; As in past, I am hopeful of fixing some very interesting bugs and improve the application performance.
-
WPF DataGrid Customization: Resizing Row/Column through DataGridCell gridlines
In this post I am going to share my experience on how I achieved the functionality to resize DataGrid row/column from any cell in that row (not just the row header). We needed this functionality as our user can hide the DataGrid headers and it is not possible to resize the rows/columns after that.
-
Importance of specifying AncestorType with x:Type in RelativeSourceBinding
I am really very happy right now, for the past 4 days me and my team were trying to solve a very trivial bug in our application and finally it got resolved by just adding x:Type in our RelativeSource bindings;Can you believe this, a production issue getting resolved just by this simple change, I couldn’t; so I tested this fix at least ten times to believe it
-
Getting rid of heavy Multivalue Converters : My Encounter with Win Form style WPF apps 2
I recently came across the situation where I had to refactor the WPF code written in Win Forms Style; Code was having a lot of MultiValueConverters used for building the DataContext / ItemSources for Controls/ ListVies/ DataGrids etc. Following is the example of one of the converters I am talking about:
-
Creating custom filters in Resharper To-do Explorer
We can create a custom filter in Resharper To-Do explorer to filter out all the to-do items created by a specific person or with a particular string literal. This is very useful in case you are working in a big team and have habit to add To-do comments. Here are the steps to create a new filter with a specific string -