Jelajahi Sumber

fixed tiny databinding bug

Jeroen 10 tahun lalu
induk
melakukan
ef3572c432

+ 1 - 1
Breda-Tour/RouteSelectScreen/RouteExample.xaml

@@ -15,6 +15,6 @@
 
         <TextBlock Text="Tijdsduur: " FontSize="16" Margin="17,80,0,-25"/>
         <TextBlock Text="Loopafstand: " FontSize="16" Margin="17,95,0,-25"/>
-        <TextBlock Text="{Binding Waypoints}" FontSize="16" Margin="17,110,0,-25"/>
+        <TextBlock Text="{x:Bind Waypoints}" FontSize="16" Margin="17,110,0,-25"/>
     </Grid>
 </Page>

+ 0 - 1
Breda-Tour/RouteSelectScreen/RouteExample.xaml.cs

@@ -36,7 +36,6 @@ namespace Breda_Tour.RouteSelectScreen
         {
             route = e.Parameter as Route;
             Waypoints = "Aantal waypoints: " + 0;
-            this.DataContext = route;
             if (route.Waypoints.Count != 0){
                 Waypoints = "Aantal waypoints: " +route.Waypoints.Count;
             }