There isn’t a native ToolBarTray adaptor built into the Prism library. Creating an adapter is only a matter of learning the secret handshake.
It takes three parts to get an adaptor to work. The first part is the adaptor itself. The second is wiring it into the bootstrapper. The third part is the XAML to define the region. Below are samples of all three.
Continue reading ToolBarTray Adapter
As I build up the next version of my Carbon framework, I have been researching everything and anything that might help make my life and my teammates’ lives easier. To that end, I hit upon Aspect-Oriented Programming (again). I had seen it before but for whatever reason it failed to resonate with me. This time, I hit a power chord by way of PostSharp.
Continue reading Aspect-Oriented Programming
You might think I’m kidding but one the program owners that I work with has a strict “Do not talk to Ivan” policy for her team.
Simply put: Interruptions kill progress.
Programmers have to mentally load extremely complex mental models to do our jobs. There are a million and one little things that I’m trying to keep “in mind” when I write code. Stuff I write ends up in dozens of apps. Those apps help drive a multi-billion dollar business. (58 billion, at the last reporting.) So do you really want me to answer your question about highlight colors in a editable cell or would you like for me to keep my mind on writing the validation logic? Continue reading Marshmallow Test
If you installed the Windows 10 Technical Preview (like I did), you might want to roll back to Windows 7. As will all preview builds, there isn’t an easy way to do that. Microsoft has stepped up and provided a mechanism to rollback your Win10 TP install to a regular Win7 install.
Continue reading Win7 Re-install Media
This week has been a killer in some ways.
I went into the office on Monday. I walked into a project in crisis. The features were there but the performance wasn’t. The BAs screwed up by not pushing the users to do a full mock-cycle. When the forecasting cycle rolled around last week, some of our users opened the app then closed it without doing any work in the tool. Users complained that the pivot grids were too slow to update after an edit. Performance in production was crap.
“Umm… Why did we hear about this issue over a month ago at UAT or during last-months mock-cycle?” Heads are starting to roll on that side of the fence.
Where am I going with this? Continue reading Slow down!
I’m building up a sample app that leverages the MahApps.Metro libraries. One of the challenges is setting the AppTheme and Accent colors dynamically. I looked through more than a few online solutions and none of them worked for me. Usually, the syntax was from an earlier version and didn’t match the ThemeManager object that I downloaded from NuGet (v22.214.171.124).
After comparing the sample app (v4.5) against my code in VS, I noticed the results from ThemeManager.DetectAppStyle() was always null in my app and valid in the sample app. Continue reading Setting Theme/Accent with MahApps.Metro
I have three different projects converging. They all need a more feature rich base class in the business layer.
I haven’t settled on a name for this base class. EntityBase? BusinessBase? BusinessObject? I expect something will stick in the near future.
You should notice that most of these interfaces are pre-existing Microsoft interfaces. ISupportUndo and ITrackStatus are inspired by Rockford Lhotka’s CSLA framework. The details are changed, but I really like the syntax to make the interface more readable. “I support undo.” I can’t think of a better way to express what the interface does. Can you?
I’m still working on the implementation details. I’ll share more once I have a stable sample app.