Skip to content

stackpanel possibly incorrect orientation within datatemplate ? #18202

Answered by germgerm
germgerm asked this question in Q&A
Discussion options

You must be logged in to vote

I looked at itemsrepeater which does what I want - it is deprecated but got me going in the right direction

        <Border Margin="2" BorderBrush="Chartreuse" BorderThickness="2">
            <StackPanel Orientation="Horizontal" Width="100" HorizontalAlignment="Left">
                <ItemsControl ItemsSource="{Binding Fretboard}">
                    <ItemsControl.ItemsPanel>
                        <ItemsPanelTemplate>
                            <StackPanel Orientation="Horizontal"/>
                        </ItemsPanelTemplate>
                    </ItemsControl.ItemsPanel>
                    <ItemsControl.ItemTemplate>
                        <DataTemplate>
                       …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by germgerm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant