Forge
4405de34
1<UserControl xmlns="https://github.com/avaloniaui"
2 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
3 xmlns:vm="using:CascadeIDE.ViewModels"
4 xmlns:settings="using:CascadeIDE.Features.Settings"
5 x:Class="CascadeIDE.Views.SettingsShellView"
6 x:DataType="vm:MainWindowViewModel">
7 <Grid ColumnDefinitions="200,*">
8 <Border Grid.Column="0"
9 BorderBrush="{DynamicResource CascadeTheme.WorkspacePanelBorderBrush}"
10 BorderThickness="0,0,1,0"
11 Padding="8,4">
12 <ListBox x:Name="CategoryList"
13 Background="Transparent"
14 BorderThickness="0"
15 ScrollViewer.VerticalScrollBarVisibility="Auto">
16 <ListBox.DataTemplates>
17 <DataTemplate DataType="settings:SettingsNavigationGroupHeader">
18 <TextBlock Text="{Binding Title}"
19 FontSize="11"
20 FontWeight="SemiBold"
21 Margin="4,12,4,4"
22 Foreground="{DynamicResource CascadeTheme.ChatLabelForeground}"
23 Opacity="0.8"/>
24 </DataTemplate>
25 <DataTemplate DataType="settings:SettingsNavigationCategory">
26 <StackPanel Margin="0,0,0,2">
27 <TextBlock Text="{Binding Group}"
28 IsVisible="{Binding ShowGroupHeader}"
29 FontSize="11"
30 Margin="4,10,4,2"
31 Foreground="{DynamicResource CascadeTheme.ChatLabelForeground}"
32 Opacity="0.75"/>
33 <TextBlock Text="{Binding Title}"
34 Margin="4,2,4,6"
35 TextWrapping="Wrap"
36 Foreground="{DynamicResource CascadeTheme.ChatMessageContentForeground}"/>
37 </StackPanel>
38 </DataTemplate>
39 </ListBox.DataTemplates>
40 </ListBox>
41 </Border>
42
43 <DockPanel Grid.Column="1" Margin="16,8,16,8">
44 <TextBlock x:Name="PageTitle"
45 DockPanel.Dock="Top"
46 FontWeight="SemiBold"
47 FontSize="16"
48 Margin="0,0,0,12"
49 Foreground="{DynamicResource CascadeTheme.ChatMessageContentForeground}"/>
50 <ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled">
51 <ContentControl x:Name="PageHost" HorizontalAlignment="Stretch" VerticalAlignment="Top"/>
52 </ScrollViewer>
53 </DockPanel>
54 </Grid>
55</UserControl>
56
View only · write via MCP/CIDE