Click here to Skip to main content
15,860,972 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Passing Data From a window to the mainview(shellViewModel) using EventAggregator - WPF Caliburn.Micro Pin
Dwayne Barsotta27-Jan-18 19:47
Dwayne Barsotta27-Jan-18 19:47 
GeneralRe: Passing Data From a window to the mainview(shellViewModel) using EventAggregator - WPF Caliburn.Micro Pin
Gerry Schmitz28-Jan-18 8:28
mveGerry Schmitz28-Jan-18 8:28 
QuestionWPF ListCollectionView CustomSort - how to turn off live sorting Pin
Jonas Thor27-Jan-18 1:16
Jonas Thor27-Jan-18 1:16 
AnswerRe: WPF ListCollectionView CustomSort - how to turn off live sorting Pin
Gerry Schmitz27-Jan-18 12:19
mveGerry Schmitz27-Jan-18 12:19 
GeneralRe: WPF ListCollectionView CustomSort - how to turn off live sorting Pin
Jonas Thor31-Jan-18 4:00
Jonas Thor31-Jan-18 4:00 
GeneralRe: WPF ListCollectionView CustomSort - how to turn off live sorting Pin
Gerry Schmitz31-Jan-18 6:03
mveGerry Schmitz31-Jan-18 6:03 
QuestionDeploy desktop app with Target .net framwork 4 using Visual stuidio 2017 Pin
mhemant23-Jan-18 22:56
mhemant23-Jan-18 22:56 
QuestionStrange RadioButton Binding Problem Pin
Kevin Marois20-Jan-18 9:55
professionalKevin Marois20-Jan-18 9:55 
I've got 4 RadioButtons:
<StackPanel Orientation="Vertical">

<pre>
<RadioButton Content="Labor/Equipment"
        GroupName="builderTypeEntry"
        IsChecked="{Binding BuilderType, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>

<RadioButton Content="Labor/Equipment &amp; Hardware"
        GroupName="builderTypeEntry"
        IsChecked="{Binding BuilderType, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>

<RadioButton Content="Labor/Equipment, Hardware, &amp; Trusses"
        GroupName="builderTypeEntry"
        IsChecked="{Binding BuilderType, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>

<RadioButton Content="Labor/Equipment, Hardware, Trusses, &amp; Lumber"
        GroupName="builderTypeEntry"
        IsChecked="{Binding BuilderType, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>



They around bound to a property on the VM:
private int _BuilderType;
public int BuilderType
{
    get { return _BuilderType; }
    set
    {
        if (_BuilderType != value)
        {
            _BuilderType = value;
            RaisePropertyChanged("BuilderType");
        }
    }
}
When I toggle thge buttons the property's Setter is being called twice - the first time sets it to 1 regardless of what button I click. The second time sets it back to 0.

On the first call the call stack only shows the call to the setter. The second call shows to RaisePropertyChanged, and then back to the setter again.

This is really bizarre. I can't figure this out. Anyone see what's wrong here??
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.

AnswerRe: Strange RadioButton Binding Problem Pin
Richard Deeming22-Jan-18 8:16
mveRichard Deeming22-Jan-18 8:16 
QuestionWPF Desktop client on Win XP Pin
mhemant18-Jan-18 1:20
mhemant18-Jan-18 1:20 
AnswerRe: WPF Desktop client on Win XP Pin
Jochen Arndt18-Jan-18 3:08
professionalJochen Arndt18-Jan-18 3:08 
QuestionWPF ComboBox Separator Style Problem Pin
Kevin Marois15-Jan-18 9:50
professionalKevin Marois15-Jan-18 9:50 
QuestionDividing a TextBox into columns Pin
Dwayne Barsotta6-Jan-18 16:47
Dwayne Barsotta6-Jan-18 16:47 
AnswerRe: Dividing a TextBox into columns Pin
Mycroft Holmes6-Jan-18 21:14
professionalMycroft Holmes6-Jan-18 21:14 
GeneralRe: Dividing a TextBox into columns Pin
Dwayne Barsotta7-Jan-18 3:27
Dwayne Barsotta7-Jan-18 3:27 
GeneralRe: Dividing a TextBox into columns Pin
Mycroft Holmes7-Jan-18 10:21
professionalMycroft Holmes7-Jan-18 10:21 
GeneralRe: Dividing a TextBox into columns Pin
Dwayne Barsotta27-Jan-18 6:24
Dwayne Barsotta27-Jan-18 6:24 
AnswerRe: Dividing a TextBox into columns Pin
Gerry Schmitz7-Jan-18 7:26
mveGerry Schmitz7-Jan-18 7:26 
AnswerRe: Dividing a TextBox into columns Pin
Kenneth Haugland7-Jan-18 17:41
mvaKenneth Haugland7-Jan-18 17:41 
AnswerRe: Dividing a TextBox into columns Pin
Dwayne Barsotta27-Jan-18 6:39
Dwayne Barsotta27-Jan-18 6:39 
GeneralRe: Dividing a TextBox into columns Pin
Gerry Schmitz27-Jan-18 12:47
mveGerry Schmitz27-Jan-18 12:47 
QuestionProblems pausing and restarting animations in XAML Pin
Kenneth Haugland6-Jan-18 0:52
mvaKenneth Haugland6-Jan-18 0:52 
AnswerRe: Problems pausing and restarting animations in XAML Pin
Gerry Schmitz6-Jan-18 7:48
mveGerry Schmitz6-Jan-18 7:48 
GeneralRe: Problems pausing and restarting animations in XAML Pin
Kenneth Haugland6-Jan-18 8:09
mvaKenneth Haugland6-Jan-18 8:09 
GeneralRe: Problems pausing and restarting animations in XAML Pin
Gerry Schmitz6-Jan-18 8:26
mveGerry Schmitz6-Jan-18 8:26 

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.