Is there a way to render ItemTemplate in WPF

I have an ItemControl that has a rather sophisticated ItemTemplate that allows the user to edit an order. Unfortunately, the design surface in Visual Studio does not display an ItemTemplate, so I do not get instant feedback from the changes I make. Is there a way to render ItemTemplate in Visual Studio? Here is the structure of my control:

<ItemsControl ItemsSource="{Binding Orders, Mode=TwoWay}">
    <ItemsControl.ItemTemplate>
        <DataTemplate>
            <Grid>
                <!-- Fairly complex form here -->
            </Grid>
        </DataTemplate>
    </ItemsControl.ItemTemplate>
</ItemsControl>
+3
source share
2 answers

In the past, I just copied the contents of a DataTemplate into a new WPFControl. Sometimes I had to use some dummy data to view it correctly, but for the most part it works great.

+3
source

, , UserControl, Visual Studio.

, , Expression Blend ( ) DataTemplate

+2

Source: https://habr.com/ru/post/1772111/


All Articles