Made some improvements to the UX
This commit is contained in:
parent
6151c3be7b
commit
8837d4dc3a
@ -51,11 +51,25 @@
|
|||||||
BorderBrush="{Binding Cardinality, Converter={StaticResource OptionalToBrush}}"
|
BorderBrush="{Binding Cardinality, Converter={StaticResource OptionalToBrush}}"
|
||||||
BorderThickness="{Binding Cardinality, Converter={StaticResource OptionalToThickness}}"
|
BorderThickness="{Binding Cardinality, Converter={StaticResource OptionalToThickness}}"
|
||||||
Padding="8" Margin="0,0,0,6" Background="#FAFAFA">
|
Padding="8" Margin="0,0,0,6" Background="#FAFAFA">
|
||||||
<StackPanel Orientation="Horizontal" Spacing="10">
|
<StackPanel Orientation="Vertical" Spacing="2">
|
||||||
|
<!-- Name on its own line, prominent -->
|
||||||
<TextBlock Text="{Binding Name}" FontWeight="SemiBold"/>
|
<TextBlock Text="{Binding Name}" FontWeight="SemiBold"/>
|
||||||
<TextBlock Text="{Binding TypeName}" Foreground="{DynamicResource SubtleTextBrush}"/>
|
|
||||||
<TextBlock Text="{Binding BuiltInType}" Foreground="{DynamicResource MutedTextBrush}"/>
|
<!-- Path/Namespace on its own line -->
|
||||||
<TextBlock Text="{Binding ContentModel}" Foreground="{DynamicResource MutedTextBrush}"/>
|
<TextBlock Text="{Binding Namespace, StringFormat=Namespace: {0}}"
|
||||||
|
Foreground="{DynamicResource SubtleTextBrush}"/>
|
||||||
|
|
||||||
|
<!-- Type info on its own line (TypeName with fallback to BuiltInType) -->
|
||||||
|
<StackPanel Orientation="Horizontal" Spacing="6">
|
||||||
|
<TextBlock Text="Type:" FontWeight="Medium"/>
|
||||||
|
<TextBlock Text="{Binding TypeName}"/>
|
||||||
|
<TextBlock Text="{Binding BuiltInType, StringFormat=({0})}"
|
||||||
|
Foreground="{DynamicResource MutedTextBrush}"/>
|
||||||
|
</StackPanel>
|
||||||
|
|
||||||
|
<!-- Optional: show content model as a subtle hint -->
|
||||||
|
<TextBlock Text="{Binding ContentModel, StringFormat=Model: {0}}"
|
||||||
|
Foreground="{DynamicResource MutedTextBrush}"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Border>
|
</Border>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user