diff --git a/UICompositionAnimations/Behaviours/PipelineBuilder.cs b/UICompositionAnimations/Behaviours/PipelineBuilder.cs index 67c8997..e6747a0 100644 --- a/UICompositionAnimations/Behaviours/PipelineBuilder.cs +++ b/UICompositionAnimations/Behaviours/PipelineBuilder.cs @@ -60,8 +60,7 @@ private PipelineBuilder([NotNull] Func> factory) { string guid = Guid.NewGuid().ToString("N"), - replaced = Regex.Replace(guid, "[0-9]", "_"), - id = new string(replaced.ToCharArray().Select((c, i) => c == '_' ? char.ToUpper((char)('a' + i % 26)) : c).ToArray()); + id = Regex.Replace(guid, @"\d", m => ((char)('g' + m.Value[0] - '0')).ToString()); SourceProducer = () => Task.FromResult(new CompositionEffectSourceParameter(id).To()); LazyParameters = new Dictionary>> { { id, factory } }; AnimationProperties = new string[0]; diff --git a/UICompositionAnimations/Properties/AssemblyInfo.cs b/UICompositionAnimations/Properties/AssemblyInfo.cs index a0be0a0..f3ebc4d 100644 --- a/UICompositionAnimations/Properties/AssemblyInfo.cs +++ b/UICompositionAnimations/Properties/AssemblyInfo.cs @@ -23,8 +23,8 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("4.1.0.0")] -[assembly: AssemblyFileVersion("4.1.0.0")] -[assembly: AssemblyInformationalVersion("4.1.0")] +[assembly: AssemblyVersion("4.1.1.0")] +[assembly: AssemblyFileVersion("4.1.1.0")] +[assembly: AssemblyInformationalVersion("4.1.1")] [assembly: ComVisible(false)] diff --git a/UICompositionAnimations/UICompositionAnimations.nuspec b/UICompositionAnimations/UICompositionAnimations.nuspec index 9a43609..fab902d 100644 --- a/UICompositionAnimations/UICompositionAnimations.nuspec +++ b/UICompositionAnimations/UICompositionAnimations.nuspec @@ -2,7 +2,7 @@ UICompositionAnimations - 4.1.0 + 4.1.1 UICompositionAnimations A wrapper UWP PCL to work with Windows.UI.Composition and XAML animations, and Win2D effects Sergio Pedri @@ -10,7 +10,7 @@ https://github.com/Sergio0694/UICompositionAnimations GPL-3.0-only false - New composition brush APIs and pipeline effects + Fixed a localization crash Copyright © 2019 uwp composition animations xaml csharp windows winrt universal app ui win2d graphics