Top "Wpf-controls" questions

WPF controls include UserControls, which are composite collections of other controls, and CustomControls, which are controls built with WPF styles and templates.

How to get a top object (Window or Page) in WPF?

Within my custom WPF control I want to get a containing Window or Page. Window.GetWindow() method works fine when …

wpf wpf-controls
Custom vs User control

I've been reading some explanations about the difference between User and Custom Controls, for example this: http://www.wpftutorial.net/…

wpf user-controls wpf-controls custom-controls viewmodel
How to define TextBox input restrictions?

How can I restrict TextBox to accept only capital letters, or for example digits, or forbid to put any special …

wpf textbox wpf-controls mask input-filtering
wpf datagrid alternate row coloring

I have tried this method.. without luck.. <Style TargetType="{x:Type DataGridRow}"> <Style.Triggers> <Trigger …

wpf xaml wpf-controls styles wpfdatagrid
in wpf how do i make a datagrid fit the window height

I have a grid with 3 columns and 2 rows <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto"/> <ColumnDefinition Width="10"/&…

wpf datagrid wpf-controls scrollbar
How to make WPF input control show virtual Keyboard when it got focus in touch screen

For our WPF application, when it runs on touch screen(Surface Pro .etc), the TextBox/PasswordBox control cannot show virtual …

wpf wpf-controls touch
Minimizing Application to system tray using WPF ( Not using NotifyIcon )

I am finished making my application and now I want to incorporate " minimizing into the system tray feature " for it . …

c# wpf windows wpf-controls notifyicon
How to make a Template Window in WPF?

So i am building an application that will have lots of windows, all with the same basic layout: A main …

c# wpf wpf-controls
WPF ListBoxItem double-click?

The WPF ListBox doesn't have a DoubleClick event, at least not as far as I can tell. Is there a …

wpf wpf-controls