Пример #1
0
        private void TryApplyBinding(PageBinding binding)
        {
            object value;

            if (TryGetValue(binding.From, this, out value))
            {
                SetValue(binding.To, this, value);
            }
        }
Пример #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");
            }
        }