wpf

Recommendations on a WPF Docking Library

We are implementing an application that needs dockable windows, similar to Visual Studio 2005/2008, but with multiple "docking sites", unlike VS's single one. Does anyone have a recommendation on a good library for this - either OSS or commercial? I am aware that Infragistics has one, as well as Divelement's SandDock and WPF-Dock from De...

Full-Time WPF Development

I am fortunate to be working for a company in which all of our new development efforts are all in WPF. Are there a lot of other developers out there in this situation? Are companies quickly adopting this as their primary UI platform? As developers we all see the value in it, but are companies buying into it? ...

WPF Namespace question - Process?

Trying to get this example working from http://www.munna.shatkotha.com/blog/post/2008/10/26/Light-box-effect-with-WPF.aspx However, I can't seem to get the namespace or syntax right for "Process" below. <Border x:Name="panelDialog" Visibility="Collapsed"> <Grid> <Border Background="Black" Opacity="0.49"></Border> <!--While Xmal Content...

Framebar component for WPF

I am looking for a framebar component (commercial or OSS) that will give winforms like menu and tool bar functionality like then one we have in Visual studio (when you right click on the main menu). I am aware of the Office 2007 ribbon thing. but the requirements for the application is to have "old style" menu and toolbars experience (...

Printing a WPF FlowDocument

I'm building a demo app in WPF, which is new to me. I'm currently displaying text in a FlowDocument, and need to print it. The code I'm using looks like this: PrintDialog pd = new PrintDialog(); fd.PageHeight = pd.PrintableAreaHeight; fd.PageWidth = pd.PrintableAreaWidth; fd.PagePadding = new Thickness(...

How to set background color based on bool property in WPF

I want to set the backgroun color for a GridViewColumn that is databound inside of a listview in WPF. I'm not sure how to ask this question being fairly new to WPF, otherwise I wouldn't have bothered all of you. I want to change the background color of the whole row, based on a bool flag in my databound object. In this case, I have, we...

WPF textblock binding with List<string>

does anyone know if there is a simple way to bind a textblock to a List. What I've done so far is create a listview and bind it to the List and then I have a template within the listview that uses a single textblock. what I'd really like to do is just bind the List to a textblock and have it display all the lines. In Winforms there was...

WPF designer won't load when binding datasource from entity framework

EDIT: I have submitted a bug report and Microsoft have acknowledge that it is a bug. There is currently no ETA on when it will be fixed. Bug Report: https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=386982 Official Feedback: http://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/ca3cac55-c1de...

WPF - how to insert image into 2nd column of Grid element

Hi, As the subject says I want to insert an image into the 2nd column of grid defined with 2 columndefintions. Programmatically that is??? I cannot see how to select the column using grid.Children.insert(1, img) does not work. Malcolm ...

Drift when restoring window location and size in WPF

I am using the code below to save and restore the window position and size upon restart. I am observing an upward drift of 28 pixels everytime I execute this code! Am I reading the wrong values, or am I restoring them incorrectly? Where is the number 28 (size of the chrome?) coming from (and how would I account for it programmaticall...

How to tell if a button click event was triggered by keyboard or mouse in WPF?

Is there a simple way to tell what triggered Click event of a Button apart from setting multiple flags in Mouse/Key Up/Down event handlers? I'm currently only interested in distinguishing mouse from everything else, but it would be nice to handle Stylus and other input types if possible. Do I have to create my own button control to achie...

How do I design backing data types for a databound WPF dialog with Ok/Cancel buttons?

I've created a table in Microsoft Sql CE that I'm using to hold some data. I've generated an ORM via SqlMetal and I've pulled the datasource into my WPF project. I want to create a simple WPF form that can be used to edit a record in the table via the ORM-generated classes. I want this form to support typical OK/Cancel semantics. I'v...

Data binding to a list inside a data bound object

I'm new to WPF and data binding so hopefully I can explain the problem I'm having with enough detail to get some help. I have a list of objects that is data bound to a window. Let's say its a list of recipes. I have managed to get the application to display some details of each recipe in a list box, and some more details of the selected...

WPF image resources

I come from a mostly web and a little bit Windows Forms background. For a new project, we will be using WPF. The WPF application will need 10 - 20 small icons and images for illustrative purposes. I am thinking about storing these in the assembly as embedded resources. Is that the right way to go ? How do I specify in XAML that an Imag...

How can I capture KeyDown event on a WPF Page or UserControl object?

I have a Page with a UserControl on it. If the user presses Esc while anywhere on Page I want to handle. I thought this would be as easy as hooking up the PreviewKeyDown event, testing for the Esc key, and then handling it. However, when I placed I breakpoint in the event handler I found it was never getting called. I thought perhaps...

Multiple Dispatchers problem

I have the following problem: Multithreaded WPF application, Model View Presenter Implementation. Presenters and Views that belong together are created by a factory on a separate thread and should get a separate Dispatcher. Public Function CreatePresenter(Of T As {New, Class})(ByVal p_eCreationOptions As eViewCreationOptions) As T Impl...

I don't want a "close window" menu item in the task bar context menu for my WPF window

I don't want a "close window" menu item in the task bar context menu for my WPF window. My intention is to annoy the user. Thank you! ...

On-demand IEnumerable binding to ListBox

I've got a potentially rather large list of objects I'd like to bind to a ListBox in WPF. However, I'd like to have the List load itself incrementally. How can I bind a ListBox to an IEnumerable that loads itself on-demand in such a way that the listbox only tries to enumerate as much as it needs for the display? ...

Vertical Text in Wpf TextBlock

Is it possible to display the text in a TextBlock vertically so that all letters are stacked upon each other (not rotated with LayoutTransform)? ...

ObservableCollection<T> not updating UI

I'm having an issue with an ObservableCollection getting new items but not reflecting those changes in a ListView. I have enough quirks in the way I'm implementing this that I'm having a hard time determining what the problem is. My ObservableCollection is implemented thusly: public class MessageList : ObservableCollection<LobbyMessag...