Visual Studio 2008开发Office应用程序
作者: , 出处:巧巧读书, 责任编辑: 韩博颖,
2008-03-05 13:54
Visual Studio 2008 具有一些强大的功能,如支持 LINQ、改进了 Web 开发以及与 Windows Vista 和 SharePoint 紧密集成等等。不过 Visual Studio 2008 真正突出的一个特点是支持 Microsoft Office 解决方案开发。
XAML 代码
<UserControl x:Class="WpfChart.SalesChart" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Height="300" Width="300"> <Grid Name="Grid1"> <Grid.ColumnDefinitions> <ColumnDefinition Width="80"/> <ColumnDefinition Width="190"/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="30"/> <RowDefinition Height="30"/> <RowDefinition Height="30"/> <RowDefinition Height="30"/> <RowDefinition Height="30"/> </Grid.RowDefinitions> <TextBlock Name="Category1" Text="X1" Grid.Column="0" Grid.Row="0" VerticalAlignment="Center" HorizontalAlignment="Center"/> <TextBlock Name="Category2" Text="X2" Grid.Column="0" Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Center"/> <TextBlock Name="Category3" Text="X3" Grid.Column="0" Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Center"/> <TextBlock Name="Category4" Text="X4" Grid.Column="0" Grid.Row="3" VerticalAlignment="Center" HorizontalAlignment="Center"/> <TextBlock Name="Title" FontSize="14" FontWeight="Bold" Text="Chart Title" Grid.Column="1" Grid.Row="4" VerticalAlignment="Center" HorizontalAlignment="Right"/> <Rectangle Name="Bar1" Fill="LightSteelBlue" RadiusX="5" RadiusY="5" HorizontalAlignment="Left" Grid.Column="1" Grid.Row="0" Width="170" Height="18"/> <Rectangle Name="Bar2" Fill=" LightSteelBlue" RadiusX="5" RadiusY="5" HorizontalAlignment="Left" Grid.Column="1" Grid.Row="1" Width="170" Height="18"/> <Rectangle Name="Bar3" Fill=" LightSteelBlue" RadiusX="5" RadiusY="5" HorizontalAlignment="Left" Grid.Column="1" Grid.Row="2" Width="170" Height="18"/> <Rectangle Name="Bar4" Fill=" LightSteelBlue" RadiusX="5" RadiusY="5" HorizontalAlignment="Left" Grid.Column="1" Grid.Row="3" Width="170" Height="18"/> <TextBlock Name="Label1" Text="$Y1" Grid.Column="1" Grid.Row="0" VerticalAlignment="Center" HorizontalAlignment="Right"/> <TextBlock Name="Label2" Text="$Y2" Grid.Column="1" Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Right"/> <TextBlock Name="Label3" Text="$Y3" Grid.Column="1" Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Right"/> <TextBlock Name="Label4" Text="$Y4" Grid.Column="1" Grid.Row="3" VerticalAlignment="Center" HorizontalAlignment="Right"/> </Grid> </UserControl> |
共10页。
9 2 3 4 5 6 7 8 9 10 :