Mono exception to SocketException
[mono.git] / mcs / class / referencesource / System.Activities.Presentation / System.Activities.Core.Presentation / System / Activities / Core / Presentation / CaseKeyBox.ViewInterface.cs
1 //-----------------------------------------------------------------------------
2 // Copyright (c) Microsoft Corporation.  All rights reserved.
3 //-----------------------------------------------------------------------------
4
5 namespace System.Activities.Core.Presentation
6 {
7     using System;
8
9     delegate bool CaseKeyValidationCallbackDelegate(object obj, out string reason);
10
11     interface ICaseKeyBoxView
12     {
13         // Some view level functionalities required (i.e. cannot be done by data binding)
14         void RegainFocus();
15
16         // Allow ViewModel to raise View events
17         void OnValueCommitted();
18         void OnEditCancelled();
19
20         // Pass public interface of this control to the ViewModel
21         bool DisplayHintText { get; }
22         object Value { get; set; }
23         Type ValueType { get; }
24         CaseKeyValidationCallbackDelegate CaseKeyValidationCallback { get; }
25     }
26 }