WPF

How to Add a Datagrid in WPF

–Datagrid in WPF 1) Create a Datagrid 2) then define datagrid column 3) Now add DataGridTemplateColumn field to actually specify data related to each column 4) 5) 6) and finally inside of datatemplate we add text box etc

WPF: How to get a selected row value from Datagrid on double click

A very simple of  getting a selected row value from Datagrid on double click… 1) Create a double click event on WPF form/window private void uxABC_MouseDoubleClick(object sender, MouseButtonEventArgs e){ myData decData = uxABC.SelectedItem as MyData; Guid myId = decData.MyId; } … Read More

How to display a new window by double clicking a row in datagrid in WPF

An easy way of displaying a new window in WPF by double clicking a selected row in Data Grid Add a new second window to project Once added, add any datagrid, rows, columns you need to, example Then go FirstWindow.xaml … Read More

WPF call main parent control in child control with event handler

Below is a simple example of a WPF solutio and explains how to call a parent control’s method in child control click event. In this case we will be using 1) Main window 2) Parent user control 3) Child user … Read More