blob: 34b7c5fb2d638867d47051f25a5641f541b23ec6 (
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
25
26
|
using System.Collections.Generic;
namespace Xamarin.PropertyEditing
{
public interface IHavePredefinedValues<TValue>
{
/// <summary>
/// Gets whether the value should be constrained to those that are predefined.
/// </summary>
/// <remarks>
/// If this is <c>false</c>, <see cref="ValueInfo{T}.ValueDescriptor"/> should contain a string containing any
/// value that is not already handled or part of the <see cref="PredefinedValues"/> list.
/// </remarks>
bool IsConstrainedToPredefined { get; }
/// <summary>
/// Gets whether multiple values can be set together
/// </summary>
/// <remarks>
/// The object editor will need to be able to accept an <see cref="IReadOnlyList{TValue}"/> for the values specified.
/// </remarks>
bool IsValueCombinable { get; }
IReadOnlyDictionary<string, TValue> PredefinedValues { get; }
}
}
|