« first day (1012 days earlier)      last day (3137 days later) » 

12:39 AM
No, I didn't...
How do you switch?
I'm guessing you've headed to bed by now.
 
1:30 AM
Never mind; figured it out :)
 
 
1 hour later…
2:54 AM
hi all
 
 
6 hours later…
8:53 AM
Woooo.. OnePlus 2 Invites are on!
 
 
1 hour later…
10:10 AM
what's OnePlus ?
store for HTC phone accessories ?
 
Good morning
What is the reason that OnPropertyChanged("MyProperty") would not invoke the get {} on the property?
This particular case, is a combo box where its bound to DisplayMemberPath. DisplayMemberPath is what updates ... Oh maybe I need to property Update the main binding
Ill try that
No :(
 
show us some code maybe
(good morning)
 
Frans I could show you code but theres lots of it :D
Here:
 
10:26 AM
in a gist
maybe
 
PropertyUpdate for this property:

DisplayMemberPath="DisplayURL"
Does not invoke the getter of DisplayURL
 
well maybe the object on which you raise OnPropertyChanged is not the object bound to the combo
 
That would be Occam's Razor for sure :)
Is there any reason why DisplayMemberPath wouldn't be two way binding?
I put a breakpoint on OnPropertyUpdate("DisplayURL"); and a breakpoint in DisplayURL get { ... } and that never gets called
Doesn't matter what object its calling it on
 
Does any one know if Visual Studio 2015 Community supports plug ins like Resharper and TortoiseSVN?
 
10:57 AM
@Asheh hum.. yes it matters ?
if you're object isn't bound, no one is going to call the getter
 
it must be bound as the combo box still works?
 
it might not be the same instance
 
 
2 hours later…
12:58 PM
@franssu ive reproduced the bug in a simple project
coudl be somthing with RadAutoCompleteBox
yup it is
 
eheh
 
Side by side, bound to the same data. I modify "DisplayMemberPath"
Combo box the display value changes, RadAutoCompleteBox it doesn't
Bug?
 
not really a bug but rather a lack of feature
but they shouldn't offer a DisplayMemberPath property if they don't bind to it
 
1:18 PM
I think its a bug man, Support ticket sent
At least now I can move onto somthing else!
 
2:16 PM
Hi what happens here.
    public  void GetWebAPIVLOGData() {
        try
        {
            var response =  client.GetAsync("api/faseloggerapi/getvlogdata").Result;
            if (response.IsSuccessStatusCode)
            {
                var result = JsonConvert.DeserializeObject<ResultExt>(response.Content.ReadAsStringAsync().Result);
            }
        }
        catch (WebException e) {

        }

    }
the debugger , the control doesn't comes back.
I can access that web api through browser
 
Which line never returns?
 
 
3 hours later…
5:37 PM
I think this is the first time I've ever run across this.
I have a vm property that a color picker is bound to.
public System.Windows.Media.Color SelectedVKBodyBackgroundColor
{
    get
    {
        byte R = 0, G = 0, B = 0, A = 0;
        Shared.Utils.IntToRGBA(Settings.userInterface.HtmlVirtBKSettings.BodyBackgroundColor, ref R, ref G, ref B, ref A);
        return System.Windows.Media.Color.FromArgb(A, R, G, B);
    }
    set
    {
        Settings.userInterface.HtmlVirtBKSettings.BodyBackgroundColor = Shared.Utils.RGBAToInt(value.R, value.G, value.B, value.A);
        OnPropertyChanged();
    }
}
I'm not getting notified when the model changes.
I know what I need to do.
In this:
    public KioSettings Settings
    {
        get
        {
            return Shared.Globals.Settings;
        }
        set
        {
            Shared.Globals.Settings = value;
            OnPropertyChanged();
        }
    }
OnPropertyChanged("SelectedVKBodyBackgroundColor");
.... in the setter.
 
 
1 hour later…
7:07 PM
does your "global" settings property implement INPC?
 
7:29 PM
Yep. We're good now.
I did have a question for you about persistence though.
Actually - two scenarios.
1) If databinding to the model, and changes update the model immediately, when does a save operation occur?
2) If databinding to the model, but you want "dialog" behavior (think OK/Cancel), wow do you preserve the state and roll it back?
For #2 - it almost feels like you need to clone the object.
Then set the original object ref to the cloned object ref on ok, else throw it out.
For #1 - in the current project, we're using a timer. We've implemented a dirty flag, and if any part of the data structure goes dirty, the timer commits the entire data structure to disk. Which certainly doesn't work for database operations.
@ReedCopsey ^ when you have a moment.
@BradleyDotNET Curious on your thoughts as well.
s/wow/how above.
 
for 1), it depends on the behavior you want
I'll typically have a separate VM, with it's own "cloning", and copy to model/persist on OK
I tend to avoid trying to "roll back" - I find it's easier to maintain if you clone then copy the changes over as needed
for 1 - if persistance is cheap, I've often just had it persist immediately
 
Do you deep clone?
 
Saving on change is nicer imo
nicer ux and simpler code
 
Or MemberwiseClone()
 
I typically (ie: almost always) write my own copy routines
 
7:41 PM
if you want deep clone, serialize/deseralize
 
it's a bit of code up front, but much easier to maintain (and safer in the long run)
and I only copy properties my UI will actually show
 
undo/syncing is hairier
 
whcih means it really isn't going to be too nasty
 
if you have save & undo you need to track navigation etc
messy code & messy ux
 
one sec. I'll be back to continue this convo.
two coworkers in office.
 
8:06 PM
So.. I have the following in my window xaml class:
<i:Interaction.Behaviors>
    <b:ActivateBehavior Activated="{Binding Activated, Mode=TwoWay}"/>
</i:Interaction.Behaviors>
And I also don't know how to format code in chat. .. Back on point. How do I put that into a style that I have for all my windows?
 
ctrl + k formats
 
Why two way binding for an activation behavior?
 
put it in a <Style TargetType={x:Type Window}...?
 
@ReedCopsey Not sure.. That's what the code I was copying did. Haha
@JohanLarsson That's what I'm doing, but it doesn't seem to be working.
 
Wow. That took way too long.
So - back to persistence. I'm considering going with the OK/Cancel functionality because our customers are going to want it.
Back to the cloning question. It feels like I need to deep clone.
Which, like Johan said... sure, I can just serialize/deserialize.
And Reed - I'm guessing that when you said you write your own copy routines, you mean that you're writing your own deep cloning functionality.
Why not just always serialize/deserialize via json or some other lib?
In the situation where all data changes to the model are immediate, when do you ask the db layer to persist?
Obviously, you don't want to do it on every key down.
 
8:30 PM
depends on what you want
but you can do it every value change, if you need to
or after every validation
 
9:05 PM
I concur with Reed :)
 
 
1 hour later…
10:14 PM
posted on July 28, 2015 by Immo Landwerth [MSFT]

This post was written by Sidharth Nabar, Program Manager on the Windows networking team. At Build 2015, we announced that .NET Core 5 is the new version of .NET for developers writing Universal Windows Platform (UWP) apps. The set of networking APIs available for developers in .NET Core 5 is an evolution from the set that was available for Windows Store app developers in Windows 8.1 (API refer

 
10:57 PM
posted on July 28, 2015 by Rich Lander [MSFT]

A code generation (AKA "codegen") issue in RyuJIT in the .NET Framework 4.6 has been discovered that affects a calling pattern called Tail Call Optimization. The RyuJIT team has fixed the issue and has started the process of producing a .NET Framework 4.6 patch that will be freely available for anyone to download and install. There is a workaround for this issue, with the .NET Framework 4.6. I

 

« first day (1012 days earlier)      last day (3137 days later) »