示例#1
0
        /// <summary>
        /// バインディングを解除します。
        /// </summary>
        public void Unbind()
        {
            Unbound.SafeRaiseEvent(this, EventArgs.Empty);
            Unbound = null;

            var component = Binding.BindableTarget as Component;

            if (component != null)
            {
                component.Disposed -= OnUnbind;
            }

            Binding.Control.Disposed -= OnUnbind;
            Binding.IsBinding         = false;
        }