/
ResourceHelper.cs
101 lines (89 loc) · 2.91 KB
/
ResourceHelper.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.Xaml.Interactivity
{
using Windows.ApplicationModel.Resources;
internal static class ResourceHelper
{
#if NET5_0
private static ResourceLoader strings = new ResourceLoader(ResourceLoader.GetDefaultResourceFilePath(), "Microsoft.Xaml.Interactivity/Strings");
#endif
public static string GetString(string resourceName)
{
#if !NET5_0
ResourceLoader strings = ResourceLoader.GetForCurrentView("Microsoft.Xaml.Interactivity/Strings");
#endif
return strings.GetString(resourceName);
}
public static string CallMethodActionValidMethodNotFoundExceptionMessage
{
get
{
return ResourceHelper.GetString("CallMethodActionValidMethodNotFoundExceptionMessage");
}
}
public static string ChangePropertyActionCannotFindPropertyNameExceptionMessage
{
get
{
return ResourceHelper.GetString("ChangePropertyActionCannotFindPropertyNameExceptionMessage");
}
}
public static string ChangePropertyActionCannotSetValueExceptionMessage
{
get
{
return ResourceHelper.GetString("ChangePropertyActionCannotSetValueExceptionMessage");
}
}
public static string ChangePropertyActionPropertyIsReadOnlyExceptionMessage
{
get
{
return ResourceHelper.GetString("ChangePropertyActionPropertyIsReadOnlyExceptionMessage");
}
}
public static string GoToStateActionTargetHasNoStateGroups
{
get
{
return ResourceHelper.GetString("GoToStateActionTargetHasNoStateGroups");
}
}
public static string CannotAttachBehaviorMultipleTimesExceptionMessage
{
get
{
return ResourceHelper.GetString("CannotAttachBehaviorMultipleTimesExceptionMessage");
}
}
public static string CannotFindEventNameExceptionMessage
{
get
{
return ResourceHelper.GetString("CannotFindEventNameExceptionMessage");
}
}
public static string InvalidLeftOperand
{
get
{
return ResourceHelper.GetString("InvalidLeftOperand");
}
}
public static string InvalidRightOperand
{
get
{
return ResourceHelper.GetString("InvalidRightOperand");
}
}
public static string InvalidOperands
{
get
{
return ResourceHelper.GetString("InvalidOperands");
}
}
}
}