Tag - WPF

How to get the value of textbox which is created at runtime in WPF

I will show you how to add Controls at runtime and get their values in WPF. 1- Create WPF Application.2- Add Button to add textbox at runtime.3- Add Button to read value from textbox Which is Created at Runtime.4- Add Stackpanel to Host Controls on it. the following method Responsible for Add Controls at runtime: private void...

How to add windows forms control in WPF

I will describe how we can use windows forms controls in WPF application.I'll assume I have a WPF Application and I want to use DateTimePicker Control, how I can do that in WPF Application? 1- Create WPF Application.2- Add Stackpanel control.3- in Solution Explorer Add Reference for: System.Windows.FormsWindowsFormsIntegration using WindowsControls = System.Windows.Forms; using WindowsIntegration = System.Windows.Forms.Integration; The below method...