Forge
deeb25a2
1<UserControl xmlns="https://github.com/avaloniaui"
2 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
3 xmlns:views="using:CascadeIDE.Views"
4 x:Class="CascadeIDE.Views.UiKit.EcamReadout"
5 x:Name="Root"
6 x:CompileBindings="False">
7 <UserControl.Resources>
8 <views:StringNotEmptyToBoolConverter x:Key="StringNotEmptyToBool"/>
9 </UserControl.Resources>
10 <Border Padding="10,8"
11 CornerRadius="6"
12 Background="{DynamicResource CascadeTheme.PanelBackgroundBrush}"
13 BorderBrush="{DynamicResource CascadeTheme.EditorColumnBorderBrush}"
14 BorderThickness="1">
15 <StackPanel Spacing="2">
16 <TextBlock Text="{Binding Label, ElementName=Root}"
17 FontSize="10"
18 Opacity="0.75"
19 Foreground="{DynamicResource CascadeTheme.ChatLabelForeground}"/>
20 <TextBlock Text="{Binding ValueText, ElementName=Root}"
21 FontSize="{Binding ValueFontSize, ElementName=Root}"
22 FontWeight="{Binding ValueFontWeight, ElementName=Root}"
23 Foreground="{DynamicResource CascadeTheme.ToolbarTextForeground}"/>
24 <TextBlock Text="{Binding SubText, ElementName=Root}"
25 IsVisible="{Binding SubText, ElementName=Root, Converter={StaticResource StringNotEmptyToBool}}"
26 FontSize="10"
27 Foreground="{DynamicResource CascadeTheme.TerminalForeground}"/>
28 </StackPanel>
29 </Border>
30</UserControl>
31
32
View only · write via MCP/CIDE