WPF Drag and Drop

Recently I was tasked with making a utility app to manage records in a database. Since there were no requirements for this other than it had to actually do the updates I decided to use WPF and even try to use MVVM since I thought a small project would get me more familiar with both. The overall app wasn’t that hard, basically the first window opened a second window to perform searches and allowed the searched items to be added to the main window where they would be edited. Basically I was taking items from one GridView to another. I...

posted @ Monday, September 20, 2010 10:16 PM | Feedback (6)

LayoutTransform vs. RenderTransform

This is directly related to my previous post. I mentioned that I was using RenderTransform to turn some controls sideways. But when I did this is I had to readjust the margins to keep it on the edge of the screen. This works fine for one control I guess, well maybe, but I was rotating more than one control and there needed to be controls next to the controls I was rotating. If I turned a really wide control and a control that wasn’t so wide then there would be a gap between the adjacent controls since the original dimensions...

posted @ Wednesday, April 21, 2010 10:56 PM | Feedback (1)

WPF RenderTransform and Margin

I am only writing about this to justify how long this took me to figure out. Now that I know the relation, or lack thereof, between the two it is trivial. I have been working with some third party controls for WPF that allow panels to be moved around, docked and hidden just like the toolbox and solution windows in visual studio. While they make that easy styling the controls isn’t as straight forward. You need to create a resource dictionary and override templates with certain names. As far as docking goes I needed the text to be either normal...

posted @ Monday, April 19, 2010 6:52 PM | Feedback (1)