Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Pack URIs does not work in a custom control library

$
0
0


I have created a custom control library.

In project folder, i have two folders: themes and styles.

In themes folder have 2 files: generic.xaml and newwnd.xaml

In styles folder have some files(colors, control's style,etc...)

In generic.xaml i merged all  xaml files

<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"><ResourceDictionary.MergedDictionaries><ResourceDictionary Source="pack://application:,,,/ModernUI.Controls;component/Styles/Controls.Text_Block.xaml" /><ResourceDictionary Source="/ModernUI.Controls;component/Themes/ModernUI.Windows.xaml" /></ResourceDictionary.MergedDictionaries></ResourceDictionary>

But files in styles folder are not working. When i use above code in the client app, its working.

What am I wrong or did I miss some thing?

Thanks



Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>