Skip to content

Commit fa14f9e

Browse files
authored
Fix DevTools bindings (#18125)
1 parent aa07882 commit fa14f9e

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

src/Avalonia.Diagnostics/Diagnostics/Views/ControlDetailsView.xaml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -261,13 +261,7 @@
261261
<StackPanel Orientation="Horizontal" Spacing="2" HorizontalAlignment="Left">
262262
<TextBlock Classes="property-name" PointerPressed="PropertyNamePressed" Text="{Binding Name}" />
263263
<TextBlock Text=":" />
264-
<ContentControl Content="{Binding Value}">
265-
<ContentControl.ContentTemplate>
266-
<DataTemplate x:DataType="system:Object">
267-
<TextBlock Text="{Binding}" />
268-
</DataTemplate>
269-
</ContentControl.ContentTemplate>
270-
</ContentControl>
264+
<TextBlock Text="{Binding Value}" />
271265
<TextBlock>(</TextBlock>
272266
<Ellipse Height="8" Width="8" VerticalAlignment="Center" Fill="{Binding Tint}" ToolTip.Tip="{Binding ValueTypeTooltip}"/>
273267
<TextBlock FontStyle="Italic" Text="{Binding Key}" />
@@ -288,13 +282,7 @@
288282
<StackPanel Orientation="Horizontal" Spacing="2">
289283
<TextBlock Classes="property-name" PointerPressed="PropertyNamePressed" Text="{Binding Name}" />
290284
<TextBlock Text=":" />
291-
<ContentControl Content="{Binding Value}">
292-
<ContentControl.ContentTemplate>
293-
<DataTemplate x:DataType="system:Object">
294-
<TextBlock Text="{Binding}" />
295-
</DataTemplate>
296-
</ContentControl.ContentTemplate>
297-
</ContentControl>
285+
<TextBlock Text="{Binding Value}" />
298286
</StackPanel>
299287
<Rectangle Classes="property-inactive" IsVisible="{Binding !IsActive}" />
300288
</Panel>

0 commit comments

Comments
 (0)