Click here to Skip to main content
15,917,862 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Silverlight and WCF issue Pin
Abhinav S23-Apr-10 1:00
Abhinav S23-Apr-10 1:00 
GeneralRe: Silverlight and WCF issue Pin
CrazyCoder2623-Apr-10 1:45
CrazyCoder2623-Apr-10 1:45 
GeneralRe: Silverlight and WCF issue Pin
CrazyCoder2625-Apr-10 20:48
CrazyCoder2625-Apr-10 20:48 
GeneralRe: Silverlight and WCF issu [modified] Pin
Abhinav S26-Apr-10 1:19
Abhinav S26-Apr-10 1:19 
GeneralRe: Silverlight and WCF issue Pin
CrazyCoder2623-Apr-10 17:43
CrazyCoder2623-Apr-10 17:43 
QuestionDatagridRow DetailsTemplate Problem Pin
vsaratkar22-Apr-10 10:43
vsaratkar22-Apr-10 10:43 
Questionwindows application user control in wpf Pin
dashingsidds22-Apr-10 1:56
dashingsidds22-Apr-10 1:56 
AnswerRe: windows application user control in wpf Pin
dashingsidds22-Apr-10 19:33
dashingsidds22-Apr-10 19:33 
Questionneed 2 extract links from a html file Pin
shoeb0171721-Apr-10 21:19
shoeb0171721-Apr-10 21:19 
AnswerRe: need 2 extract links from a html file Pin
Pete O'Hanlon22-Apr-10 23:15
mvePete O'Hanlon22-Apr-10 23:15 
QuestionSilverlight and WCF issue Pin
CrazyCoder2621-Apr-10 17:36
CrazyCoder2621-Apr-10 17:36 
AnswerMessage Removed Pin
21-Apr-10 17:58
CrazyCoder2621-Apr-10 17:58 
GeneralRe: Silverlight and WCF issue Pin
Abhinav S21-Apr-10 18:54
Abhinav S21-Apr-10 18:54 
QuestionHow to combine multiple usercontrols into a single dll Pin
Prasoon Chaudhary21-Apr-10 2:28
Prasoon Chaudhary21-Apr-10 2:28 
QuestionSilverlight Database Access [modified] Pin
#realJSOP21-Apr-10 1:45
professional#realJSOP21-Apr-10 1:45 
AnswerRe: Silverlight Database Access Pin
daveyerwin21-Apr-10 15:09
daveyerwin21-Apr-10 15:09 
GeneralRe: Silverlight Database Access Pin
#realJSOP22-Apr-10 0:09
professional#realJSOP22-Apr-10 0:09 
AnswerRe: Silverlight Database Access Pin
Abhinav S21-Apr-10 18:50
Abhinav S21-Apr-10 18:50 
AnswerRe: Silverlight Database Access Pin
Michel Godfroid22-Apr-10 1:59
Michel Godfroid22-Apr-10 1:59 
AnswerRe: Silverlight Database Access Pin
econner1-May-10 17:47
econner1-May-10 17:47 
QuestionCommon Properties get disappeared after converting a WPF control into UserControl Pin
Prasoon Chaudhary21-Apr-10 0:15
Prasoon Chaudhary21-Apr-10 0:15 
AnswerRe: Common Properties get disappeared after converting a WPF control into UserControl Pin
BlitzPackage21-Apr-10 16:20
BlitzPackage21-Apr-10 16:20 
Questionwpf tooltip on datagrid cell. [modified] Pin
Ravi Mori19-Apr-10 23:38
Ravi Mori19-Apr-10 23:38 
QuestionUnable to get proper uri of resource dictionary Pin
dashingsidds19-Apr-10 22:33
dashingsidds19-Apr-10 22:33 
Hi Experts,

I have defined a control template in a resource dictionary which is in a different project (lets call it project A) and I want to use this in a project which has many wpf windows (lets call it project B). So I have added this dictionary to my application resources of project B as

Uri uri = new Uri(@"C:\ProjA\Dictionary.xaml", UriKind.Absolute);

ResourceDictionary dict = new ResourceDictionary();
dict.Source = uri;
Application.Current.Resources.MergedDictionaries.Add(dict);


This code is working like a gem!

I want to convert this absolute path to a relative path. I have added the dll of project A as reference in project B. I have tried various permutations and combinations but not able to get it as

Uri uri = new Uri("/ProjA;component/Dictionary.xaml", UriKind.RelativeOrAbsolute);


I think i am doing something wrong here but unable to figure out.
Please help!
Thanks in advance!

Regards,

Samar

Note: This dictionary is in the root folder of project A.
AnswerRe: Unable to get proper uri of resource dictionary Pin
dashingsidds19-Apr-10 23:16
dashingsidds19-Apr-10 23:16 

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.