﻿<UserControl x:Class="Plugin.SeqEditor.SettingPanel.CommonProperty"
             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:Plugin.SeqEditor.SettingPanel"
             mc:Ignorable="d" 
             d:DesignHeight="450" d:DesignWidth="800">
    <Grid>
        <StackPanel>
            <Label>Name</Label>
            <TextBox Text="{Binding Name}"/>

            <Label>Type</Label>
            <TextBox IsEnabled="False" Text="{Binding Type,Mode=OneWay}"/>

            <Label>Adapter</Label>
            <ComboBox x:Name="CbAdapter" 
                      IsEnabled="{Binding CanChangeAdapter}"
                      SelectedValue="{Binding Adapter}"
                      DisplayMemberPath="DisplayName" SelectedValuePath="DataValue"/>
        </StackPanel>

    </Grid>
</UserControl>
