<UserControl x:Class="MultiLayout.UcSingleGage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      xmlns:local="clr-namespace:MultiLayout"
      xmlns:uiModule="clr-namespace:MultiLayout.UiModule"
      mc:Ignorable="d uiModule" 
      d:DesignHeight="768" d:DesignWidth="1024"
           
      Background="#bcbcbc" d:DataContext="{d:DesignData Source=../UnitTest/FlyLayout.xaml}">
    <UserControl.Resources>

        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="UcSingleGageStyle.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>

    </UserControl.Resources>
    <Grid>
        <Grid >
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="auto"/>
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>

            <StackPanel Name="stackpanel_menu" Width="73" Background="#282828" >

            </StackPanel>
            <Grid Grid.Column="1">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="auto" />
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>
                <Grid>
                    <Viewbox 
                    MaxWidth="{Binding DynAreaWidth}" 
                    Visibility="{Binding IsDynAreaVisible,Converter={StaticResource visbilityconv}, ConverterParameter=Collapsed}" 
                    VerticalAlignment="Top" HorizontalAlignment="Left" SnapsToDevicePixels="True" Margin="2" >
                        <StackPanel Name="stackpanel_dynarea" Width="250">
                            
                        </StackPanel>
                    </Viewbox>
                </Grid>
                <TabControl Grid.Column="1" Name="tabControl_graph" Template="{StaticResource GraphTab}">
                    <TabItem Header="TEST"/>
                    <TabItem Header="TEST2"/>
                    <TabItem Header="TEST3"/>
                </TabControl>
            </Grid>
        </Grid>
        <Grid >
            <Button Style="{StaticResource ButtonStyle_option}" Click="button_option_click" />
        </Grid>
    </Grid>
</UserControl>