Top "Wpf" questions

Windows Presentation Foundation, or WPF, is a subsystem for rendering user interfaces in Windows-based applications.

Set focus on textbox in WPF

How to set the focus on an TextBox element in WPF I have this code: txtCompanyID.Focusable = true; txtCompanyID.Focus(); ...…

c# .net wpf textbox focus
Page vs Window in WPF?

What is the difference between a Page and a Window in WPF when you are adding a new file in …

c# wpf
Binding ConverterParameter

Is there a way I could do this in a Style: <Style TargetType="FrameworkElement"> <Setter Property="Visibility"&…

wpf xaml styles
Change background color for selected ListBox item

This is my XAML so far. <ScrollViewer Grid.Column="1" Grid.RowSpan="2"> <ListBox Background="Black" ItemsSource="{Binding Path=…

wpf styles
How can I programmatically generate keypress events in C#?

How can I programmatically create an event that would simulate a key being pressed on the keyboard?

c# .net wpf keyboard-events
How to remove default mouse-over effect on WPF buttons?

My problem is that in WPF, whenever I try and change the colour of a button's background using triggers or …

wpf button mouseover
Dynamic loading of images in WPF

I have a strange issue with WPF, I was loading images from the disk at runtime and adding them to …

wpf image dynamic loading
How can I set the color of a selected row in DataGrid

The default background color of a selected row in DataGrid is so dark that I can't read it. Is there …

c# wpf xaml datagrid
What is The difference between ListBox and ListView

What is the difference between WPF's ListBox and ListView? I can not find any significant difference in their properties. Is …

.net wpf wpf-controls
Program does not contain a static 'Main' method suitable for an entry point

Suddenly my whole project stopped compiling at all, showing the following message: Program 'path_to_obj_project_folder' does not …

c# wpf