File: cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\SpacerPlaceholder.xaml.cs
Project: ndp\System.Data.csproj (System.Data)
//----------------------------------------------------------------
// <copyright company="Microsoft Corporation">
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// </copyright>
//----------------------------------------------------------------
 
namespace System.Activities.Presentation.View
{
    using System;    
    using System.Windows;
    using System.Windows.Controls;
    
    internal partial class SpacerPlaceholder : UserControl
    {
        public SpacerPlaceholder()
        {
            this.InitializeComponent();
        }
 
        public bool TargetVisiable
        {
            set 
            {
                if (value == true)
                {
                    this.dropTarget.Visibility = Visibility.Visible;
                }
                else
                {
                    this.dropTarget.Visibility = Visibility.Collapsed;
                }
            }
        }
 
        protected override void OnDrop(DragEventArgs e)
        {
            this.TargetVisiable = false;
        }
    }
}