回复 12楼zy70649111的帖子
你好,
不好意思,久等了。请尝试以下代码:
- <Grid>
- <Grid.Resources>
- <Style x:Key="styletest" TargetType="c1:C1FlexGrid" >
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="c1:C1FlexGrid">
-
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </Grid.Resources>
- <c1:C1FlexGrid Style="styletest" HorizontalAlignment="Left" Margin="10,10,0,0" Name="c1FlexGrid1" VerticalAlignment="Top" Height="250" Width="378" />
- </Grid >
复制代码 |