Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ValueSource.cs « Xamarin.PropertyEditing - github.com/xamarin/Xamarin.PropertyEditing.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d667317a5e6fe7c652cd920fb5c07a597e04261b (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
using System;

namespace Xamarin.PropertyEditing
{
	public enum ValueSource
	{
		/// <summary>
		/// Value is the property's default value, which is not the same as the default value of the property type.
		/// </summary>
		Default = 0,
		Local = 1,
		Binding = 2,
		Resource = 3,
		Style = 4,
		Inherited = 5,
		DefaultStyle = 6,

		/// <summary>
		/// The property's value comes from multiple sources.
		/// </summary>
		Unknown = 7,

		/// <summary>
		/// The property's value is unset but its unset value isn't known.
		/// </summary>
		Unset = 8,
	}

	[Flags]
	public enum ValueSources
	{
		/// <summary>
		/// Property can indicate its unset and not simply at the same value as its value type.
		/// </summary>
		/// <remarks>
		/// Platforms like WPF can make a distinction between whether the value has no value set by any means,
		/// or if a value is set locally (even if it's the same as the default for the value type). Only platforms
		/// that can support this distinction should enable this source.
		/// </remarks>
		Default = 1,
		Local = 2,
		Binding = 4,
		Resource = 8,
		Style = 16
	}
}