Click here to Skip to main content
15,881,281 members
Home / Discussions / WPF
   

WPF

 
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
mve#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
mve#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 
QuestionHow to get the control position to add another control below that? Pin
salon24-Apr-09 2:30
salon24-Apr-09 2:30 
AnswerRe: How to get the control position to add another control below that? Pin
Ray Cassick24-Apr-09 3:16
Ray Cassick24-Apr-09 3:16 
AnswerRe: How to get the control position to add another control below that? Pin
Mark Salsbery25-Apr-09 7:42
Mark Salsbery25-Apr-09 7:42 
Questionrendertransformorigin fails Pin
VCsamir24-Apr-09 1:56
VCsamir24-Apr-09 1:56 
QuestionWeird behavior styling a Border Pin
Foxandxss23-Apr-09 13:34
Foxandxss23-Apr-09 13:34 
AnswerRe: Weird behavior styling a Border Pin
#realJSOP23-Apr-09 22:38
mve#realJSOP23-Apr-09 22:38 
GeneralRe: Weird behavior styling a Border Pin
Pete O'Hanlon23-Apr-09 23:16
mvePete O'Hanlon23-Apr-09 23:16 
GeneralRe: Weird behavior styling a Border Pin
#realJSOP24-Apr-09 2:07
mve#realJSOP24-Apr-09 2:07 
GeneralRe: Weird behavior styling a Border Pin
Foxandxss23-Apr-09 23:40
Foxandxss23-Apr-09 23:40 
QuestionMessage Removed Pin
23-Apr-09 10:46
professionalN_tro_P23-Apr-09 10:46 
AnswerRe: WPF DateTime picker Pin
#realJSOP23-Apr-09 10:48
mve#realJSOP23-Apr-09 10:48 
AnswerRe: WPF DateTime picker Pin
Mark Salsbery23-Apr-09 11:16
Mark Salsbery23-Apr-09 11:16 
GeneralMessage Removed Pin
23-Apr-09 11:40
professionalN_tro_P23-Apr-09 11:40 

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.