Click here to Skip to main content
14,692,582 members
Home » Discussions » Silverlight / WPF
   

Silverlight / WPF

 
QuestionDataGrid DataGridCheckBoxColumn Property Change Not Firing Pin
Kevin Marois2-May-18 7:52
professionalKevin Marois2-May-18 7:52 
AnswerRe: DataGrid DataGridCheckBoxColumn Property Change Not Firing Pin
Richard Deeming2-May-18 9:40
mveRichard Deeming2-May-18 9:40 
GeneralRe: DataGrid DataGridCheckBoxColumn Property Change Not Firing Pin
Kevin Marois2-May-18 10:46
professionalKevin Marois2-May-18 10:46 
QuestionWPF NIC counters Pin
Member 138058691-May-18 14:33
MemberMember 138058691-May-18 14:33 
AnswerRe: WPF NIC counters Pin
Gerry Schmitz2-May-18 12:27
mveGerry Schmitz2-May-18 12:27 
QuestionMagnify shader effect Pin
Nick Hallas1-May-18 11:33
MemberNick Hallas1-May-18 11:33 
AnswerRe: Magnify shader effect Pin
Gerry Schmitz2-May-18 12:39
mveGerry Schmitz2-May-18 12:39 
QuestionAssign Collection Items In XAML Pin
Kevin Marois23-Apr-18 9:40
professionalKevin Marois23-Apr-18 9:40 
I created an attached property of type List<string>. How do you assign list items to the collection in XAML?
<h1>region MyItems Collection</h1>

public static readonly DependencyProperty MyItemsProperty =
        DependencyProperty.RegisterAttached("MyItems",
                        typeof(List<string>),
                        typeof(MyClass),
                        new UIPropertyMetadata(null,
                                new PropertyChangedCallback(OnMyItemsChanged)));

public static List<string> GetMyItems(DependencyObject obj)
{
    return (List<string>)obj.GetValue(RightsKeyProperty);
}

public static void SetMyItems(DependencyObject obj, List<string> value)
{
    obj.SetValue(MyItemsProperty, value);
}

private static void OnMyItemsChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e)
{
}
<h1>endregion</h1>
<blockquote class="quote"><div class="op">Quote:</div><TextBox Grid.Row="1"
            Grid.Column="1"
            Text="{Binding CreditLimit, Mode=TwoWay}"
            Width="100"
            sec:MyClass.MyItems=""   <!--HOW DO I ASSIGN MULTIPLE ITEMS HERE-->
            HorizontalAlignment="Left"
            Margin="10"/>
</blockquote>
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.

AnswerRe: Assign Collection Items In XAML Pin
Richard Deeming23-Apr-18 9:58
mveRichard Deeming23-Apr-18 9:58 
GeneralRe: Assign Collection Items In XAML Pin
Kevin Marois23-Apr-18 10:25
professionalKevin Marois23-Apr-18 10:25 
AnswerRe: Assign Collection Items In XAML Pin
Maciej Los23-Apr-18 10:56
mveMaciej Los23-Apr-18 10:56 
GeneralRe: Assign Collection Items In XAML Pin
Kevin Marois23-Apr-18 11:00
professionalKevin Marois23-Apr-18 11:00 
GeneralRe: Assign Collection Items In XAML Pin
Richard Deeming24-Apr-18 2:14
mveRichard Deeming24-Apr-18 2:14 
QuestionMouseEventArgs.CLicks in WPF Pin
Enobong Adahada20-Apr-18 7:33
MemberEnobong Adahada20-Apr-18 7:33 
AnswerRe: MouseEventArgs.CLicks in WPF Pin
Gerry Schmitz20-Apr-18 14:18
mveGerry Schmitz20-Apr-18 14:18 
GeneralRe: MouseEventArgs.CLicks in WPF Pin
Enobong Adahada21-Apr-18 14:08
MemberEnobong Adahada21-Apr-18 14:08 
QuestionField Level Rights Pin
Kevin Marois18-Apr-18 8:38
professionalKevin Marois18-Apr-18 8:38 
AnswerRe: Field Level Rights Pin
Gerry Schmitz18-Apr-18 8:45
mveGerry Schmitz18-Apr-18 8:45 
GeneralRe: Field Level Rights Pin
Kevin Marois18-Apr-18 9:14
professionalKevin Marois18-Apr-18 9:14 
GeneralRe: Field Level Rights Pin
Gerry Schmitz18-Apr-18 9:43
mveGerry Schmitz18-Apr-18 9:43 
GeneralRe: Field Level Rights Pin
Kevin Marois18-Apr-18 9:54
professionalKevin Marois18-Apr-18 9:54 
GeneralRe: Field Level Rights Pin
Gerry Schmitz18-Apr-18 10:50
mveGerry Schmitz18-Apr-18 10:50 
AnswerRe: Field Level Rights Pin
Mycroft Holmes18-Apr-18 15:31
professionalMycroft Holmes18-Apr-18 15:31 
QuestionApplication.Run C# equivalent Pin
GregJ717-Apr-18 5:32
MemberGregJ717-Apr-18 5:32 
AnswerRe: Application.Run C# equivalent Pin
Richard MacCutchan17-Apr-18 5:38
mveRichard MacCutchan17-Apr-18 5:38 

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.