private void OnXBinding(object sender, Windows.UI.Xaml.RoutedEventArgs e) { var date = DateTime.Now; var binding = new XBind(); string diff = string.Empty; binding.Loaded += (s, args) => { diff = (DateTime.Now - date).ToString(); Diff.Text = diff; }; Content.Children.Add(binding); }