Skip to content

Commit 928e017

Browse files
Copilotjohnpierson
andauthored
DYN-10073: Fix text wrapping for custom property values in Graph Properties panel (#16847)
Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: johnpierson <[email protected]> Co-authored-by: john pierson <[email protected]>
1 parent 4b0f645 commit 928e017

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

src/GraphMetadataViewExtension/Controls/CustomPropertyControl.xaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@
7373
Foreground="{StaticResource NestedMemberTextColor}"
7474
Margin="0,5"
7575
Padding="0,5"
76+
TextWrapping="WrapWithOverflow"
77+
HorizontalAlignment="Stretch"
7678
Text="{Binding PropertyValue, Mode=TwoWay, UpdateSourceTrigger=LostFocus}" />
7779
</Grid>
7880
</UserControl>

src/GraphMetadataViewExtension/GraphMetadataView.xaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@
6868
</ControlTemplate>
6969
</Setter.Value>
7070
</Setter>
71+
<Setter Property="HorizontalContentAlignment"
72+
Value="Stretch" />
7173
<Setter Property="Margin"
7274
Value="0" />
7375
<Setter Property="Padding"
@@ -131,7 +133,7 @@
131133

132134
</ResourceDictionary>
133135
</UserControl.Resources>
134-
<ScrollViewer VerticalScrollBarVisibility="Auto">
136+
<ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled">
135137
<Grid Margin="10px, 10px">
136138
<Grid.RowDefinitions>
137139
<RowDefinition Height="Auto" />
@@ -261,11 +263,14 @@
261263
</Button>
262264
</Grid>
263265

264-
<ListView Grid.Row="1"
266+
<ListView Grid.Row="1"
267+
x:Name="CustomPropertiesList"
265268
Margin="0px 5px"
266-
HorizontalContentAlignment="Left"
269+
HorizontalContentAlignment="Stretch"
267270
Background="Transparent"
268271
BorderBrush="Transparent"
272+
ScrollViewer.HorizontalScrollBarVisibility="Disabled"
273+
ScrollViewer.CanContentScroll="False"
269274
ItemsSource="{Binding CustomProperties}"
270275
BorderThickness="0">
271276
</ListView>

0 commit comments

Comments
 (0)