Page tree
Skip to end of metadata
Go to start of metadata

添加一个C1FlexGrid控件至您的应用程序,所需步骤和添加任何的自定义控件严格一致。在此方面C1FlexGrid没有任何特别。您将从向工程添加一个到C1FlexGrid所在程序集的引用开始,接下来就是通过XAML添加该控件:

WPF XAML

<Window x:Class="FilterRow.MainWindow"
... xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml"
... >
<Grid x:Name="LayoutRoot">
<c1:C1FlexGrid/>
</Grid> </Window>

Silverlight XAML

<UserControl x:Class="MainTestApplication.MainPage"
... xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml"
... >
<Grid x:Name="LayoutRoot">
<c1:C1FlexGrid/>
</Grid>
</UserControl>
您也可以在代码中创建C1FlexGrid : C# code
var fg = new C1.Silverlight.FlexGrid.C1FlexGrid();
LayoutRoot.Children.Add(fg);

  • No labels