- .NET Standard 2.0 Cookbook
- Fiqri Ismail
- 225字
- 2021-06-25 22:11:33
How it works...
Let's have a look at the bits and pieces and how they are bound together. From steps 1 to 7, we have opened an existing solution and added a WPF project to that solution. In steps 8 to 10, we added a control to the WPF main form, from the toolbox. Since this is a WPF application, we went through an additional element; setting up the UI. In step 11, we have set up the UI elements using the properties window.
In steps 12 to 15, we added a reference to the WPF project. Referencing the library we have created is the most important part. Without referencing, the WPF project is totally unaware of the library. After referencing the library only, it will available to the WPF project. Step 17 tells the compiler to use the namespace of the library. Now we don't have to call the full namespace of the class inside the library. In step 18, we created a simple variable and stored a name. The next line creates an instance of the HelloWorld class inside the library. Finally, we used the Text property of the WPF TextBlock control to store the value from the SayHello(string name) method.
In the final steps – 19 to 20, we have executed the code and tested it.
- 精通JavaScript+jQuery:100%動態(tài)網(wǎng)頁設(shè)計密碼
- 劍指Offer(專項突破版):數(shù)據(jù)結(jié)構(gòu)與算法名企面試題精講
- MATLAB圖像處理超級學(xué)習(xí)手冊
- Vue.js入門與商城開發(fā)實戰(zhàn)
- 批調(diào)度與網(wǎng)絡(luò)問題的組合算法
- HTML5+CSS3 Web前端開發(fā)技術(shù)(第2版)
- 零基礎(chǔ)學(xué)Kotlin之Android項目開發(fā)實戰(zhàn)
- MyBatis 3源碼深度解析
- Mudbox 2013 Cookbook
- 例解Python:Python編程快速入門踐行指南
- 軟技能2:軟件開發(fā)者職業(yè)生涯指南
- Java核心技術(shù)速學(xué)版(第3版)
- Python程序員面試算法寶典
- 威脅建模:設(shè)計和交付更安全的軟件
- ArcGIS Blueprints