File: System\Activities\Core\Presentation\CaseKeyBox.ViewInterface.cs
Project: ndp\cdf\src\NetFx40\Tools\System.Activities.Core.Presentation\System.Activities.Core.Presentation.csproj (System.Activities.Core.Presentation)
//-----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation.  All rights reserved.
//-----------------------------------------------------------------------------
 
namespace System.Activities.Core.Presentation
{
    using System;
 
    delegate bool CaseKeyValidationCallbackDelegate(object obj, out string reason);
 
    interface ICaseKeyBoxView
    {
        // Some view level functionalities required (i.e. cannot be done by data binding)
        void RegainFocus();
 
        // Allow ViewModel to raise View events
        void OnValueCommitted();
        void OnEditCancelled();
 
        // Pass public interface of this control to the ViewModel
        bool DisplayHintText { get; }
        object Value { get; set; }
        Type ValueType { get; }
        CaseKeyValidationCallbackDelegate CaseKeyValidationCallback { get; }
    }
}