你的位置:首页 > 软件开发 > ASP.net > 微软抛弃微软.Net了吗?Net技术的未来在哪里

微软抛弃微软.Net了吗?Net技术的未来在哪里

发布时间:2016-09-04 17:00:05
winform:优点是简单易学,缺点是界面做不好看,界面适应能力很差。wpf:微软结合了显卡渲染技术推出的界面设计方式,模仿html推出了自己的xaml,winform能实现的wpf都能实现,因为wpf有一个WindowsFormsHost控件,他是为托管winform控件做准备 ...

get='_blank'>winform:优点是简单易学,缺点是界面做不好看,界面适应能力很差。

wpf:微软结合了显卡渲染技术推出的界面设计方式,模仿html推出了自己的xaml,winform能实现的wpf都能实现,因为wpf有一个WindowsFormsHost控件,他是为托管winform控件做准备的,比如wpf没有chart控件,可以直接托管一个winform下面chart。比如:

需要引用System.Windows.Forms.DataVisualization

<Window x:Class="WpfApplication1.MainWindow"    ="http://schemas.microsoft.com/winfx/2006/xaml/presentation"    ="http://schemas.microsoft.com/winfx/2006/xaml"    ="http://schemas.microsoft.com/expression/blend/2008"    ="http://schemas.open     ="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration"="clr-namespace:System.Windows.Forms.DataVisualization.Charting;assembly=System.Windows.Forms.DataVisualization"    ="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration"="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"            ="clr-namespace:WpfApplication1"    mc:Ignorable="d"    Title="MainWindow" Height="350" Width="525">  <Grid Name="AAA">        <WindowsFormsHost x:Name="myFormsChart" FontSize="8">      <Char:Chart x:Name="chart1"  >              </Char:Chart>    </WindowsFormsHost>  </Grid></Window>

原标题:微软抛弃微软.Net了吗?Net技术的未来在哪里

关键词:.NET

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。