Click here to Skip to main content
15,888,461 members
Home / Discussions / WPF
   

WPF

 
QuestionPayment gateway in Silverlight Pin
saroja24127-Dec-11 1:47
saroja24127-Dec-11 1:47 
AnswerRe: Payment gateway in Silverlight Pin
ThatsAlok3-Jan-12 20:28
ThatsAlok3-Jan-12 20:28 
QuestionWPF does not run on an other machine Pin
Turhan Coskun25-Dec-11 10:34
professionalTurhan Coskun25-Dec-11 10:34 
AnswerRe: WPF does not run on an other machine Pin
SledgeHammer0125-Dec-11 12:54
SledgeHammer0125-Dec-11 12:54 
GeneralRe: WPF does not run on an other machine Pin
Turhan Coskun26-Dec-11 1:16
professionalTurhan Coskun26-Dec-11 1:16 
GeneralRe: WPF does not run on an other machine Pin
SledgeHammer0126-Dec-11 7:39
SledgeHammer0126-Dec-11 7:39 
AnswerRe: WPF does not run on an other machine Pin
Turhan Coskun28-Dec-11 3:38
professionalTurhan Coskun28-Dec-11 3:38 
QuestionBinding a SolidColorBrush resource of Theme Pin
Prasoon Chaudhary22-Dec-11 23:22
Prasoon Chaudhary22-Dec-11 23:22 
I need a binding in SolidColorBrush color value inside my theme. So basically, instead of
HTML
<SolidColorBrush x:Key="TextBrush" Color=" #FF000000" />

I want something like -
HTML
<SolidColorBrush x:Key="TextBrush" Color="{Binding ColorVal}" />

Property could be defined something like this:
C#
namespace ns
{
    public class BindingClass
    {
        public Color ColorVal
        {
            get
            {
                return Color.FromRgb(255, 0, 0);
            }
        }
    }
}


Hopefully it's possible. What should I write instead of 'Binding expression' in XAML theme?

Update:

I've got one solution-
On top,
HTML
xmlns:local="clr-namespace:ns"

Then a Resource key,
HTML
<local:BindingClass x:Key="BindingClassKey"/>

Finally binding,
HTML
<SolidColorBrush x:Key="TextBrush" Color="{Binding Source={StaticResource BindingClassKey}, Path=ColorVal}" />


Any better solution?

modified 23-Dec-11 6:19am.

QuestionSilverlight Navigation menu Pin
arkiboys22-Dec-11 21:25
arkiboys22-Dec-11 21:25 
AnswerRe: Silverlight Navigation menu Pin
Abhinav S27-Dec-11 21:21
Abhinav S27-Dec-11 21:21 
GeneralRe: Silverlight Navigation menu Pin
arkiboys27-Dec-11 23:07
arkiboys27-Dec-11 23:07 
GeneralRe: Silverlight Navigation menu Pin
Abhinav S27-Dec-11 23:16
Abhinav S27-Dec-11 23:16 
Question[silverlight]How to customerize the readonly for each datagridcell Pin
Loveisasea21-Dec-11 21:43
Loveisasea21-Dec-11 21:43 
QuestionThe authentication header received from the server was 'Negotiate,NTLM' Pin
indian14321-Dec-11 6:30
indian14321-Dec-11 6:30 
AnswerRe: The authentication header received from the server was 'Negotiate,NTLM' Pin
thatraja21-Dec-11 6:58
professionalthatraja21-Dec-11 6:58 
GeneralRe: The authentication header received from the server was 'Negotiate,NTLM' Pin
indian14321-Dec-11 7:23
indian14321-Dec-11 7:23 
QuestionLoggin session for silverlight application Pin
nbeiruty20-Dec-11 23:48
nbeiruty20-Dec-11 23:48 
QuestionSilverLight Child Widow Pin
Ashraf ELHakim20-Dec-11 3:18
Ashraf ELHakim20-Dec-11 3:18 
QuestionImport Adobe Illustrator files into Microsoft Blend 4 trouble Pin
Morpheus31219-Dec-11 9:33
Morpheus31219-Dec-11 9:33 
Questionfile operation not permitted. access to path is denied silverlight Pin
indian14319-Dec-11 6:48
indian14319-Dec-11 6:48 
AnswerRe: file operation not permitted. access to path is denied silverlight Pin
Pete O'Hanlon19-Dec-11 7:43
mvePete O'Hanlon19-Dec-11 7:43 
GeneralRe: file operation not permitted. access to path is denied silverlight Pin
indian14319-Dec-11 8:58
indian14319-Dec-11 8:58 
GeneralRe: file operation not permitted. access to path is denied silverlight Pin
SledgeHammer0119-Dec-11 9:18
SledgeHammer0119-Dec-11 9:18 
GeneralRe: file operation not permitted. access to path is denied silverlight Pin
indian14319-Dec-11 9:49
indian14319-Dec-11 9:49 
AnswerRe: file operation not permitted. access to path is denied silverlight Pin
Mycroft Holmes19-Dec-11 11:54
professionalMycroft Holmes19-Dec-11 11:54 

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.