Click here to Skip to main content
15,881,852 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: WPF NIC counters Pin
Gerry Schmitz2-May-18 11:27
mveGerry Schmitz2-May-18 11:27 
QuestionMagnify shader effect Pin
Nick Hallas1-May-18 10:33
Nick Hallas1-May-18 10:33 
AnswerRe: Magnify shader effect Pin
Gerry Schmitz2-May-18 11:39
mveGerry Schmitz2-May-18 11:39 
QuestionAssign Collection Items In XAML Pin
Kevin Marois23-Apr-18 8:40
professionalKevin Marois23-Apr-18 8:40 
AnswerRe: Assign Collection Items In XAML Pin
Richard Deeming23-Apr-18 8:58
mveRichard Deeming23-Apr-18 8:58 
GeneralRe: Assign Collection Items In XAML Pin
Kevin Marois23-Apr-18 9:25
professionalKevin Marois23-Apr-18 9:25 
AnswerRe: Assign Collection Items In XAML Pin
Maciej Los23-Apr-18 9:56
mveMaciej Los23-Apr-18 9:56 
GeneralRe: Assign Collection Items In XAML Pin
Kevin Marois23-Apr-18 10:00
professionalKevin Marois23-Apr-18 10:00 
I'm doing something wrong here. The Getter is called, but neither the Setter nor the callback arn't being called.

My DP
public static readonly DependencyProperty RightKeysProperty =
    DependencyProperty.RegisterAttached("InternalRightKeys",
    typeof(List<string>),
    typeof(AppSecurity),
    new UIPropertyMetadata(new List<string>(),
            new PropertyChangedCallback(OnRightKeysChanged)));

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

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

private static void OnRightKeysChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e)
{
}

My XAML
<TextBox Grid.Row="1"
            Grid.Column="1"
            Text="{Binding CreditLimit, Mode=TwoWay}"
            Width="100"
            HorizontalAlignment="Left"
            Margin="10">

    <sec:AppSecurity.RightKeys>
        <sys:String>Item 1</sys:String>
        <sys:String>Item 2</sys:String>
    </sec:AppSecurity.RightKeys>

</TextBox>

Again, nothing is being called. I get no errors or messages in output
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.

GeneralRe: Assign Collection Items In XAML Pin
Richard Deeming24-Apr-18 1:14
mveRichard Deeming24-Apr-18 1:14 
QuestionMouseEventArgs.CLicks in WPF Pin
Enobong Adahada20-Apr-18 6:33
Enobong Adahada20-Apr-18 6:33 
AnswerRe: MouseEventArgs.CLicks in WPF Pin
Gerry Schmitz20-Apr-18 13:18
mveGerry Schmitz20-Apr-18 13:18 
GeneralRe: MouseEventArgs.CLicks in WPF Pin
Enobong Adahada21-Apr-18 13:08
Enobong Adahada21-Apr-18 13:08 
QuestionField Level Rights Pin
Kevin Marois18-Apr-18 7:38
professionalKevin Marois18-Apr-18 7:38 
AnswerRe: Field Level Rights Pin
Gerry Schmitz18-Apr-18 7:45
mveGerry Schmitz18-Apr-18 7:45 
GeneralRe: Field Level Rights Pin
Kevin Marois18-Apr-18 8:14
professionalKevin Marois18-Apr-18 8:14 
GeneralRe: Field Level Rights Pin
Gerry Schmitz18-Apr-18 8:43
mveGerry Schmitz18-Apr-18 8:43 
GeneralRe: Field Level Rights Pin
Kevin Marois18-Apr-18 8:54
professionalKevin Marois18-Apr-18 8:54 
GeneralRe: Field Level Rights Pin
Gerry Schmitz18-Apr-18 9:50
mveGerry Schmitz18-Apr-18 9:50 
AnswerRe: Field Level Rights Pin
Mycroft Holmes18-Apr-18 14:31
professionalMycroft Holmes18-Apr-18 14:31 
QuestionApplication.Run C# equivalent Pin
GregJ717-Apr-18 4:32
GregJ717-Apr-18 4:32 
AnswerRe: Application.Run C# equivalent Pin
Richard MacCutchan17-Apr-18 4:38
mveRichard MacCutchan17-Apr-18 4:38 
GeneralRe: Application.Run C# equivalent Pin
GregJ717-Apr-18 6:26
GregJ717-Apr-18 6:26 
GeneralRe: Application.Run C# equivalent Pin
Richard MacCutchan17-Apr-18 6:38
mveRichard MacCutchan17-Apr-18 6:38 
GeneralRe: Application.Run C# equivalent Pin
GregJ717-Apr-18 7:59
GregJ717-Apr-18 7:59 
GeneralRe: Application.Run C# equivalent Pin
Richard MacCutchan17-Apr-18 8:47
mveRichard MacCutchan17-Apr-18 8:47 

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.