Posts tagged WPF
WPF SQL Connection User Control
Sep 29th
Many of the apps I have written need to target multiple databases or I want the connection to be configurable by the user. I have a user control in my common library that I use all the time to let the user connect to a database.
You will need the Sql Management Objects from http://www.microsoft.com/Downloads/details.aspx?familyid=B33D2C78-1059-4CE2-B80D-2343C099BCB4&displaylang=en to compile the demo project.
I also make use of http://umbrella.codeplex.com/ and http://www.codeplex.com/clinq in my common libraries, it should be quite simple to remove the dependencies on these two libraries if you wanted to. The first library adds a heap of really useful extension methods, like AddRange to collections that More >
Binding to WPF ListBox.SelectedItems
Sep 17th
I wanted to do this for one of my projects, the ability to bind a selecteditems collection on my view model to my view.
http://blog.functionalfun.net/2009/02/how-to-databind-to-selecteditems.html
It did the trick for me, simply use the attached property to bind the selected items to an ObservableCollection.
Using Windows Presentation Foundation and Line-of-Business Data in Microsoft Clients (Beth Massi)
Aug 12th
Beth Massi’s articles she wrote for SDN Magazine “Women in Technology” issue 101 has been put online. There are 5 parts and she is thinking about doing a 6th part on deployment.
Check out Beth’s post at http://blogs.msdn.com/bethmassi/archive/2009/08/10/using-windows-presentation-foundation-in-office-clients.aspx
You can also find the complete Demo application at http://code.msdn.microsoft.com/OBANorthwind. I am sure I will pick up a few neat tricks from this.
Remembering WPF Windows Position
Aug 6th
A few of my apps require opening the same window for a lot of different items and I wanted each WPF window to remember its size, position and state all the time. Nothing annoys me more than closing a window, opening the same window and its back on my second monitor.
So I went in search of a solution that someone else had written first, I found a example on the MSDN website.What makes this sample good is it makes use of the Win32 API’s, specifically GetWindowPlacement and SetWindowPlacement in User32.dll. Because of this our code doesn’t have to worry about More >
Writing a Facebook event synchroniser for Outlook 2007+ Part 2
Jul 27th
Now for the juicy post, this will cover the nuts and bolts of putting it all together. I may make a part 3 once I have the time to clean up the code, add logging and other things. The aim of the project after this post is simply to be able to sync and change your RSVP status of a event (if they update their API! See below.
(Installer/Source available at end of post)
API RestrictionsFacebook have decided that only an admin of a event can RSVP through the API, sorry guys this is something that cannot be done through More >