Browse Source

Moved BindingPriority to its own file.

Steven Kirk 10 years ago
parent
commit
637b980919

+ 47 - 0
src/Perspex.Base/BindingPriority.cs

@@ -0,0 +1,47 @@
+// Copyright (c) The Perspex Project. All rights reserved.
+// Licensed under the MIT license. See licence.md file in the project root for full license information.
+
+namespace Perspex
+{
+    /// <summary>
+    /// The priority of a binding.
+    /// </summary>
+    public enum BindingPriority
+    {
+        /// <summary>
+        /// A value that comes from an animation.
+        /// </summary>
+        Animation = -1,
+
+        /// <summary>
+        /// A local value.
+        /// </summary>
+        LocalValue = 0,
+
+        /// <summary>
+        /// A triggered style binding.
+        /// </summary>
+        /// <remarks>
+        /// A style trigger is a selector such as .class which overrides a
+        /// <see cref="TemplatedParent"/> binding. In this way, a basic control can have
+        /// for example a Background from the templated parent which changes when the
+        /// control has the :pointerover class.
+        /// </remarks>
+        StyleTrigger,
+
+        /// <summary>
+        /// A binding to a property on the templated parent.
+        /// </summary>
+        TemplatedParent,
+
+        /// <summary>
+        /// A style binding.
+        /// </summary>
+        Style,
+
+        /// <summary>
+        /// The binding is uninitialized.
+        /// </summary>
+        Unset = int.MaxValue,
+    }
+}

+ 1 - 0
src/Perspex.Base/Perspex.Base.csproj

@@ -51,6 +51,7 @@
     <Compile Include="PerspexObjectExtensions.cs" />
     <Compile Include="PerspexProperty`1.cs" />
     <Compile Include="Platform\IPclPlatformWrapper.cs" />
+    <Compile Include="BindingPriority.cs" />
     <Compile Include="PriorityBindingEntry.cs" />
     <Compile Include="Collections\IPerspexList.cs" />
     <Compile Include="Collections\PerspexList.cs" />

+ 0 - 42
src/Perspex.Base/PerspexObject.cs

@@ -15,48 +15,6 @@ using Serilog.Core.Enrichers;
 
 namespace Perspex
 {
-    /// <summary>
-    /// The priority of a binding.
-    /// </summary>
-    public enum BindingPriority
-    {
-        /// <summary>
-        /// A value that comes from an animation.
-        /// </summary>
-        Animation = -1,
-
-        /// <summary>
-        /// A local value.
-        /// </summary>
-        LocalValue = 0,
-
-        /// <summary>
-        /// A triggered style binding.
-        /// </summary>
-        /// <remarks>
-        /// A style trigger is a selector such as .class which overrides a
-        /// <see cref="TemplatedParent"/> binding. In this way, a basic control can have
-        /// for example a Background from the templated parent which changes when the
-        /// control has the :pointerover class.
-        /// </remarks>
-        StyleTrigger,
-
-        /// <summary>
-        /// A binding to a property on the templated parent.
-        /// </summary>
-        TemplatedParent,
-
-        /// <summary>
-        /// A style binding.
-        /// </summary>
-        Style,
-
-        /// <summary>
-        /// The binding is uninitialized.
-        /// </summary>
-        Unset = int.MaxValue,
-    }
-
     /// <summary>
     /// An object with <see cref="PerspexProperty"/> support.
     /// </summary>