Last active
May 14, 2021 04:24
-
-
Save Mahno74/b869164c251e6c8b43a7da702c0eb75c to your computer and use it in GitHub Desktop.
WPF Добавление ресурсов и стилей в проект
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Содежимое App.xaml | |
<Application.Resources> | |
<ResourceDictionary> | |
<ResourceDictionary.MergedDictionaries> | |
<ResourceDictionary Source="/WpfApp;component/styles/myButton.xaml"/> | |
</ResourceDictionary.MergedDictionaries> | |
</ResourceDictionary> | |
</Application.Resources> | |
//Навание сборки WpfApp, файл со стилем кнопки лежит в папке styles и называетмя myButton.xaml | |
<Button Style="{DynamicResource MyButtonStyle}" Content="Button" /> //применение |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment