Duration.Addition Operator
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Adds two Duration values together.
Assembly: System.Windows (in System.Windows.dll)
Parameters
- t1
- Type: System.Windows.Duration
The first Duration to add.
- t2
- Type: System.Windows.Duration
The second Duration to add.
Return Value
Type: System.Windows.DurationIf both Duration values have TimeSpan values, this method returns the sum of those two values. If either value is set to Automatic, the method returns Automatic. If either value is set to Forever, the method returns Forever.
If either t1 or t2 has no value, this method returns null.
Show: