The desktop version add wrap to the subscription group

master
2dust 2025-02-20 11:08:28 +08:00
parent 4859dcda08
commit ee75dd37af
1 changed files with 11 additions and 5 deletions

View File

@ -19,10 +19,16 @@
<WrapPanel Margin="2" DockPanel.Dock="Top">
<ListBox
x:Name="lstGroup"
MaxHeight="200"
Margin="4,0"
DisplayMemberBinding="{Binding Remarks}"
ItemsSource="{Binding SubItems}"
Theme="{DynamicResource PureCardRadioGroupListBox}" />
Theme="{DynamicResource PureCardRadioGroupListBox}">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel />
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
</ListBox>
<Button
x:Name="btnEditSub"
@ -84,14 +90,14 @@
<DataGrid
x:Name="lstProfiles"
AutoGenerateColumns="False"
CanUserReorderColumns="True"
BorderThickness="1"
CanUserReorderColumns="True"
CanUserResizeColumns="True"
GridLinesVisibility="All"
HeadersVisibility="All"
ScrollViewer.AllowAutoHide="False"
IsReadOnly="True"
ItemsSource="{Binding ProfileItems}">
ItemsSource="{Binding ProfileItems}"
ScrollViewer.AllowAutoHide="False">
<DataGrid.KeyBindings>
<KeyBinding Command="{Binding Export2ShareUrlCmd}" Gesture="Ctrl+C" />
<KeyBinding Command="{Binding SetDefaultServerCmd}" Gesture="Enter" />