一、WPF框架以及應用場景
? WPF框架
? 1.1、WPF與WinForm
? WPF :https://github.com/dotnet/wpf
? SilverLight : Web富客戶端
? 1.2、異/同點
? 共同點:最終的輸出結果都是客戶端應用,實現(xiàn) 人機交互。
? 異同點:
- ? 界面渲染不一樣
- ? 業(yè)務邏輯控制不一樣(界面設計,色彩、尺寸比例)
? 1.3、框架的可移植性
? WPF/Winform【表現(xiàn)層】: 只能在windows系統(tǒng)使用。
? Web應用開發(fā)局限性
? 1.4、應用場景
? 桌面應用 主要應用在上位機。
? 對硬件交互比較多的推薦使用 桌面應用。
二、從桌面應用到WPF的界面渲染
? 2.1、界面交互對象
? 2.2、界面渲染
三、WPF開發(fā)中的表現(xiàn)層與邏輯層
? 3.1、業(yè)務邏輯控制文章來源:http://www.zghlxwxcb.cn/news/detail-488534.html
? 3.2、事件驅(qū)動與數(shù)據(jù)驅(qū)動文章來源地址http://www.zghlxwxcb.cn/news/detail-488534.html
四、WPF基礎應用開發(fā)實踐
<Window x:Class="WpfApp1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WpfApp1"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
<Grid>
<Button Content="提交" Width="100" Height="100"></Button>
</Grid>
</Window>
到了這里,關于WPF 與 Winform 的區(qū)別以及應用場景的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網(wǎng)!