Click here to Skip to main content
14,268,184 members

Silverlight / WPF

 
QuestionBorder With Bound Pulsating Color Pin
Kevin Marois10-Dec-18 5:53
professionalKevin Marois10-Dec-18 5:53 
AnswerRe: Border With Bound Pulsating Color Pin
Super Lloyd12-Dec-18 17:06
memberSuper Lloyd12-Dec-18 17:06 
QuestionBinding To Single List Item Pin
Kevin Marois27-Nov-18 10:23
professionalKevin Marois27-Nov-18 10:23 
AnswerRe: Binding To Single List Item Pin
Meshack Musundi27-Nov-18 20:17
professionalMeshack Musundi27-Nov-18 20:17 
GeneralRe: Binding To Single List Item Pin
Pete O'Hanlon27-Nov-18 21:03
protectorPete O'Hanlon27-Nov-18 21:03 
GeneralRe: Binding To Single List Item Pin
Meshack Musundi27-Nov-18 21:12
professionalMeshack Musundi27-Nov-18 21:12 
GeneralRe: Binding To Single List Item Pin
Pete O'Hanlon27-Nov-18 22:19
protectorPete O'Hanlon27-Nov-18 22:19 
GeneralRe: Binding To Single List Item Pin
Meshack Musundi27-Nov-18 21:24
professionalMeshack Musundi27-Nov-18 21:24 
Something like this,
Code behind
public partial class SomeControl : UserControl
{
    public SomeControl()
    {
        InitializeComponent();
        for (int i = 0; i < 20; i++)
        {
            OnOffValues.Add(true);
        }
    }

    public List<bool> OnOffValues
    {
        get { return (List<bool>)GetValue(OnOffValuesProperty); }
        set { SetValue(OnOffValuesProperty, value); }
    }

    public static readonly DependencyProperty OnOffValuesProperty =
        DependencyProperty.Register("OnOffValues", typeof(List<bool>),
            typeof(SomeControl), new PropertyMetadata(new List<bool>()));

}

XAML
<CheckBox IsChecked="{Binding Path=OnOffValues[0], RelativeSource={RelativeSource FindAncestor, AncestorType=UserControl}}"/>
"As beings of finite lifespan, our contributions to the sum of human knowledge is one of the greatest endeavors we can undertake and one of the defining characteristics of humanity itself"

GeneralRe: Binding To Single List Item Pin
Pete O'Hanlon27-Nov-18 22:18
protectorPete O'Hanlon27-Nov-18 22:18 
GeneralRe: Binding To Single List Item Pin
Meshack Musundi27-Nov-18 22:45
professionalMeshack Musundi27-Nov-18 22:45 
GeneralRe: Binding To Single List Item Pin
Pete O'Hanlon27-Nov-18 23:11
protectorPete O'Hanlon27-Nov-18 23:11 
AnswerRe: Binding To Single List Item Pin
Pete O'Hanlon27-Nov-18 21:01
protectorPete O'Hanlon27-Nov-18 21:01 
AnswerRe: Binding To Single List Item Pin
Gerry Schmitz28-Nov-18 19:46
mveGerry Schmitz28-Nov-18 19:46 
Question(solved) Drag and Drop problem Pin
Super Lloyd20-Nov-18 23:36
memberSuper Lloyd20-Nov-18 23:36 
Question(solved) WPF TreeViewItem and Focus Pin
Super Lloyd19-Nov-18 6:45
memberSuper Lloyd19-Nov-18 6:45 
QuestionBest book(s) on WPF Pin
stefano_v15-Nov-18 22:22
memberstefano_v15-Nov-18 22:22 
AnswerRe: Best book(s) on WPF Pin
Gerry Schmitz20-Nov-18 7:00
mveGerry Schmitz20-Nov-18 7:00 
QuestionWPF - HELP with datepicker Pin
Member 1069141114-Nov-18 3:18
memberMember 1069141114-Nov-18 3:18 
SuggestionRe: WPF - HELP with datepicker Pin
Richard Deeming14-Nov-18 6:27
mveRichard Deeming14-Nov-18 6:27 
QuestionButton Style Question Pin
Kevin Marois6-Nov-18 4:26
professionalKevin Marois6-Nov-18 4:26 
AnswerRe: Button Style Question Pin
Super Lloyd19-Nov-18 14:44
memberSuper Lloyd19-Nov-18 14:44 
QuestionHow to call "customized" mahapps.metro modal-dialog window? Pin
Pew_new24-Sep-18 6:50
memberPew_new24-Sep-18 6:50 
AnswerRe: How to call "customized" mahapps.metro modal-dialog window? Pin
Super Lloyd19-Nov-18 14:59
memberSuper Lloyd19-Nov-18 14:59 
QuestionCreating DataGrid IN Code Behind Pin
Kevin Marois19-Sep-18 13:00
professionalKevin Marois19-Sep-18 13:00 
AnswerRe: Creating DataGrid IN Code Behind Pin
Gerry Schmitz24-Sep-18 6:34
mveGerry Schmitz24-Sep-18 6:34 

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.