Click here to Skip to main content
15,508,892 members
Home / Discussions / WPF
   

WPF

 
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
Nick 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 
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 
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 2:14
mveRichard Deeming24-Apr-18 2:14 
QuestionMouseEventArgs.CLicks in WPF Pin
Enobong Adahada20-Apr-18 7:33
Enobong 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
Enobong 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
GregJ717-Apr-18 5:32 
AnswerRe: Application.Run C# equivalent Pin
Richard MacCutchan17-Apr-18 5:38
mveRichard MacCutchan17-Apr-18 5:38 
GeneralRe: Application.Run C# equivalent Pin
GregJ717-Apr-18 7:26
GregJ717-Apr-18 7:26 
GeneralRe: Application.Run C# equivalent Pin
Richard MacCutchan17-Apr-18 7:38
mveRichard MacCutchan17-Apr-18 7:38 
GeneralRe: Application.Run C# equivalent Pin
GregJ717-Apr-18 8:59
GregJ717-Apr-18 8:59 
GeneralRe: Application.Run C# equivalent Pin
Richard MacCutchan17-Apr-18 9:47
mveRichard MacCutchan17-Apr-18 9: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.