0

I have something like this:

          <ListView >
              <Grid >
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="*"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <SymbolIcon Symbol="SomeExistingSymbol" Margin="0,0,10,0" />
                <TextBlock Grid.Column="1">Some data</TextBlock>
            </Grid>
            <Grid >
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="*"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <SymbolIcon Symbol="SomeExistingSymbol2" Margin="0,0,10,0" />
                <TextBlock Grid.Column="1">Some data 2</TextBlock>
            </Grid>
            <!--More list view items (grids)-->
         </ListView>

I don't want to copy Grids over and over. I know I can use binding and data templates. But I want to have all data defined in xaml - is that possible?

The reason is that I need to see instant changes of data in VS designer, without building project.

3
  • The only good way out of this is as you mentioned - binding and data templates. Why don't you want to use that? Commented Feb 20, 2016 at 10:20
  • The reason is (Q edit) that I need to see instant changes of data in VS designer, without building project. Commented Feb 20, 2016 at 15:31
  • There is support for design time bindings you know.. Commented Feb 20, 2016 at 16:52

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.