Click here to Skip to main content
15,915,828 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Change current Style on runtime Pin
Jammer27-Apr-09 8:04
Jammer27-Apr-09 8:04 
GeneralRe: Change current Style on runtime: >Still Open< Pin
Antonio Cambule27-Apr-09 23:01
Antonio Cambule27-Apr-09 23:01 
Questionnotifications to user while uploading? Pin
kavetypavankumar27-Apr-09 3:06
kavetypavankumar27-Apr-09 3:06 
QuestionRe: notifications to user while uploading? Pin
Mark Salsbery27-Apr-09 7:18
Mark Salsbery27-Apr-09 7:18 
Question[Message Deleted] Pin
srikanth.penmetsa27-Apr-09 2:18
srikanth.penmetsa27-Apr-09 2:18 
QuestionRe: Doubt in silverlight Pin
Mark Salsbery27-Apr-09 7:10
Mark Salsbery27-Apr-09 7:10 
QuestionNeed help with loading help files Pin
Etienne_12326-Apr-09 2:05
Etienne_12326-Apr-09 2:05 
AnswerRe: Need help with loading help files Pin
Pete O'Hanlon26-Apr-09 22:13
mvePete O'Hanlon26-Apr-09 22:13 
GeneralRe: Need help with loading help files Pin
Etienne_12326-Apr-09 23:50
Etienne_12326-Apr-09 23:50 
GeneralRe: Need help with loading help files Pin
Pete O'Hanlon27-Apr-09 0:13
mvePete O'Hanlon27-Apr-09 0:13 
GeneralRe: Need help with loading help files Pin
Pete O'Hanlon3-May-09 1:41
mvePete O'Hanlon3-May-09 1:41 
QuestionAdding items to a ListView in WPF ? Pin
Mohammad Dayyan25-Apr-09 8:54
Mohammad Dayyan25-Apr-09 8:54 
AnswerRe: Adding items to a ListView in WPF ? Pin
Mark Salsbery25-Apr-09 9:01
Mark Salsbery25-Apr-09 9:01 
GeneralRe: Adding items to a ListView in WPF ? Pin
Mohammad Dayyan25-Apr-09 9:18
Mohammad Dayyan25-Apr-09 9:18 
GeneralRe: Adding items to a ListView in WPF ? Pin
Mark Salsbery25-Apr-09 9:26
Mark Salsbery25-Apr-09 9:26 
QuestionResource Dictionary in subprojects Pin
#realJSOP24-Apr-09 6:36
professional#realJSOP24-Apr-09 6:36 
AnswerRe: Resource Dictionary in subprojects Pin
Gideon Engelberth24-Apr-09 7:15
Gideon Engelberth24-Apr-09 7:15 
GeneralRe: Resource Dictionary in subprojects Pin
#realJSOP24-Apr-09 8:00
professional#realJSOP24-Apr-09 8:00 
AnswerRe: Resource Dictionary in subprojects Pin
Eslam Afifi24-Apr-09 9:26
Eslam Afifi24-Apr-09 9:26 
GeneralRe: Resource Dictionary in subprojects Pin
User 2710091-May-09 5:17
User 2710091-May-09 5:17 
QuestionRe: Resource Dictionary in subprojects Pin
Eslam Afifi25-Jun-09 11:12
Eslam Afifi25-Jun-09 11:12 
I'm sorry I couldn't reply to your message earlier because I was having exams and projects. I couldn't understand your message back then so I decided to get back to it after exams with a clear mind. Finally I got the time to try to understand it again and I'm confused.

Karl Shifflett wrote:
All of my applications are designed this way.

MainApp.exe - has merged resources

LibraryOne - no resources, uses resource in MainApp.exe. Does not reference MainApp.exe. Resources here all use the DynamicResource mark up extenstion when assigning them.


Why do all your applications has the resources in the exe and the dlls uses these resources?
Trying to understand, I wrote some code trying to apply what you described and I don't know If it's what you meant or not.

Class1 in a library that doesn't reference the exe.
public class Class1
{
    public static void Foo()
    {
        var resourceDictionary = new ResourceDictionary()
        {
            Source = new Uri(@"WpfApplication4;component\Dictionary1.xaml", UriKind.Relative)
        };

        Debug.WriteLine(resourceDictionary["msg"]);
    }
}


The exe (which references the library which reside in the same directory) has Dictionary1.xaml
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mscorlib="clr-namespace:System;assembly=mscorlib">
    <mscorlib:String x:Key="msg">Hello, world!</mscorlib:String>
</ResourceDictionary>


Then the exe calls the Foo method in the library (in debug) somewhere.
I don't know if this is near what you described or not. Or is it that the exe doesn't reference the dlls and use resources defined in the dlls and load them from code? It'd be great if you clarify this. Thank you.

Eslam Afifi

AnswerRe: Resource Dictionary in subprojects Pin
User 27100929-Jun-09 2:42
User 27100929-Jun-09 2:42 
GeneralRe: Resource Dictionary in subprojects Pin
Eslam Afifi29-Jun-09 15:31
Eslam Afifi29-Jun-09 15:31 
GeneralRe: Resource Dictionary in subprojects Pin
User 27100929-Jun-09 15:37
User 27100929-Jun-09 15:37 
GeneralRe: Resource Dictionary in subprojects Pin
Eslam Afifi29-Jun-09 15:39
Eslam Afifi29-Jun-09 15:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.