mirror of https://github.com/icsharpcode/ILSpy.git
4 changed files with 35 additions and 0 deletions
@ -0,0 +1,9 @@
@@ -0,0 +1,9 @@
|
||||
<UserControl x:Class="ILSpy.BamlDecompiler.Tests.Cases.Issue2116" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:local="clr-namespace:ILSpy.BamlDecompiler.Tests.Cases" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"> |
||||
<FrameworkElement.Resources> |
||||
<ResourceDictionary> |
||||
<Style x:Key="TestStyle1" /> |
||||
<Style x:Key="TestStyle2" BasedOn="{StaticResource {x:Static local:Issue2116.StyleKey1}}" /> |
||||
</ResourceDictionary> |
||||
</FrameworkElement.Resources> |
||||
<Grid Style="{StaticResource {x:Static local:Issue2116.StyleKey1}}" /> |
||||
</UserControl> |
@ -0,0 +1,16 @@
@@ -0,0 +1,16 @@
|
||||
namespace ILSpy.BamlDecompiler.Tests.Cases |
||||
{ |
||||
using System.Windows; |
||||
using System.Windows.Controls; |
||||
|
||||
public partial class Issue2116 : UserControl |
||||
{ |
||||
public static ComponentResourceKey StyleKey1 => new ComponentResourceKey(typeof(Issue2116), "TestStyle1"); |
||||
public static ComponentResourceKey StyleKey2 => new ComponentResourceKey(typeof(Issue2116), "TestStyle2"); |
||||
|
||||
public Issue2116() |
||||
{ |
||||
InitializeComponent(); |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue