locked
Reusable elements (Terence) - 7/24/2006 11:53 AM PST RRS feed

  • Question

  • By: Terence


    How can I make an element, such as a button, that can be used in multiple 
    aplications? I've tried sever time to figure out the Resource Palette but no 
    luck.
    
    Any one?
    Tuesday, February 19, 2008 1:40 AM

Answers

  • By: Brennon Williams

    Howdy Terence,
    
    I have added a word doc tutorial at the following location:
    
    http://www.x-coders.com/EID/RD_MAY.zip
    
    If you have any problems, let me know. It is a little rough but it should 
    get you going step by step.
    
    By the way, I am using MayCTP so please be aware that it works for that 
    version but I cant say for any other.
    
    Cheers
    
    "Brennon Williams" wrote:
    
    > No problems Terence...
    > 
    > Give me a few hours and I will put up a tutorial with pictures and 
    > everything...
    > 
    > Cheers for your patience
    > 
    > 
    > 
    > "Terence" wrote:
    > 
    > > Unni and Brennon,
    > > 
    > > Guys, thank for the help, but I must still be missing something. I tried if 
    > > a few times and but its not making much sense. I can't make it past Unni's 
    > > first step.
    > > 
    > > If I try this:
    > > 
    > > File -> New -> Resource Dictionary (ctrl + alt + R) nothing seems to happen. 
    > > It would seem to me that I should be able to name this new dictonary. Not 
    > > sure were the Add Exiisting Item is. 
    > > 
    > > Or I can go this way:
    > > 
    > > File -> New Project...(ctrl + Shift + N) but that takes me to the Create New 
    > > Project window. The two options there being Standard app and Control Library.
    > > 
    > > Confused,
    > > 
    > > Terence
    > > 
    > > "Brennon Williams" wrote:
    > > 
    > > > Howdy Terence,
    > > > 
    > > > I was running so short of time yesterday, I just didnt want you to think 
    > > > that no one was interested in answering your question, as you now know, Unni 
    > > > has provided the gold once again (I have to think about it too much to just 
    > > > rattle it off like he can).
    > > > 
    > > > Terence I assume you know how to apply templates and styles to your 
    > > > elements? If you have anymore issues with this, or new discoveries, please 
    > > > let us all know.
    > > > 
    > > > Unni I never noticed the issue with the proj reference, but it is good to 
    > > > know now. I assume that this will be fixed when you release the new stuff? 
    > > > You cant give the Cider guys a nuge to make them speed up their 
    > > > implementation can you? :)
    > > > 
    > > > Cheers
    > > > 
    > > > 
    > > > "Unni Ravindranathan (MS)" wrote:
    > > > 
    > > > > Hi Terence,
    > > > > 
    > > > > I am assuming that your question is to create a look for a Button that you 
    > > > > want to reuse in other applications. Your best bet (as Brennon explains) is 
    > > > > to use an External Resource Dictionary. The steps are:
    > > > > 
    > > > > a) File -> New Resource Dictionary or Project -> Add Existing Item to add an 
    > > > > existing resource dictionary.
    > > > > b) In the Resource palette, choose the "Link" button and link to this 
    > > > > Resource Dictionary.
    > > > > c) Now you can store your button style in the resource dictionary similar to 
    > > > > storing in other places in the application.
    > > > > 
    > > > > We will improve the workflow in a future release, and you will be pretty 
    > > > > surprised I hope. One thing to note is that when you add an existing 
    > > > > resource dictionary, we by default copy the resource dictionary over - so 
    > > > > that is not really ideal since any changes that you make are now local. To 
    > > > > avoid this, you will need to fix up the project system reference in the 
    > > > > ..csproj to use a relative path to the RD.
    > > > > 
    > > > > Thanks,
    > > > > -Unni
    > > > > 
    > > > > "Brennon Williams" <BrennonWilliams@discussions.microsoft.com> wrote in 
    > > > > message news:39FFCDCE-C032-4973-9E37-8A6E2F2654B5@microsoft.com...
    > > > > > Howdy Terence..
    > > > > >
    > > > > > This is where ResourceDictionaries come into the play... you can do it at
    > > > > > present but the process is not as smooth as MS would like, and according 
    > > > > > to
    > > > > > Unni, this area will be much improved in future releases, which I for one 
    > > > > > am
    > > > > > very excited about.
    > > > > >
    > > > > > I will give you an example shortly of how to make one unless someone else
    > > > > > steps in with the steps you need to take.
    > > > > >
    > > > > > Cheers
    > > > > >
    > > > > >
    > > > > >
    > > > > > "Terence" wrote:
    > > > > >
    > > > > >> How can I make an element, such as a button, that can be used in multiple
    > > > > >> aplications? I've tried sever time to figure out the Resource Palette but 
    > > > > >> no
    > > > > >> luck.
    > > > > >>
    > > > > >> Any one? 
    > > > > 
    > > > > 
    > > > > 
    Tuesday, February 19, 2008 7:07 PM

All replies

  • By: Brennon Williams

    Howdy Terence..
    
    This is where ResourceDictionaries come into the play... you can do it at 
    present but the process is not as smooth as MS would like, and according to 
    Unni, this area will be much improved in future releases, which I for one am 
    very excited about.
    
    I will give you an example shortly of how to make one unless someone else 
    steps in with the steps you need to take.
    
    Cheers
    
    
    
    "Terence" wrote:
    
    > How can I make an element, such as a button, that can be used in multiple 
    > aplications? I've tried sever time to figure out the Resource Palette but no 
    > luck.
    > 
    > Any one?
    Tuesday, February 19, 2008 7:05 PM
  • By: Unni Ravindranathan (MS)

    Hi Terence,

    I am assuming that your question is to create a look for a Button that you
    want to reuse in other applications. Your best bet (as Brennon explains) is
    to use an External Resource Dictionary. The steps are:

    a) File -> New Resource Dictionary or Project -> Add Existing Item to add an
    existing resource dictionary.
    b) In the Resource palette, choose the "Link" button and link to this
    Resource Dictionary.
    c) Now you can store your button style in the resource dictionary similar to
    storing in other places in the application.

    We will improve the workflow in a future release, and you will be pretty
    surprised I hope. One thing to note is that when you add an existing
    resource dictionary, we by default copy the resource dictionary over - so
    that is not really ideal since any changes that you make are now local. To
    avoid this, you will need to fix up the project system reference in the
    ..csproj to use a relative path to the RD.

    Thanks,
    -Unni

    "Brennon Williams" <BrennonWilliams@discussions.microsoft.com> wrote in
    message news:39FFCDCE-C032-4973-9E37-8A6E2F2654B5@microsoft.com...
    > Howdy Terence..
    >
    > This is where ResourceDictionaries come into the play... you can do it at
    > present but the process is not as smooth as MS would like, and according
    > to
    > Unni, this area will be much improved in future releases, which I for one
    > am
    > very excited about.
    >
    > I will give you an example shortly of how to make one unless someone else
    > steps in with the steps you need to take.
    >
    > Cheers
    >
    >
    >
    > "Terence" wrote:
    >
    >> How can I make an element, such as a button, that can be used in multiple
    >> aplications? I've tried sever time to figure out the Resource Palette but
    >> no
    >> luck.
    >>
    >> Any one?

    Tuesday, February 19, 2008 7:05 PM
  • By: Brennon Williams

    Howdy Terence,
    
    I was running so short of time yesterday, I just didnt want you to think 
    that no one was interested in answering your question, as you now know, Unni 
    has provided the gold once again (I have to think about it too much to just 
    rattle it off like he can).
    
    Terence I assume you know how to apply templates and styles to your 
    elements? If you have anymore issues with this, or new discoveries, please 
    let us all know.
    
    Unni I never noticed the issue with the proj reference, but it is good to 
    know now. I assume that this will be fixed when you release the new stuff? 
    You cant give the Cider guys a nuge to make them speed up their 
    implementation can you? :)
    
    Cheers
    
    
    "Unni Ravindranathan (MS)" wrote:
    
    > Hi Terence,
    > 
    > I am assuming that your question is to create a look for a Button that you 
    > want to reuse in other applications. Your best bet (as Brennon explains) is 
    > to use an External Resource Dictionary. The steps are:
    > 
    > a) File -> New Resource Dictionary or Project -> Add Existing Item to add an 
    > existing resource dictionary.
    > b) In the Resource palette, choose the "Link" button and link to this 
    > Resource Dictionary.
    > c) Now you can store your button style in the resource dictionary similar to 
    > storing in other places in the application.
    > 
    > We will improve the workflow in a future release, and you will be pretty 
    > surprised I hope. One thing to note is that when you add an existing 
    > resource dictionary, we by default copy the resource dictionary over - so 
    > that is not really ideal since any changes that you make are now local. To 
    > avoid this, you will need to fix up the project system reference in the 
    > ..csproj to use a relative path to the RD.
    > 
    > Thanks,
    > -Unni
    > 
    > "Brennon Williams" <BrennonWilliams@discussions.microsoft.com> wrote in 
    > message news:39FFCDCE-C032-4973-9E37-8A6E2F2654B5@microsoft.com...
    > > Howdy Terence..
    > >
    > > This is where ResourceDictionaries come into the play... you can do it at
    > > present but the process is not as smooth as MS would like, and according 
    > > to
    > > Unni, this area will be much improved in future releases, which I for one 
    > > am
    > > very excited about.
    > >
    > > I will give you an example shortly of how to make one unless someone else
    > > steps in with the steps you need to take.
    > >
    > > Cheers
    > >
    > >
    > >
    > > "Terence" wrote:
    > >
    > >> How can I make an element, such as a button, that can be used in multiple
    > >> aplications? I've tried sever time to figure out the Resource Palette but 
    > >> no
    > >> luck.
    > >>
    > >> Any one? 
    > 
    > 
    > 
    Tuesday, February 19, 2008 7:06 PM
  • By: Terence

    Unni and Brennon,
    
    Guys, thank for the help, but I must still be missing something. I tried if 
    a few times and but its not making much sense. I can't make it past Unni's 
    first step.
    
    If I try this:
    
    File -> New -> Resource Dictionary (ctrl + alt + R) nothing seems to happen. 
    It would seem to me that I should be able to name this new dictonary. Not 
    sure were the Add Exiisting Item is. 
    
    Or I can go this way:
    
    File -> New Project...(ctrl + Shift + N) but that takes me to the Create New 
    Project window. The two options there being Standard app and Control Library.
    
    Confused,
    
    Terence
    
    "Brennon Williams" wrote:
    
    > Howdy Terence,
    > 
    > I was running so short of time yesterday, I just didnt want you to think 
    > that no one was interested in answering your question, as you now know, Unni 
    > has provided the gold once again (I have to think about it too much to just 
    > rattle it off like he can).
    > 
    > Terence I assume you know how to apply templates and styles to your 
    > elements? If you have anymore issues with this, or new discoveries, please 
    > let us all know.
    > 
    > Unni I never noticed the issue with the proj reference, but it is good to 
    > know now. I assume that this will be fixed when you release the new stuff? 
    > You cant give the Cider guys a nuge to make them speed up their 
    > implementation can you? :)
    > 
    > Cheers
    > 
    > 
    > "Unni Ravindranathan (MS)" wrote:
    > 
    > > Hi Terence,
    > > 
    > > I am assuming that your question is to create a look for a Button that you 
    > > want to reuse in other applications. Your best bet (as Brennon explains) is 
    > > to use an External Resource Dictionary. The steps are:
    > > 
    > > a) File -> New Resource Dictionary or Project -> Add Existing Item to add an 
    > > existing resource dictionary.
    > > b) In the Resource palette, choose the "Link" button and link to this 
    > > Resource Dictionary.
    > > c) Now you can store your button style in the resource dictionary similar to 
    > > storing in other places in the application.
    > > 
    > > We will improve the workflow in a future release, and you will be pretty 
    > > surprised I hope. One thing to note is that when you add an existing 
    > > resource dictionary, we by default copy the resource dictionary over - so 
    > > that is not really ideal since any changes that you make are now local. To 
    > > avoid this, you will need to fix up the project system reference in the 
    > > ..csproj to use a relative path to the RD.
    > > 
    > > Thanks,
    > > -Unni
    > > 
    > > "Brennon Williams" <BrennonWilliams@discussions.microsoft.com> wrote in 
    > > message news:39FFCDCE-C032-4973-9E37-8A6E2F2654B5@microsoft.com...
    > > > Howdy Terence..
    > > >
    > > > This is where ResourceDictionaries come into the play... you can do it at
    > > > present but the process is not as smooth as MS would like, and according 
    > > > to
    > > > Unni, this area will be much improved in future releases, which I for one 
    > > > am
    > > > very excited about.
    > > >
    > > > I will give you an example shortly of how to make one unless someone else
    > > > steps in with the steps you need to take.
    > > >
    > > > Cheers
    > > >
    > > >
    > > >
    > > > "Terence" wrote:
    > > >
    > > >> How can I make an element, such as a button, that can be used in multiple
    > > >> aplications? I've tried sever time to figure out the Resource Palette but 
    > > >> no
    > > >> luck.
    > > >>
    > > >> Any one? 
    > > 
    > > 
    > > 
    Tuesday, February 19, 2008 7:06 PM
  • By: Brennon Williams

    No problems Terence...
    
    Give me a few hours and I will put up a tutorial with pictures and 
    everything...
    
    Cheers for your patience
    
    
    
    "Terence" wrote:
    
    > Unni and Brennon,
    > 
    > Guys, thank for the help, but I must still be missing something. I tried if 
    > a few times and but its not making much sense. I can't make it past Unni's 
    > first step.
    > 
    > If I try this:
    > 
    > File -> New -> Resource Dictionary (ctrl + alt + R) nothing seems to happen. 
    > It would seem to me that I should be able to name this new dictonary. Not 
    > sure were the Add Exiisting Item is. 
    > 
    > Or I can go this way:
    > 
    > File -> New Project...(ctrl + Shift + N) but that takes me to the Create New 
    > Project window. The two options there being Standard app and Control Library.
    > 
    > Confused,
    > 
    > Terence
    > 
    > "Brennon Williams" wrote:
    > 
    > > Howdy Terence,
    > > 
    > > I was running so short of time yesterday, I just didnt want you to think 
    > > that no one was interested in answering your question, as you now know, Unni 
    > > has provided the gold once again (I have to think about it too much to just 
    > > rattle it off like he can).
    > > 
    > > Terence I assume you know how to apply templates and styles to your 
    > > elements? If you have anymore issues with this, or new discoveries, please 
    > > let us all know.
    > > 
    > > Unni I never noticed the issue with the proj reference, but it is good to 
    > > know now. I assume that this will be fixed when you release the new stuff? 
    > > You cant give the Cider guys a nuge to make them speed up their 
    > > implementation can you? :)
    > > 
    > > Cheers
    > > 
    > > 
    > > "Unni Ravindranathan (MS)" wrote:
    > > 
    > > > Hi Terence,
    > > > 
    > > > I am assuming that your question is to create a look for a Button that you 
    > > > want to reuse in other applications. Your best bet (as Brennon explains) is 
    > > > to use an External Resource Dictionary. The steps are:
    > > > 
    > > > a) File -> New Resource Dictionary or Project -> Add Existing Item to add an 
    > > > existing resource dictionary.
    > > > b) In the Resource palette, choose the "Link" button and link to this 
    > > > Resource Dictionary.
    > > > c) Now you can store your button style in the resource dictionary similar to 
    > > > storing in other places in the application.
    > > > 
    > > > We will improve the workflow in a future release, and you will be pretty 
    > > > surprised I hope. One thing to note is that when you add an existing 
    > > > resource dictionary, we by default copy the resource dictionary over - so 
    > > > that is not really ideal since any changes that you make are now local. To 
    > > > avoid this, you will need to fix up the project system reference in the 
    > > > ..csproj to use a relative path to the RD.
    > > > 
    > > > Thanks,
    > > > -Unni
    > > > 
    > > > "Brennon Williams" <BrennonWilliams@discussions.microsoft.com> wrote in 
    > > > message news:39FFCDCE-C032-4973-9E37-8A6E2F2654B5@microsoft.com...
    > > > > Howdy Terence..
    > > > >
    > > > > This is where ResourceDictionaries come into the play... you can do it at
    > > > > present but the process is not as smooth as MS would like, and according 
    > > > > to
    > > > > Unni, this area will be much improved in future releases, which I for one 
    > > > > am
    > > > > very excited about.
    > > > >
    > > > > I will give you an example shortly of how to make one unless someone else
    > > > > steps in with the steps you need to take.
    > > > >
    > > > > Cheers
    > > > >
    > > > >
    > > > >
    > > > > "Terence" wrote:
    > > > >
    > > > >> How can I make an element, such as a button, that can be used in multiple
    > > > >> aplications? I've tried sever time to figure out the Resource Palette but 
    > > > >> no
    > > > >> luck.
    > > > >>
    > > > >> Any one? 
    > > > 
    > > > 
    > > > 
    Tuesday, February 19, 2008 7:06 PM
  • By: Brennon Williams

    Howdy Terence,
    
    I have added a word doc tutorial at the following location:
    
    http://www.x-coders.com/EID/RD_MAY.zip
    
    If you have any problems, let me know. It is a little rough but it should 
    get you going step by step.
    
    By the way, I am using MayCTP so please be aware that it works for that 
    version but I cant say for any other.
    
    Cheers
    
    "Brennon Williams" wrote:
    
    > No problems Terence...
    > 
    > Give me a few hours and I will put up a tutorial with pictures and 
    > everything...
    > 
    > Cheers for your patience
    > 
    > 
    > 
    > "Terence" wrote:
    > 
    > > Unni and Brennon,
    > > 
    > > Guys, thank for the help, but I must still be missing something. I tried if 
    > > a few times and but its not making much sense. I can't make it past Unni's 
    > > first step.
    > > 
    > > If I try this:
    > > 
    > > File -> New -> Resource Dictionary (ctrl + alt + R) nothing seems to happen. 
    > > It would seem to me that I should be able to name this new dictonary. Not 
    > > sure were the Add Exiisting Item is. 
    > > 
    > > Or I can go this way:
    > > 
    > > File -> New Project...(ctrl + Shift + N) but that takes me to the Create New 
    > > Project window. The two options there being Standard app and Control Library.
    > > 
    > > Confused,
    > > 
    > > Terence
    > > 
    > > "Brennon Williams" wrote:
    > > 
    > > > Howdy Terence,
    > > > 
    > > > I was running so short of time yesterday, I just didnt want you to think 
    > > > that no one was interested in answering your question, as you now know, Unni 
    > > > has provided the gold once again (I have to think about it too much to just 
    > > > rattle it off like he can).
    > > > 
    > > > Terence I assume you know how to apply templates and styles to your 
    > > > elements? If you have anymore issues with this, or new discoveries, please 
    > > > let us all know.
    > > > 
    > > > Unni I never noticed the issue with the proj reference, but it is good to 
    > > > know now. I assume that this will be fixed when you release the new stuff? 
    > > > You cant give the Cider guys a nuge to make them speed up their 
    > > > implementation can you? :)
    > > > 
    > > > Cheers
    > > > 
    > > > 
    > > > "Unni Ravindranathan (MS)" wrote:
    > > > 
    > > > > Hi Terence,
    > > > > 
    > > > > I am assuming that your question is to create a look for a Button that you 
    > > > > want to reuse in other applications. Your best bet (as Brennon explains) is 
    > > > > to use an External Resource Dictionary. The steps are:
    > > > > 
    > > > > a) File -> New Resource Dictionary or Project -> Add Existing Item to add an 
    > > > > existing resource dictionary.
    > > > > b) In the Resource palette, choose the "Link" button and link to this 
    > > > > Resource Dictionary.
    > > > > c) Now you can store your button style in the resource dictionary similar to 
    > > > > storing in other places in the application.
    > > > > 
    > > > > We will improve the workflow in a future release, and you will be pretty 
    > > > > surprised I hope. One thing to note is that when you add an existing 
    > > > > resource dictionary, we by default copy the resource dictionary over - so 
    > > > > that is not really ideal since any changes that you make are now local. To 
    > > > > avoid this, you will need to fix up the project system reference in the 
    > > > > ..csproj to use a relative path to the RD.
    > > > > 
    > > > > Thanks,
    > > > > -Unni
    > > > > 
    > > > > "Brennon Williams" <BrennonWilliams@discussions.microsoft.com> wrote in 
    > > > > message news:39FFCDCE-C032-4973-9E37-8A6E2F2654B5@microsoft.com...
    > > > > > Howdy Terence..
    > > > > >
    > > > > > This is where ResourceDictionaries come into the play... you can do it at
    > > > > > present but the process is not as smooth as MS would like, and according 
    > > > > > to
    > > > > > Unni, this area will be much improved in future releases, which I for one 
    > > > > > am
    > > > > > very excited about.
    > > > > >
    > > > > > I will give you an example shortly of how to make one unless someone else
    > > > > > steps in with the steps you need to take.
    > > > > >
    > > > > > Cheers
    > > > > >
    > > > > >
    > > > > >
    > > > > > "Terence" wrote:
    > > > > >
    > > > > >> How can I make an element, such as a button, that can be used in multiple
    > > > > >> aplications? I've tried sever time to figure out the Resource Palette but 
    > > > > >> no
    > > > > >> luck.
    > > > > >>
    > > > > >> Any one? 
    > > > > 
    > > > > 
    > > > > 
    Tuesday, February 19, 2008 7:07 PM
  • By: Terence

    Brennon,
    
    Thanks a lot, that worked perfectly!
    
    You rock!
    
    - Terence
    
    "Brennon Williams" wrote:
    
    > Howdy Terence,
    > 
    > I have added a word doc tutorial at the following location:
    > 
    > http://www.x-coders.com/EID/RD_MAY.zip
    > 
    > If you have any problems, let me know. It is a little rough but it should 
    > get you going step by step.
    > 
    > By the way, I am using MayCTP so please be aware that it works for that 
    > version but I cant say for any other.
    > 
    > Cheers
    > 
    > "Brennon Williams" wrote:
    > 
    > > No problems Terence...
    > > 
    > > Give me a few hours and I will put up a tutorial with pictures and 
    > > everything...
    > > 
    > > Cheers for your patience
    > > 
    > > 
    > > 
    > > "Terence" wrote:
    > > 
    > > > Unni and Brennon,
    > > > 
    > > > Guys, thank for the help, but I must still be missing something. I tried if 
    > > > a few times and but its not making much sense. I can't make it past Unni's 
    > > > first step.
    > > > 
    > > > If I try this:
    > > > 
    > > > File -> New -> Resource Dictionary (ctrl + alt + R) nothing seems to happen. 
    > > > It would seem to me that I should be able to name this new dictonary. Not 
    > > > sure were the Add Exiisting Item is. 
    > > > 
    > > > Or I can go this way:
    > > > 
    > > > File -> New Project...(ctrl + Shift + N) but that takes me to the Create New 
    > > > Project window. The two options there being Standard app and Control Library.
    > > > 
    > > > Confused,
    > > > 
    > > > Terence
    > > > 
    > > > "Brennon Williams" wrote:
    > > > 
    > > > > Howdy Terence,
    > > > > 
    > > > > I was running so short of time yesterday, I just didnt want you to think 
    > > > > that no one was interested in answering your question, as you now know, Unni 
    > > > > has provided the gold once again (I have to think about it too much to just 
    > > > > rattle it off like he can).
    > > > > 
    > > > > Terence I assume you know how to apply templates and styles to your 
    > > > > elements? If you have anymore issues with this, or new discoveries, please 
    > > > > let us all know.
    > > > > 
    > > > > Unni I never noticed the issue with the proj reference, but it is good to 
    > > > > know now. I assume that this will be fixed when you release the new stuff? 
    > > > > You cant give the Cider guys a nuge to make them speed up their 
    > > > > implementation can you? :)
    > > > > 
    > > > > Cheers
    > > > > 
    > > > > 
    > > > > "Unni Ravindranathan (MS)" wrote:
    > > > > 
    > > > > > Hi Terence,
    > > > > > 
    > > > > > I am assuming that your question is to create a look for a Button that you 
    > > > > > want to reuse in other applications. Your best bet (as Brennon explains) is 
    > > > > > to use an External Resource Dictionary. The steps are:
    > > > > > 
    > > > > > a) File -> New Resource Dictionary or Project -> Add Existing Item to add an 
    > > > > > existing resource dictionary.
    > > > > > b) In the Resource palette, choose the "Link" button and link to this 
    > > > > > Resource Dictionary.
    > > > > > c) Now you can store your button style in the resource dictionary similar to 
    > > > > > storing in other places in the application.
    > > > > > 
    > > > > > We will improve the workflow in a future release, and you will be pretty 
    > > > > > surprised I hope. One thing to note is that when you add an existing 
    > > > > > resource dictionary, we by default copy the resource dictionary over - so 
    > > > > > that is not really ideal since any changes that you make are now local. To 
    > > > > > avoid this, you will need to fix up the project system reference in the 
    > > > > > ..csproj to use a relative path to the RD.
    > > > > > 
    > > > > > Thanks,
    > > > > > -Unni
    > > > > > 
    > > > > > "Brennon Williams" <BrennonWilliams@discussions.microsoft.com> wrote in 
    > > > > > message news:39FFCDCE-C032-4973-9E37-8A6E2F2654B5@microsoft.com...
    > > > > > > Howdy Terence..
    > > > > > >
    > > > > > > This is where ResourceDictionaries come into the play... you can do it at
    > > > > > > present but the process is not as smooth as MS would like, and according 
    > > > > > > to
    > > > > > > Unni, this area will be much improved in future releases, which I for one 
    > > > > > > am
    > > > > > > very excited about.
    > > > > > >
    > > > > > > I will give you an example shortly of how to make one unless someone else
    > > > > > > steps in with the steps you need to take.
    > > > > > >
    > > > > > > Cheers
    > > > > > >
    > > > > > >
    > > > > > >
    > > > > > > "Terence" wrote:
    > > > > > >
    > > > > > >> How can I make an element, such as a button, that can be used in multiple
    > > > > > >> aplications? I've tried sever time to figure out the Resource Palette but 
    > > > > > >> no
    > > > > > >> luck.
    > > > > > >>
    > > > > > >> Any one? 
    > > > > > 
    > > > > > 
    > > > > > 
    Tuesday, February 19, 2008 7:07 PM
  • By: Unni Ravindranathan (MS)

    Cool, thanks a lot Brennon!

    -Unni

    "Brennon Williams" <BrennonWilliams@discussions.microsoft.com> wrote in
    message news:F46A8C72-9730-4071-9F7F-54049CD7162E@microsoft.com...
    > Howdy Terence,
    >
    > I have added a word doc tutorial at the following location:
    >
    >
    http://www.x-coders.com/EID/RD_MAY.zip
    >
    > If you have any problems, let me know. It is a little rough but it should
    > get you going step by step.
    >
    > By the way, I am using MayCTP so please be aware that it works for that
    > version but I cant say for any other.
    >
    > Cheers
    >
    > "Brennon Williams" wrote:
    >
    >> No problems Terence...
    >>
    >> Give me a few hours and I will put up a tutorial with pictures and
    >> everything...
    >>
    >> Cheers for your patience
    >>
    >>
    >>
    >> "Terence" wrote:
    >>
    >> > Unni and Brennon,
    >> >
    >> > Guys, thank for the help, but I must still be missing something. I
    >> > tried if
    >> > a few times and but its not making much sense. I can't make it past
    >> > Unni's
    >> > first step.
    >> >
    >> > If I try this:
    >> >
    >> > File -> New -> Resource Dictionary (ctrl + alt + R) nothing seems to
    >> > happen.
    >> > It would seem to me that I should be able to name this new dictonary.
    >> > Not
    >> > sure were the Add Exiisting Item is.
    >> >
    >> > Or I can go this way:
    >> >
    >> > File -> New Project...(ctrl + Shift + N) but that takes me to the
    >> > Create New
    >> > Project window. The two options there being Standard app and Control
    >> > Library.
    >> >
    >> > Confused,
    >> >
    >> > Terence
    >> >
    >> > "Brennon Williams" wrote:
    >> >
    >> > > Howdy Terence,
    >> > >
    >> > > I was running so short of time yesterday, I just didnt want you to
    >> > > think
    >> > > that no one was interested in answering your question, as you now
    >> > > know, Unni
    >> > > has provided the gold once again (I have to think about it too much
    >> > > to just
    >> > > rattle it off like he can).
    >> > >
    >> > > Terence I assume you know how to apply templates and styles to your
    >> > > elements? If you have anymore issues with this, or new discoveries,
    >> > > please
    >> > > let us all know.
    >> > >
    >> > > Unni I never noticed the issue with the proj reference, but it is
    >> > > good to
    >> > > know now. I assume that this will be fixed when you release the new
    >> > > stuff?
    >> > > You cant give the Cider guys a nuge to make them speed up their
    >> > > implementation can you? :)
    >> > >
    >> > > Cheers
    >> > >
    >> > >
    >> > > "Unni Ravindranathan (MS)" wrote:
    >> > >
    >> > > > Hi Terence,
    >> > > >
    >> > > > I am assuming that your question is to create a look for a Button
    >> > > > that you
    >> > > > want to reuse in other applications. Your best bet (as Brennon
    >> > > > explains) is
    >> > > > to use an External Resource Dictionary. The steps are:
    >> > > >
    >> > > > a) File -> New Resource Dictionary or Project -> Add Existing Item
    >> > > > to add an
    >> > > > existing resource dictionary.
    >> > > > b) In the Resource palette, choose the "Link" button and link to
    >> > > > this
    >> > > > Resource Dictionary.
    >> > > > c) Now you can store your button style in the resource dictionary
    >> > > > similar to
    >> > > > storing in other places in the application.
    >> > > >
    >> > > > We will improve the workflow in a future release, and you will be
    >> > > > pretty
    >> > > > surprised I hope. One thing to note is that when you add an
    >> > > > existing
    >> > > > resource dictionary, we by default copy the resource dictionary
    >> > > > over - so
    >> > > > that is not really ideal since any changes that you make are now
    >> > > > local. To
    >> > > > avoid this, you will need to fix up the project system reference in
    >> > > > the
    >> > > > ..csproj to use a relative path to the RD.
    >> > > >
    >> > > > Thanks,
    >> > > > -Unni
    >> > > >
    >> > > > "Brennon Williams" <BrennonWilliams@discussions.microsoft.com>
    >> > > > wrote in
    >> > > > message news:39FFCDCE-C032-4973-9E37-8A6E2F2654B5@microsoft.com...
    >> > > > > Howdy Terence..
    >> > > > >
    >> > > > > This is where ResourceDictionaries come into the play... you can
    >> > > > > do it at
    >> > > > > present but the process is not as smooth as MS would like, and
    >> > > > > according
    >> > > > > to
    >> > > > > Unni, this area will be much improved in future releases, which I
    >> > > > > for one
    >> > > > > am
    >> > > > > very excited about.
    >> > > > >
    >> > > > > I will give you an example shortly of how to make one unless
    >> > > > > someone else
    >> > > > > steps in with the steps you need to take.
    >> > > > >
    >> > > > > Cheers
    >> > > > >
    >> > > > >
    >> > > > >
    >> > > > > "Terence" wrote:
    >> > > > >
    >> > > > >> How can I make an element, such as a button, that can be used in
    >> > > > >> multiple
    >> > > > >> aplications? I've tried sever time to figure out the Resource
    >> > > > >> Palette but
    >> > > > >> no
    >> > > > >> luck.
    >> > > > >>
    >> > > > >> Any one?
    >> > > >
    >> > > >
    >> > > >
    Tuesday, February 19, 2008 7:07 PM