Click here to Skip to main content
15,911,132 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: silverlight datagrid double click Pin
Abhinav S1-Jan-12 19:38
Abhinav S1-Jan-12 19:38 
Questionpopulate datagrid Pin
arkiboys30-Dec-11 0:42
arkiboys30-Dec-11 0:42 
AnswerRe: populate datagrid Pin
V.30-Dec-11 1:15
professionalV.30-Dec-11 1:15 
GeneralRe: populate datagrid Pin
arkiboys30-Dec-11 1:21
arkiboys30-Dec-11 1:21 
GeneralRe: populate datagrid Pin
V.30-Dec-11 1:43
professionalV.30-Dec-11 1:43 
GeneralRe: populate datagrid Pin
V.30-Dec-11 1:46
professionalV.30-Dec-11 1:46 
GeneralRe: populate datagrid Pin
arkiboys30-Dec-11 10:32
arkiboys30-Dec-11 10:32 
GeneralRe: populate datagrid Pin
V.30-Dec-11 22:37
professionalV.30-Dec-11 22:37 
GeneralRe: populate datagrid Pin
arkiboys2-Jan-12 11:49
arkiboys2-Jan-12 11:49 
QuestionLoad Usercontrols in MVVM Pin
jogisarge29-Dec-11 10:59
jogisarge29-Dec-11 10:59 
AnswerRe: Load Usercontrols in MVVM Pin
Pete O'Hanlon29-Dec-11 11:52
mvePete O'Hanlon29-Dec-11 11:52 
Questiondata binding and resource file Pin
zedray28-Dec-11 0:29
zedray28-Dec-11 0:29 
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 

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.