-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Copy pathMarkupExtension.cs
28 lines (25 loc) · 1.02 KB
/
MarkupExtension.cs
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
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#nullable disable
using System.Runtime.CompilerServices;
namespace System.Windows.Markup
{
/// <summary>
/// Base class for all Xaml markup extensions. Only subclasses can
/// be instantiated.
/// </summary>
[TypeForwardedFrom("WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")]
public abstract class MarkupExtension
{
/// <summary>
/// Return an object that should be set on the targetObject's targetProperty
/// for this markup extension.
/// </summary>
/// <param name="serviceProvider">Object that can provide services for the markup extension.</param>
/// <returns>
/// The object to set on this property.
/// </returns>
public abstract object ProvideValue(IServiceProvider serviceProvider);
}
}