You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Framework/Core/ViewModel/Direction.cs
+14-2Lines changed: 14 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -5,19 +5,31 @@
5
5
namespaceDotVVM.Framework.ViewModel
6
6
{
7
7
///<summary>
8
-
/// ServerToClient, ServerToClient on postback, ClientToServer, C2S iff in command path
8
+
/// Specifies on which requests should the property should serialized and sent. Default is <see cref="Direction.Both">Both</see>.
9
+
/// Set to <see cref="Direction.None">None</see> to disable serialization of the property.
10
+
/// This enums is flags, the directions can be arbitrarily combined.
9
11
///</summary>
10
12
[Flags]
11
13
publicenumDirection
12
14
{
15
+
/// <summary> Never send this property to the client, it won't be allowed to use this property from value and staticCommand bindings. </summary>
13
16
None=0,
17
+
/// <summary> Sent to client on the initial GET request, but not sent again on postbacks </summary>
14
18
ServerToClientFirstRequest=1,
19
+
/// <summary> Property is updated on postbacks, but not sent on the first request (initially it will be set to null or default value of the primitive type) </summary>
15
20
ServerToClientPostback=2,
21
+
/// <summary> Sent from server to client, but not sent back. </summary>
/// <summary> Complement to <see cref="ClientToServerInPostbackPath" />, not meant to be used on its own. </summary>
17
24
ClientToServerNotInPostbackPath=4,
25
+
/// <summary> Sent from client to server, but only if the current data context is this property. If the data context is a child object of this property, only that part of the object will be sent, all other properties are ignored.
26
+
/// To sent the initial value to client, use <c>Direction.ServerToClientFirstRequest | Direction.ClientToServerInPostbackPath</c> </summary>
18
27
ClientToServerInPostbackPath=8,
28
+
/// <summary> Sent back on postbacks. Initially the property will set to null or primitive default value. To send the initial value to client, use <c>Direction.ServerToClientFirstRequest | Direction.ClientToServer</c> </summary>
/// <summary> Always sent to client, sent back only when the object is the current data context (see also <see cref="ClientToServerInPostbackPath"/>) </summary>
/// The property value is sent to the client unencrypted and it is not signed. It can be modified on the client with no restrictions.
14
+
/// The property value is sent to the client unencrypted and it is not signed. It can be modified on the client with no restrictions. This is the default.
15
15
/// </summary>
16
16
None,
17
17
18
18
/// <summary>
19
-
/// The property value is sent to the client unencrypted, but it is also signed. If it is modified on the client, the server will throw an exception during postback.
19
+
/// The property value is sent to the client in both unencrypted and encrypted form. On server, the encrypted value is read, so it cannot be modified on the client.
20
20
/// </summary>
21
21
SignData,
22
22
23
23
/// <summary>
24
-
/// The property value is encrypted before it is sent to the client.
24
+
/// The property value is encrypted before it is sent to the client. Encrypted properties thus cannot be used in value bindings.
Copy file name to clipboardExpand all lines: src/Framework/Framework/Binding/AttachedPropertyAttribute.cs
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,8 @@
6
6
7
7
namespaceDotVVM.Framework.Binding
8
8
{
9
+
/// <summary> Used to mark DotvvmProperty which are used on other control than the declaring type. For example, Validation.Target is an attached property. </summary>
10
+
/// <remark> Note that DotVVM allows this for any DotvvmProperty, but this attribute instructs editor extension to include the property in autocompletion. </remark>
/// <summary> Allow to adjust how bindings are compiled. Can be placed on custom binding type (for example, see <see cref="ValueBindingExpression" />) or on a dotvvm property </summary>
/// <summary> Returns a list of resolvers - functions which accept any set of existing binding properties and returns one new binding property.
13
+
/// It will be automatically invoked when the returned property is needed.
14
+
/// See <see cref="BindingPropertyResolvers" /> for a list of default property resolvers - to adjust how the binding is compiled, you'll want to redefine one of the default resolvers.
15
+
/// See <see cref="StaticCommandBindingExpression.OptionsAttribute" /> for example how to use this method. </summary>
@@ -123,7 +126,7 @@ public BindingCompilationRequirementsAttribute GetRequirements(IBinding binding,
123
126
}
124
127
125
128
/// <summary>
126
-
/// Resolves required and optional properties
129
+
/// Resolves required properties of the binding. If the binding contains <see cref="BindingErrorReporterProperty" /> it will be used to report errors instead of throwing an exception.
/// <summary> Gets the binding property identified by the type. The result may be null, if <paramref name="errorMode"/> is <see cref="ErrorHandlingMode.ReturnNull">ReturnNul</see> This method should always return the same result and should run fast (may rely on caching, so first call might not be that fast). </summary>
/// <summary> Gets the binding property identified by the type. This method should always return the same result and should run fast (may rely on caching, so first call might not be that fast). </summary>
0 commit comments