Skip to content

Commit 45e2643

Browse files
authored
Added a border to the preview pane (#6114)
1 parent 2cfc56c commit 45e2643

File tree

2 files changed

+3
-20
lines changed

2 files changed

+3
-20
lines changed

Files/UserControls/PreviewPane.xaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,12 @@
2525
</ResourceDictionary>
2626
</UserControl.Resources>
2727

28-
<UserControl.Transitions>
29-
<TransitionCollection>
30-
<PaneThemeTransition x:Name="PreviewPaneTransition" Edge="{x:Bind EdgeTransitionLocation, Mode=OneWay}" />
31-
</TransitionCollection>
32-
</UserControl.Transitions>
33-
3428
<Grid
3529
x:Name="RootGrid"
3630
HorizontalAlignment="Stretch"
37-
Background="{ThemeResource PreviewPaneBackgroundBrush}">
31+
Background="{ThemeResource PreviewPaneBackgroundBrush}"
32+
BorderBrush="{ThemeResource ControlStrokeColorDefault}"
33+
BorderThickness="0,0,0,1">
3834
<Grid.RowDefinitions>
3935
<RowDefinition Height="2*" MinHeight="100" />
4036
<RowDefinition

Files/UserControls/PreviewPane.xaml.cs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -45,22 +45,9 @@ public bool IsHorizontal
4545
set
4646
{
4747
SetValue(IsHorizontalProperty, value);
48-
EdgeTransitionLocation = value ? EdgeTransitionLocation.Bottom : EdgeTransitionLocation.Right;
4948
}
5049
}
5150

52-
public static DependencyProperty EdgeTransitionLocationProperty =
53-
DependencyProperty.Register("EdgeTransitionLocation",
54-
typeof(EdgeTransitionLocation),
55-
typeof(PreviewPane),
56-
new PropertyMetadata(null));
57-
58-
private EdgeTransitionLocation EdgeTransitionLocation
59-
{
60-
get => (EdgeTransitionLocation)GetValue(EdgeTransitionLocationProperty);
61-
set => SetValue(EdgeTransitionLocationProperty, value);
62-
}
63-
6451
private string GetLocalizedText(string resName) => resName.GetLocalized();
6552

6653
private void UserControl_Unloaded(object sender, RoutedEventArgs e)

0 commit comments

Comments
 (0)