|
@@ -5,9 +5,10 @@
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
xmlns:local="clr-namespace:Compdfkit_Tools.PDFControl"
|
|
|
mc:Ignorable="d"
|
|
|
- d:DesignHeight="1040" d:DesignWidth="1920"
|
|
|
+ xmlns:common="clr-namespace:Compdfkit_Tools.Common"
|
|
|
+ d:DesignHeight="800" d:DesignWidth="1920"
|
|
|
Loaded="UserControl_Loaded"
|
|
|
- Unloaded="UserControl_Unloaded">
|
|
|
+ Unloaded="UserControl_Unloaded" x:Name="HomePage">
|
|
|
<UserControl.Resources>
|
|
|
<DrawingImage x:Key="OpenDocumentIcon">
|
|
|
<DrawingImage.Drawing>
|
|
@@ -54,7 +55,7 @@
|
|
|
</Setter.Value>
|
|
|
</Setter>
|
|
|
</Style>
|
|
|
-
|
|
|
+ <common:HomePageFileListHeightConverter x:Key="HomePageFileListHeightConverter"></common:HomePageFileListHeightConverter>
|
|
|
</UserControl.Resources>
|
|
|
<Grid>
|
|
|
<Grid.ColumnDefinitions>
|
|
@@ -77,13 +78,22 @@
|
|
|
</StackPanel>
|
|
|
</Button>
|
|
|
</StackPanel>
|
|
|
- <Grid Grid.Column="1" Background="#F2F2F2">
|
|
|
+ <ScrollViewer Grid.Column="1" VerticalScrollBarVisibility="Auto" IsTabStop="True">
|
|
|
+ <Grid x:Name="HomeGrid" Background="#F2F2F2">
|
|
|
<Grid.RowDefinitions>
|
|
|
- <RowDefinition MinHeight="640"></RowDefinition>
|
|
|
- <RowDefinition MinHeight="200"></RowDefinition>
|
|
|
+ <RowDefinition Height="580" ></RowDefinition>
|
|
|
+ <RowDefinition> </RowDefinition>
|
|
|
</Grid.RowDefinitions>
|
|
|
<local:FeaturesListControl x:Name="FeaturesListControl"></local:FeaturesListControl>
|
|
|
- <local:RecentFilesControl Grid.Row="1" x:Name="RecentFilesControl" Margin="0,20,0,0"></local:RecentFilesControl>
|
|
|
+ <local:RecentFilesControl Grid.Row="1" x:Name="RecentFilesControl" Margin="0,20,0,0" >
|
|
|
+ <local:RecentFilesControl.Height>
|
|
|
+ <MultiBinding Converter="{StaticResource HomePageFileListHeightConverter}">
|
|
|
+ <Binding ElementName="HomePage" Path="ActualHeight"></Binding>
|
|
|
+ <Binding ElementName="FeaturesListControl" Path="ActualHeight"></Binding>
|
|
|
+ </MultiBinding>
|
|
|
+ </local:RecentFilesControl.Height>
|
|
|
+ </local:RecentFilesControl>
|
|
|
</Grid>
|
|
|
+ </ScrollViewer>
|
|
|
</Grid>
|
|
|
</UserControl>
|