Resolved Resize problem

Michix

New member
Joined
Aug 3, 2021
Messages
1
Programming Experience
Beginner
Hi! I have a problem with TabControl. When I add a Template that aims to add a slider, my textbox doesn't expand to fullscreen (everything works without it).
XML:
                <TabControl.Template>
                    <ControlTemplate TargetType="{x:Type TabControl}">
                        <StackPanel>
                            <ScrollViewer BorderThickness="0" HorizontalScrollBarVisibility="Visible" VerticalScrollBarVisibility="Disabled">
                                <TabPanel x:Name="HeaderPanel"
                                    IsItemsHost="true"/>
                                <ScrollViewer.Resources>
                                    <System:Double x:Key="{x:Static SystemParameters.HorizontalScrollBarHeightKey}">5</System:Double>
                                </ScrollViewer.Resources>
                            </ScrollViewer>
                            <ContentPresenter x:Name="PART_SelectedContentHost"
                                          ContentSource="SelectedContent"/>
                        </StackPanel>
                    </ControlTemplate>
                </TabControl.Template>
1627993211813.png
 
Back
Top Bottom