alielie
2026-03-02 12e606635c42ea20f4b7c2bdda5204237a4b4c96
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<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>