Skip to content

Commit d2f770a

Browse files
committed
Fixes #885
Fixing issue where copy button would get pushed off the bottom of the popup.
1 parent 019c5d6 commit d2f770a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

MainDemo.Wpf/App.xaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,19 +67,20 @@
6767
</materialDesign:PackIcon>
6868
</materialDesign:PopupBox.ToggleContent>
6969
<Border MaxHeight="600" MaxWidth="800">
70-
<StackPanel>
71-
<avalonEdit:TextEditor Document="{Binding Xaml, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource TextDocumentValueConverter}}"
72-
Style="{StaticResource AvalonTextEditorXamlDisplay}" />
70+
<DockPanel>
7371
<Button
7472
Margin="0 10 0 0"
7573
Tag="{Binding Xaml, RelativeSource={RelativeSource TemplatedParent}}"
7674
HorizontalAlignment="Right"
7775
Command="Copy"
7876
CommandParameter="{Binding Xaml, RelativeSource={RelativeSource TemplatedParent}}"
7977
Content="_COPY"
78+
DockPanel.Dock="Bottom"
8079
Style="{StaticResource MaterialDesignRaisedButton}">
8180
</Button>
82-
</StackPanel>
81+
<avalonEdit:TextEditor Document="{Binding Xaml, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource TextDocumentValueConverter}}"
82+
Style="{StaticResource AvalonTextEditorXamlDisplay}" />
83+
</DockPanel>
8384
</Border>
8485

8586
</materialDesign:PopupBox>

0 commit comments

Comments
 (0)