Skip to main content

Posts

Showing posts with the label WPF

Show tooltip on disabled control

By default are tooltips not showing on disabled controls, but sometimes you want to inform the user about why the control is disabled. Simple add ToolTipService.ShowOnDisabled="true" to the control and the tooltip will always be visible. Example: <Button Content="Example" ToolTipService.ShowOnDisabled="True" /> See more at Microsoft MSDN .

File organization of a WPF project

A few months ago I started with a new project at work. The goal is to create a design tool for warehouses and the application will be running on the Windows platform. After the design choice landed on WPF I started to think about the project’s file structure. This is my first Windows application that is not build on Windows Forms but on WPF. The design tool is not that big of an application, so I think my tips in this article will suit small to medium sized applications well. First of all, how should the application be organized on the highest level? Does the application consist of only one executable file, or one executable file and several assemblies (e.g. DLL files)? For instance, the design tool has an output functionality that formats the warehouse data to a specific protocol and then uploads it to an embedded computer. The output functionality could well be located in a separate project (i.e. an assembly) that is referenced in the main application’s project. How should the m...

A WPF book I recommended

I have just started to develop a new application together with my customer and we are going to use the Windows Presentation Framework (WPF) and .NET 4. Since this is new to me I needed some literature in the subject. One book I have used is WPF 4 Unleashed by Adam Nathan (ISBN 978-0-672-33119-0). I can very much recommend this book. The reader must be familiar with the .NET framework and C#; no time is spent in describing .NET or programming in general. Together with Google this book will help you when developing WPF applications.