Beispiel #1
0
        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);
        }
        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);
        }