update Overview and DSL page
[GitHub/Stricted/SpeedportHybridControl.git] / SpeedportHybridControl / page / OverviewPage.xaml
index 9aa818fabf26c5025d8689334fd9f64680d048bd..9e2466b99264fed47f88751ff515d2366d09cd3e 100644 (file)
@@ -1,14 +1,14 @@
 <Page x:Class="SpeedportHybridControl.page.OverviewPage"
       xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
       xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
-      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
-      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
+      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
       xmlns:local="clr-namespace:SpeedportHybridControl"
-      mc:Ignorable="d" 
+      mc:Ignorable="d"
       Width="Auto" Height="Auto"
       Title="OverviewPage">
 
-    <Grid DataContext="{StaticResource OverviewModel}">
+    <Grid DataContext="{StaticResource OverviewPageModel}">
         <GroupBox Header="Internet" HorizontalAlignment="Left" VerticalAlignment="Top"  Width="174">
             <Grid>
                 <StackPanel>
@@ -66,6 +66,6 @@
         </GroupBox>
         
         <TextBlock Text="{Binding datetime}" Margin="0,0,10,0" HorizontalAlignment="Right" VerticalAlignment="Bottom" />
-        <Button x:Name="reload" Content="Aktualisieren" Margin="218,0,218,0" VerticalAlignment="Bottom" Click="button_click" />
+        <Button Command="{Binding Path=ReloadCommand}" x:Name="reload" Content="Aktualisieren" Margin="218,0,218,0" VerticalAlignment="Bottom" />
     </Grid>
 </Page>