Skip to content

Commit

Permalink
Fix XamlCachedElements exception
Browse files Browse the repository at this point in the history
  • Loading branch information
NotYoojun committed May 11, 2024
1 parent 066d7ca commit 0e85f64
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/iNKORE.UI.WPF/Controls/XamlCachedElements.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ static XamlCachedElements()
VisibilityProperty.OverrideMetadata(typeof(XamlCachedElements), new FrameworkPropertyMetadata(Visibility.Collapsed));
}

public static readonly DependencyProperty ElementsProperty = DependencyProperty.Register(nameof(Elements), typeof(IEnumerable<object>), typeof(XamlCachedElements), new PropertyMetadata(null));
public static readonly DependencyProperty ElementsProperty = DependencyProperty.Register(nameof(Elements), typeof(Collection<object>), typeof(XamlCachedElements), new PropertyMetadata(null));
public Collection<object> Elements
{
get { return (Collection<object>)GetValue(ElementsProperty); }
Expand Down
2 changes: 1 addition & 1 deletion source/iNKORE.UI.WPF/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
[assembly: AssemblyProduct("iNKORE.UI.WPF")]
[assembly: AssemblyCopyright("Copyright © iNKORE! 2024")]
[assembly: AssemblyTrademark("iNKORE!")]
[assembly: AssemblyVersion("1.2.4")]
[assembly: AssemblyVersion("1.2.5")]
[assembly: AssemblyCulture("")]

[assembly: XmlnsPrefix(Extensions.XmlNamespace, "ikw")]
Expand Down
4 changes: 3 additions & 1 deletion source/samples/WpfApp1/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
<Grid>
<ikw:ColorSliders/>
<ikw:XamlCachedElements>
<DoubleAnimation/>
</ikw:XamlCachedElements>
</Grid>
</Window>
4 changes: 4 additions & 0 deletions source/samples/WpfApp1/WpfApp1.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,8 @@
<UseWPF>true</UseWPF>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\iNKORE.UI.WPF\iNKORE.UI.WPF.csproj" />
</ItemGroup>

</Project>

0 comments on commit 0e85f64

Please sign in to comment.