[]
After creating the WPF application, select View > Other Windows > Data Sources from Visual Studio.
In the Data Sources panel, click Add New Data Source to launch the Data Source Configuration Wizard, select Database, and then click Next.

Select Dataset as the data model, and then click Next.

Click New Connection. In the Add Connection dialog, set the Server name, connect to the SQL Server sample database Adventure Works, and then click OK.

Save the connection string with the name AdventureWorks2019ConnectionString, and then click Next.

Select the ProductPhoto table as the database object, and then click Finish.

View the added data source in the Data Sources window of Visual Studio.
