blob: 564883d4b7ea35a74530797f826a9dee32f18bf4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
using System;
namespace Xamarin.PropertyEditing
{
/// <summary>
/// <see cref="IPropertyInfo"/> light-up interface for navigating to value sources.
/// </summary>
/// <remarks>
/// Not all possible values and value sources must be navigatable to implement this interface. That determination can
/// be made in <see cref="CanNavigateToSource"/>. Implementing this interface will simply light-up the UI element, but
/// its enabled status will depend on <see cref="CanNavigateToSource"/> and other dynamic factors.
/// </remarks>
public interface ICanNavigateToSource
{
/// <summary>
/// Gets whether the value of the property attached to in the <paramref name="editor"/> can be navigated to.
/// </summary>
/// <exception cref="ArgumentNullException"><paramref name="editor"/> is <c>null</c>.</exception>
bool CanNavigateToSource (IObjectEditor editor);
/// <exception cref="ArgumentNullException"><paramref name="editor"/> is <c>null</c>.</exception>
void NavigateToSource (IObjectEditor editor);
}
}
|