wpf

How do I make custom MenuHeaders in WPF with accelerators?

I'd like to make some custom MenuHeaders in WPF so I can have (for example), an icon and text in a menu item. Normally using MenuItems, if you populate the Header field with straight text, you can add an accelerator by using an underscore. eg, _File However, if I wanted to put in a UserControl, I believe this function would break, how ...

What is the best book for learning WPF?

What is the best book for building WPF Business Applications? ...

WPF - Programmatic Binding on a BitmapEffect

I would like to be able to programmatically bind some data to the dependency properties on a BitmapEffect. With a FrameworkElement like TextBlock there is a SetBinding method where you can programmatically do these bindings like: myTextBlock.SetBinding(TextBlock.TextProperty, new Binding("SomeProperty")); And I know you can do it in s...

How to load an xml string in the code behind to databound UI controls that bind to the XPath of the XML?

Every sample that I have seen uses static XML in the xmldataprovider source, which is then used to databind UI controls using XPath binding. Idea is to edit a dynamic XML (structure known to the developer during coding), using the WPF UI. Has anyone found a way to load a dynamic xml string (for example load it from a file during runtim...

Learn Silverlight or WPF first?

It seems that Silverlight/WPF are the long term future for user interface development with .NET. This is great because as I can see the advantage of reusing XAML skills on both the client and web development sides. But looking at WPF/XAML/Silverlight they seem very large technologies and so where is the best place to get start? I would ...

Is knowing blend required?

Do you expect your WPF developers to know expression blend? Any good resources for learning more about Blend? [UPDATE] Does knowing blend make you more productive? ...

Anyone using WPF for real LOB applications?

Anyone using WPF for real LOB applications? We have all seen the clever demos of WPF showing videos mapped onto 3D elements. These look great but what about the real world of line-of-business applications that make up the majority of developers efforts. Is WPF just for nice eye candy? ...

WPF Data Binding and Validation Rules Best Practices

I have a very simple WPF application in which I am using data binding to allow editing of some custom CLR objects. I am now wanting to put some input validation in when the user clicks save. However, all the WPF books I have read don't really devote any space to this issue. I see that you can create custom ValidationRules, but I am wonde...

Get path geometry from FlowDocument object

Can someone tell me how to get path geometry from a WPF FlowDocument object? Please not that I do not want to use FormattedText. Thanks. ...

How do I stub data for designers when using Expression Blend and Visual Studio?

We are trying out Visual Studio 2008 and Expression Blend on a new project. The goal is to clearly define the role of the developer and designer as separate, but reap the benefit of the developer being able to directly consume the XAML produced by the designer. For the most part this has worked great, and I really like the possibilities...

Virtualizing treelistview?

Does anyone know of a good way to display hierarchical data with columns? It has to be virtualizing, as it must be able to handle several million records. It should also be multi-select, most treeview controls are not. Winforms preferred, but will ElementHost WPF if necessary. ...

Database functionality with WPF app: SQLite, SQL CE, other?

I want to extend a WPF application with database functionality. Which database engine would you suggest and why? SQLite, SQL CE, other? ...

How can one host Flash content in a WPF application and use transparency?

How can I go about hosting flash content inside a WPF form and still use transparency/alpha on my WPF window? Hosting a WinForms flash controls does not allow this. ...

Deepzoom for WPF

Are there any ports to WPF of Silverlight's MultiScaleImage (aka DeepZoom)? Have Microsoft road-mapped this at all for WPF? I want to move from WinForms to WPF and require something like DeepZoom, using Silverlight isn't an option. ...

How would I host an external application in WPF?

How can I host a (.Net, Java, VB6, MFC, etc) application in a WPF window. I have a need to use WPF windows to wrap external applications and control the window size and location. does anyone have any ideas on how to accomplish this or a direction to research in? ...

Visual Studio basicHttpBinding and endpoint problems

I have a WPF application in VS 2008 with some web service references. For varying reasons (max message size, authentication methods) I need to manually define a number of settings in the WPF client's app.config for the service bindings. Unfortunately, this means that when I update the service references in the project we end up with a m...

Is it possible to reference control templates defined in microsoft's assemblies?

hi i have scenario where i have to provide my own control template for a few WPF controls - i.e. GridViewHeader. when you take a look at control template for GridViewHEader in blend, it is agregated from several other controls, which in some cases are styled for that control only - i.e. this splitter between columns. those templates, ob...

WPF: Org Chart TreeView Conditional Formatting

The company has the traditional complex organizational structure, defining the amount of levels using the letter 'n' rather than an actual number. I will try and express the structure I'm trying to achieve in mono-spaced font: Alice ,--------|-------,------,------, Bob Fred Jack Kim Lucy | | Charli...

Which plaform for a lightweight windows desktop app for internal use to run basic console commands (WPF, AIR, something else)?

We have a number of scripts that we use for various deployment and data import tasks. These are currently called through a number of command lines calls or batch files. We'd prefer a cool little interface to run them and collect feedback rather than a plethora of drop downs. This will probably be developed in our developer's "20% time" ...

How do I get the text size of a string on a WPF canvas?

I'm trying to find the amount of space/width that a string would take when its drawn on a WPF canvas? ...