Answer the question
In order to leave comments, you need to log in
How to open UserControl via TabControl?
There is a TabControl:
<Controls:MetroAnimatedSingleRowTabControl x:Name="MainTabControl" Grid.Row="1">
<TabItem Header="buttons">
<exampleViews:ButtonsExample DataContext="{Binding}" />
</TabItem>
<TabItem Header="text">
<exampleViews:TextExamples DataContext="{Binding}" />
</TabItem>
<UserControl x:Class="MetroDemo.ExampleViews.ButtonsExample"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:Controls="http://metro.mahapps.com/winfx/xaml/controls"
xmlns:MetroDemo="clr-namespace:MetroDemo"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
d:DesignHeight="737.288"
d:DesignWidth="800"
d:DataContext="{d:DesignInstance MetroDemo:MainWindowViewModel}">
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question