mirror of
https://github.com/Nioux/AideDeJeu.git
synced 2025-10-29 14:35:45 +00:00
Test binding compilé ok
This commit is contained in:
parent
d0a63a8e40
commit
d8c3e17e9d
2 changed files with 15 additions and 10 deletions
|
|
@ -1,9 +1,14 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
xmlns:vm="clr-namespace:AideDeJeu.ViewModels"
|
||||
x:Class="AideDeJeu.Views.MainPage"
|
||||
Visual="Material"
|
||||
Title="Haches & Dés">
|
||||
Title="Haches & Dés"
|
||||
x:DataType="vm:BaseViewModel">
|
||||
<ContentPage.BindingContext>
|
||||
<vm:BaseViewModel />
|
||||
</ContentPage.BindingContext>
|
||||
<ContentPage.Resources>
|
||||
<StyleSheet>
|
||||
<![CDATA[
|
||||
|
|
@ -83,7 +88,7 @@
|
|||
</OnPlatform>
|
||||
</ActivityIndicator.HeightRequest>
|
||||
</ActivityIndicator>-->
|
||||
<Label Text="{Binding Main.DebugCount.Result, StringFormat='Count : {0}'}" TextColor="Transparent" />
|
||||
<!--<Label Text="{Binding Main.DebugCount.Result, StringFormat='Count : {0}'}" TextColor="Transparent" />-->
|
||||
<!--<Label Text="{Binding Main.Navigator.TestNotify}" TextColor="Transparent" />-->
|
||||
<Frame>
|
||||
<Grid>
|
||||
|
|
|
|||
|
|
@ -13,18 +13,18 @@ namespace AideDeJeu.Views
|
|||
[XamlCompilation(XamlCompilationOptions.Compile)]
|
||||
public partial class MainPage : ContentPage
|
||||
{
|
||||
public MainViewModel Main
|
||||
{
|
||||
get
|
||||
{
|
||||
return DependencyService.Get<MainViewModel>();
|
||||
}
|
||||
}
|
||||
//public MainViewModel Main
|
||||
//{
|
||||
// get
|
||||
// {
|
||||
// return DependencyService.Get<MainViewModel>();
|
||||
// }
|
||||
//}
|
||||
|
||||
public MainPage ()
|
||||
{
|
||||
InitializeComponent ();
|
||||
BindingContext = this;
|
||||
//BindingContext = this;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue