aboutsummaryrefslogtreecommitdiff
path: root/src/wixext/UIExtensionData.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/wixext/UIExtensionData.cs')
-rw-r--r--src/wixext/UIExtensionData.cs43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/wixext/UIExtensionData.cs b/src/wixext/UIExtensionData.cs
new file mode 100644
index 00000000..a833b82b
--- /dev/null
+++ b/src/wixext/UIExtensionData.cs
@@ -0,0 +1,43 @@
1// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
2
3namespace WixToolset.Extensions
4{
5 using System;
6 using System.Reflection;
7 using WixToolset.Data;
8 using WixToolset.Extensibility;
9
10 /// <summary>
11 /// The WiX Toolset UI Extension.
12 /// </summary>
13 public sealed class UIExtensionData : ExtensionData
14 {
15 /// <summary>
16 /// Gets the default culture.
17 /// </summary>
18 /// <value>The default culture.</value>
19 public override string DefaultCulture
20 {
21 get { return "en-us"; }
22 }
23
24 /// <summary>
25 /// Gets the library associated with this extension.
26 /// </summary>
27 /// <param name="tableDefinitions">The table definitions to use while loading the library.</param>
28 /// <returns>The loaded library.</returns>
29 public override Library GetLibrary(TableDefinitionCollection tableDefinitions)
30 {
31 return UIExtensionData.GetExtensionLibrary(tableDefinitions);
32 }
33
34 /// <summary>
35 /// Internal mechanism to access the extension's library.
36 /// </summary>
37 /// <returns>Extension's library.</returns>
38 internal static Library GetExtensionLibrary(TableDefinitionCollection tableDefinitions)
39 {
40 return ExtensionData.LoadLibraryHelper(Assembly.GetExecutingAssembly(), "WixToolset.Extensions.Data.ui.wixlib", tableDefinitions);
41 }
42 }
43}