public PhoneCallPage(PhoneCallDTO dto) { InitializeComponent(); BindingContext = new PhoneCallViewModel(dto); this.SetBackText(); }
public PhoneCallView(Question question, string playerName) { // Cream o noua instanta a clasei PhoneCallViewModel pe care o atribuim ca Datacontext pentru fereastra InitializeComponent(); DataContext = new PhoneCallViewModel(question, playerName); _viewModel = DataContext as PhoneCallViewModel; }
public PhoneCall() { InitializeComponent(); BindingContext = new PhoneCallViewModel() { PhoneNumber = "", }; }