|
いま、このようにリストビューのなかに、テキストボックスを配置しています
<ListView.View> <GridView> <GridView.ColumnHeaderContainerStyle> <Style TargetType="{x:Type GridViewColumnHeader}"> <!-- Set any properties you want to set --> <Setter Property="Background" Value="#005831" /> <Setter Property="Foreground" Value="White" /> </Style> </GridView.ColumnHeaderContainerStyle> <GridViewColumn x:Name="Manuscprit_DataGrid" Header="原稿内容" Width="670" > <GridViewColumn.CellTemplate> <DataTemplate> <Grid x:Name="manuscript_grid" GotFocus="manuscript_grid_GotFocus" LostFocus="manuscript_grid_LostFocus"> <!--<TextBlock Text="{Binding ManuscriptText}" Style="{StaticResource unselectedListViewStyle}"/> <TextBox x:Name="Manuscript_text" Text="{Binding ManuscriptText}" AcceptsReturn="True" Style="{StaticResource selectedListViewStyle}" KeyUp="Manuscript_text_KeyUp" TextChanged="Manuscript_text_TextChanged" />--> <TextBlock Text="{Binding Path=ManuscriptText}" Style="{StaticResource unselectedListViewStyle}"/> <TextBox x:Name="Manuscript_text" Text="{Binding Path=ManuscriptText}" AcceptsReturn="True" Style="{StaticResource selectedListViewStyle}" TextChanged="Manuscript_text_TextChanged" />
<!--<TextBox x:Name="Manuscript_text" Text="{Binding Path=ManuscriptText}" Style="{StaticResource selectedListViewStyle}" KeyUp="Manuscript_text_KeyUp" />--> </Grid> </DataTemplate> </GridViewColumn.CellTemplate> </GridViewColumn> </GridView> </ListView.View> </ListView>
|