Setting design time DataContext on a Window is giving a compiler error?
I have the following XAML below for the main window in my WPF application, I am trying to set the design time d:DataContext … Read more
I have the following XAML below for the main window in my WPF application, I am trying to set the design time d:DataContext … Read more
I’m not sure when I should use ContentPresenter instead of ContentControl (and vice-versa). At the moment, I’m using ContentControl pretty much all the … Read more
What is difference between a ControlTemplate and a DataTemplate in WPF? 7 Answers 7
I’m writing a modal dialog in WPF. How do I set a WPF window to not have a close button? I’d still like … Read more
What is the difference between WPF’s ListBox and ListView? I can not find any significant difference in their properties. Is there different typical … Read more
Is there a ‘standard’ way to specify that a task continuation should run on the thread from which the initial task was created? … Read more
I have a list (see below) contained in a window. The window’s DataContext has two properties, Items and AllowItemCommand. How do I get … Read more
How can I bring my WPF application to the front of the desktop? So far I’ve tried: SwitchToThisWindow(new WindowInteropHelper(Application.Current.MainWindow).Handle, true); SetWindowPos(new WindowInteropHelper(Application.Current.MainWindow).Handle, IntPtr.Zero, … Read more
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, … Read more
I have an instance of a System.Drawing.Bitmap and would like to make it available to my WPF app in the form of a … Read more