Forge
deeb25a2
1<UserControl xmlns="https://github.com/avaloniaui"
2 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
3 xmlns:nav="using:CascadeIDE.Features.WorkspaceNavigation.Presentation"
4 xmlns:views="using:CascadeIDE.Views"
5 x:Class="CascadeIDE.Views.CorrespondenceMfdPageView"
6 x:DataType="nav:WorkspaceNavigationMapViewModel">
7 <UserControl.Resources>
8 <views:StringNotEmptyToBoolConverter x:Key="HciOrientationLineVisible"/>
9 </UserControl.Resources>
10 <Grid RowDefinitions="Auto,*" MinHeight="0">
11 <views:PanelChromeHeader Grid.Row="0"
12 Title="Correspondence · workspace"
13 UppercaseTitle="True"/>
14 <ScrollViewer Grid.Row="1"
15 VerticalScrollBarVisibility="Auto"
16 HorizontalScrollBarVisibility="Disabled">
17 <StackPanel Spacing="8" Margin="0,6,0,0">
18 <StackPanel Orientation="Horizontal" Spacing="4">
19 <TextBlock FontSize="11"
20 Foreground="{DynamicResource CascadeTheme.ChatLabelForeground}"
21 Text="Якорь:"/>
22 <TextBlock FontSize="11"
23 FontWeight="SemiBold"
24 Foreground="{DynamicResource CascadeTheme.ChatLabelForeground}"
25 Text="{Binding WorkspaceNavigationMapAnchorLabel}"/>
26 </StackPanel>
27 <TextBlock FontSize="10"
28 TextWrapping="Wrap"
29 Opacity="0.9"
30 ToolTip.Tip="{Binding WorkspaceCorrespondenceLayersTooltip}"
31 Foreground="{DynamicResource CascadeTheme.ChatLabelForeground}"
32 IsVisible="{Binding WorkspaceCorrespondenceLayersLine, Converter={StaticResource HciOrientationLineVisible}}"
33 Text="{Binding WorkspaceCorrespondenceLayersLine}"/>
34 <Button Background="Transparent"
35 BorderThickness="0"
36 Padding="0"
37 HorizontalAlignment="Left"
38 Command="{Binding OpenWorkspaceFeatureDocsCommand}"
39 IsVisible="{Binding WorkspaceFeatureLine, Converter={StaticResource HciOrientationLineVisible}}">
40 <TextBlock FontSize="10"
41 TextWrapping="Wrap"
42 Opacity="0.9"
43 Foreground="{DynamicResource CascadeTheme.ChatLabelForeground}"
44 Text="{Binding WorkspaceFeatureLine}"/>
45 </Button>
46 <Button Background="Transparent"
47 BorderThickness="0"
48 Padding="0"
49 HorizontalAlignment="Left"
50 Command="{Binding OpenWorkspaceAdrCorrespondenceCommand}"
51 IsVisible="{Binding WorkspaceAdrCorrespondenceLine, Converter={StaticResource HciOrientationLineVisible}}">
52 <TextBlock FontSize="10"
53 TextWrapping="Wrap"
54 Opacity="0.9"
55 Foreground="{DynamicResource CascadeTheme.ChatLabelForeground}"
56 Text="{Binding WorkspaceAdrCorrespondenceLine}"/>
57 </Button>
58 <TextBlock FontSize="10"
59 TextWrapping="Wrap"
60 Opacity="0.85"
61 Foreground="{DynamicResource CascadeTheme.ChatLabelForeground}"
62 IsVisible="{Binding WorkspaceDocsCoverageLine, Converter={StaticResource HciOrientationLineVisible}}"
63 Text="{Binding WorkspaceDocsCoverageLine}"/>
64 <TextBlock FontSize="11"
65 FontWeight="SemiBold"
66 Margin="0,8,0,0"
67 Foreground="{DynamicResource CascadeTheme.ChatLabelForeground}"
68 Text="Reverse anchors"/>
69 <TextBlock FontSize="10"
70 Opacity="0.85"
71 TextWrapping="Wrap"
72 Foreground="{DynamicResource CascadeTheme.ChatLabelForeground}"
73 Text="{Binding WorkspaceReverseAnchorsStatus}"/>
74 <ItemsControl ItemsSource="{Binding WorkspaceReverseAnchorItems}">
75 <ItemsControl.ItemTemplate>
76 <DataTemplate DataType="nav:WorkspaceReverseAnchorItemVm">
77 <Button Margin="0,0,0,4"
78 Padding="6,6"
79 HorizontalAlignment="Stretch"
80 HorizontalContentAlignment="Left"
81 Background="Transparent"
82 BorderThickness="1"
83 BorderBrush="{DynamicResource CascadeTheme.WorkspacePanelBorderBrush}"
84 CornerRadius="6"
85 Command="{Binding $parent[UserControl].DataContext.OpenCorrespondenceDocumentCommand}"
86 CommandParameter="{Binding}">
87 <TextBlock Text="{Binding DisplayLine}"
88 FontSize="10"
89 TextWrapping="Wrap"
90 Foreground="{DynamicResource CascadeTheme.ChatLabelForeground}"/>
91 </Button>
92 </DataTemplate>
93 </ItemsControl.ItemTemplate>
94 </ItemsControl>
95 <TextBlock FontSize="11"
96 FontWeight="SemiBold"
97 Margin="0,8,0,0"
98 Foreground="{DynamicResource CascadeTheme.ChatLabelForeground}"
99 Text="Linked ADRs (forward)"/>
100 <ItemsControl ItemsSource="{Binding WorkspaceCorrespondenceDocItems}">
101 <ItemsControl.ItemTemplate>
102 <DataTemplate DataType="nav:WorkspaceCorrespondenceDocItemVm">
103 <Button Margin="0,0,0,4"
104 Padding="6,6"
105 HorizontalAlignment="Stretch"
106 HorizontalContentAlignment="Left"
107 Background="Transparent"
108 BorderThickness="1"
109 BorderBrush="{DynamicResource CascadeTheme.WorkspacePanelBorderBrush}"
110 CornerRadius="6"
111 Command="{Binding $parent[UserControl].DataContext.OpenCorrespondenceDocumentCommand}"
112 CommandParameter="{Binding DocPath}">
113 <TextBlock Text="{Binding DisplayLine}"
114 FontSize="10"
115 TextWrapping="Wrap"
116 Foreground="{DynamicResource CascadeTheme.SolutionExplorerHeaderForeground}"/>
117 </Button>
118 </DataTemplate>
119 </ItemsControl.ItemTemplate>
120 </ItemsControl>
121 </StackPanel>
122 </ScrollViewer>
123 </Grid>
124</UserControl>
125
View only · write via MCP/CIDE