« first day (2351 days earlier)      last day (1798 days later) » 

1:07 AM
Why this doesn't throw a null exception ? What am I missing?
    MainViewModel mainViewModel = new MainViewModel(dummyModel, mainViewModelSettings, m_loggerFactory);
    MainWindow mainWindow = new MainWindow();
    mainWindow.DataContext = mainViewModel;
    this.MainWindow.Show();
I'm not assigning anything to this.MainWindow property. But I don't get an exception when I call Show() on it.
Is it assigned implicitly? If so, how can I control (or disable) that implicit assignment?
 
 
7 hours later…
8:14 AM
> MainWindow is automatically set with a reference to the first Window object to be instantiated in the AppDomain. Application.MainWindow Property
@NickAlexeev ^
 
8:27 AM
@Maverik me too, otherwise I have to dig into it by myself :-)
 
9:14 AM
Morning
 
9:24 AM
Hey
 
morning
 
 
1 hour later…
10:47 AM
Morning
 
Good morning :)
 
Hi Maverik
 
sir :) i think RSocket is something you'd enjoy reading about.. RSocket + DynamicData would go pretty nicely together
 
10:58 AM
Hmm. googles RSocket
Async communication among distributed systems
Dynamic data has been developed to remove the tedious code of dynamically maintaining collections.
Looking at sample...
ReadOnlyObservableCollection<TradeProxy> data;

var loader = myObservableTrades
    .Filter(trade => trade.Status == TradeStatus.Live) //filter on live trades only
    .Transform(trade => new TradeProxy(trade))         //create a proxy
    .Sort(SortExpressionComparer<TradeProxy>.Descending(t => t.Timestamp))
    .ObserveOnDispatcher()          //ensure operation is on the UI thread
    .Bind(out data)         //Populate the observable collection
    .DisposeMany()          //Dispose TradeProxy when no longer required
This is interesting: .ObserveOnDispatcher()
Under the hood, it's doing a little magic to prevent the issues we run into when something's not on the UI thread
Guessing DynamicData can be used in any C# app, not just for WPF
 
yup
also.. RSocket is the most recent star & well we've been talking about DynamicData for a while :D
 
11:58 AM
Love new tech!
 
 
3 hours later…
3:19 PM
@FoggyFinder Yuck. That smells.
 
 
2 hours later…
5:04 PM
0
Q: Binding a model property to TextBox validation message

Bill HeitstumanI am trying to bind a property of my model to a property on a TextBox control. When the property has a string value, the TextBox renders it like a validation message (red boarder and tool tip preferred). And when the property has a null or empty string, no validation message is rendered. It wo...

 
 
2 hours later…
7:07 PM
If anybody knows a good way to get content above a MahApps dialog overlay I would be very interested in hearing them :)
 
7:19 PM
use a Popup
oh. i am actually thinking of material design, not mah apps
 
7:33 PM
I've used MD here, not MA
Bradley, you can ask on their gitter: gitter.im/MahApps/MahApps.Metro
 
8:28 PM
Its actually in MD, but the MD dialogs are a mess
so I'm using the mahapps ones, just can't get the dialog into a container or otherwise under other elements
 
 
1 hour later…
9:58 PM
posted on March 28, 2019 by Mike Rousos - MSFT

I recently worked with a couple customers migrating applications to .NET Core that had to make code changes to workaround BeginInvoke and EndInvoke methods on delegates not being supported on .NET Core. In this post, we’ll look at why these APIs aren’t implemented for .NET Core, The post Migrating Delegate.BeginInvoke Calls for .NET Core appeared first on .NET Blog.

 

« first day (2351 days earlier)      last day (1798 days later) »