Skip to content

Commit

Permalink
Handle window maximising and scaling up
Browse files Browse the repository at this point in the history
  • Loading branch information
coldino committed Mar 27, 2019
1 parent 0cb63b6 commit 5ecd46b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions LarkatorGUI/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
d:DataContext="{d:DesignInstance Type={x:Type local:DummyMainWindow}, IsDesignTimeCreatable=True}"
SourceInitialized="Window_SourceInitialized" Loaded="Window_Loaded"
Title="{Binding WindowTitle}" Background="{DynamicResource WindowBackgroundBrush}"
MaxHeight="1016" MinHeight="500"
MinHeight="500"
Left="{Binding Source={StaticResource Settings}, Path=Default.MainWindowLeft, Mode=TwoWay}"
Top="{Binding Source={StaticResource Settings}, Path=Default.MainWindowTop, Mode=TwoWay}"
Width="{Binding Source={StaticResource Settings}, Path=Default.MainWindowWidth, Mode=TwoWay}"
Expand Down Expand Up @@ -334,9 +334,9 @@
</StackPanel>
</Grid>

<Viewbox Grid.Column="1" MinWidth="240" MaxWidth="1000" MaxHeight="1000">
<Viewbox Grid.Column="1" MinWidth="240" MinHeight="240">
<Grid>
<Image x:Name="image" Source="{Binding MapImage, FallbackValue=imgs/map_TheIsland.jpg}" Width="1000" Height="1000" />
<Image x:Name="image" Source="{Binding MapImage, FallbackValue=imgs/map_TheIsland.jpg}" />
<Canvas>
<ItemsControl x:Name="map" ItemTemplate="{DynamicResource MapPinTemplate}" ItemsSource="{Binding Source={StaticResource OrderedResults}}"/>
</Canvas>
Expand Down

0 comments on commit 5ecd46b

Please sign in to comment.