We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Steps to Reproduce:
contents of Color.xaml
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <SolidColorBrush x:Key="PrimaryBrush" Color="Red" /> </ResourceDictionary>
contents of Skin.xaml
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="./Color.xaml" /> </ResourceDictionary.MergedDictionaries> </ResourceDictionary>
contents of App.xaml
<Application x:Class="WpfRelativeResourceTest.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:WpfRelativeResourceTest" StartupUri="MainWindow.xaml"> <Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="./Themes/Skin.xaml" /> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> </Application.Resources> </Application>
contents of MainWindow.xaml
<Window x:Class="WpfRelativeResourceTest.MainWindow" 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:WpfRelativeResourceTest" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" Title="MainWindow" Width="800" Height="450" mc:Ignorable="d"> <Grid Background="{DynamicResource PrimaryBrush}" /> </Window>
rename
<rule pattern="true" inherit="false"> <protection id="rename" /> </rule> <rule pattern="namespace('WpfRelativeResourceTest') and name('App')" inherit="false"> <protection id="rename" action="remove" /> </rule>
themes/color.xaml
The text was updated successfully, but these errors were encountered:
fix WPF relative resource renaming
37d9a91
mkaring#550
Successfully merging a pull request may close this issue.
Steps to Reproduce:
contents of Color.xaml
contents of Skin.xaml
contents of App.xaml
contents of MainWindow.xaml
rename
feature onthemes/color.xaml
)The text was updated successfully, but these errors were encountered: