2019-01-18 13:08:55 +01:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Collections.ObjectModel;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using System.Windows;
|
|
|
|
|
using System.Windows.Controls;
|
|
|
|
|
using System.Windows.Data;
|
|
|
|
|
using System.Windows.Documents;
|
|
|
|
|
using System.Windows.Input;
|
|
|
|
|
using System.Windows.Media;
|
|
|
|
|
using System.Windows.Media.Imaging;
|
|
|
|
|
using System.Windows.Navigation;
|
|
|
|
|
using System.Windows.Shapes;
|
|
|
|
|
using ProjetTheAlone.Classes;
|
|
|
|
|
using ProjetTheAlone.Model;
|
2019-01-19 10:58:20 +01:00
|
|
|
|
using ProjetTheAlone.ViewModel;
|
2019-01-18 13:08:55 +01:00
|
|
|
|
|
|
|
|
|
namespace ProjetTheAlone.UserControlDIY
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Interaction logic for Repa.xaml
|
|
|
|
|
/// </summary>
|
|
|
|
|
public partial class Repa : UserControl
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public Repa()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
2019-01-24 22:24:05 +01:00
|
|
|
|
|
2019-01-19 10:58:20 +01:00
|
|
|
|
this.DataContextChanged += new DependencyPropertyChangedEventHandler(updateDataContext);
|
|
|
|
|
}
|
|
|
|
|
public void updateDataContext(object o, DependencyPropertyChangedEventArgs e)
|
|
|
|
|
{
|
2019-01-24 22:24:05 +01:00
|
|
|
|
var a = this.DataContext;
|
|
|
|
|
GridPrinc.DataContext = ((RepaModel) this.DataContext);
|
|
|
|
|
/*Plat1XML.DataContext = ((RepaModel)this.DataContext).Plat1;
|
|
|
|
|
Plat2XML.DataContext = ((RepaModel)this.DataContext).Plat2;
|
|
|
|
|
Plat3XML.DataContext = ((RepaModel)this.DataContext).Plat3;*/
|
2019-01-18 13:08:55 +01:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|