arjunk.jayan
Topic Author
Posts: 2
Joined: 25 May 2021, 12:13

The TabControl is not working correctly

25 May 2021, 13:14

just created a tabControl which which contains of two tabitems and the tabcontrol is created in the file TabControl.xaml and i registered it in the Main.Cpp and it's header also. When we view the design in the visualstudio the design looks good and i call the TabControl.xaml inside another file POCtwo.xaml and when we run the solution and open the POC section the TabControl come in different way that is like ,one below other in the entire screen, and we are also not able to view the TabstripPlacement in side the tab that it is also not shown in the neosis window.what may be the reason behind this..need immediate respond.
<TabControl>
        <TabItem Header="Tab1">
                <TabItem.Background>
                    <LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
                        <GradientStop Color="#FFF0F0F0" Offset="0"/>
                        <GradientStop Color="#FFECA9A9" Offset="1"/>
                    </LinearGradientBrush>
                </TabItem.Background>
                <TextBox></TextBox>
        </TabItem>
        <TabItem Header="Tab2">
                <TabItem.Background>
                    <LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
                        <GradientStop Color="#FFF0F0F0" Offset="0"/>
                        <GradientStop Color="#FFDE9696" Offset="1"/>
                    </LinearGradientBrush>
                </TabItem.Background>
                <TextBox></TextBox>
        </TabItem>
        <TabItem Header="Tab3">
                <TabItem.Background>
                    <LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
                        <GradientStop Color="#FFF0F0F0" Offset="0"/>
                        <GradientStop Color="#FFE08888" Offset="1"/>
                    </LinearGradientBrush>
                </TabItem.Background>
                <TextBox></TextBox>
        </TabItem>
        <TabItem Header="Tab4">
                <TabItem.Background>
                    <LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
                        <GradientStop Color="#FFF0F0F0" Offset="0"/>
                        <GradientStop Color="#FFCF8F8F" Offset="1"/>
                    </LinearGradientBrush>
                </TabItem.Background>
                <TextBox></TextBox>
        </TabItem>
    </TabControl>
 
User avatar
sfernandez
Site Admin
Posts: 2255
Joined: 22 Dec 2011, 19:20

Re: The TabControl is not working correctly

25 May 2021, 14:25

If you open that TabControl.xaml in our XamlPlayer, does it look fine? What theme are you using in your application?
How is POCtwo.xaml including the TabControl xaml? Is it possible that its contained in a panel with not enough space for rendering the whole tab control?
 
arjunk.jayan
Topic Author
Posts: 2
Joined: 25 May 2021, 12:13

Re: The TabControl is not working correctly

26 May 2021, 05:58

If you open that TabControl.xaml in our XamlPlayer, does it look fine? What theme are you using in your application?
How is POCtwo.xaml including the TabControl xaml? Is it possible that its contained in a panel with not enough space for rendering the whole tab control?

i just created the Tabcontrol.xaml with tabs and nested tabs and render it in the POCTwo.xaml using the name space that is already been using the name space <usercontrol:tabcontrol></usercontrol:tabcontrol>
and i also tried the code directly in the POCTwo.xaml directly to looks if it is working and the same result is shown that is the nested tabs that included using theTabstripPlacement are also not displayed in the screen, it shows the bats name and shown in horizontally line like one tab from the left to the right of the entire screen and the second comes under it similarly and nothing else shown.
 
User avatar
sfernandez
Site Admin
Posts: 2255
Joined: 22 Dec 2011, 19:20

Re: The TabControl is not working correctly

26 May 2021, 20:39

Can you please attach here the TabControl.xaml you are trying to load in your application?

Who is online

Users browsing this forum: Bing [Bot] and 4 guests