Esempio n. 1
0
        private void TryApplyBinding(PageBinding binding)
        {
            object value;

            if (TryGetValue(binding.From, this, out value))
            {
                SetValue(binding.To, this, value);
            }
        }
Esempio n. 2
0
        private void ApplyBinding(PageBinding binding)
        {
            object value;

            if (TryGetValue(binding.From, this, out value))
            {
                SetValue(binding.To, this, value);
            }
            else
            {
                throw new Exception("Binding can't be applied");
            }
        }