Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I am programmatically creating GridViewColumns. My columns are simple: a Grid that contains a TextBox. I set Grid.Margin and the TextBox's Tag and Style properties. I wish my GridViewColumn to look like the XAML below:

<GridViewColumn Header="MyHeader">
    <GridViewColumn.CellTemplate>
        <ItemContainerTemplate>
            <Grid Margin="-6,0,-6,0">
                <TextBox Tag="0" Style="{StaticResource PassFailStyle}"/>
            </Grid>
        </ItemContainerTemplate>
    </GridViewColumn.CellTemplate>
</GridViewColumn>   
question from:https://stackoverflow.com/questions/66054091/properties-disappear-when-programmatically-creating-gridviewcolumn

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
209 views
Welcome To Ask or Share your Answers For Others

1 Answer

Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...