private void TryApplyBinding(PageBinding binding) { object value; if (TryGetValue(binding.From, this, out value)) { SetValue(binding.To, this, value); } }
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"); } }