I needed to take a stock XAML ‘image’ for a search icon from SyncFusion’s Metro Studio and rotate it about 75 degrees but I couldn’t use the rotate transformation code to do it because all of the required data had to be contained in the path description/geometry.
If you need a reference for how to do a normal transformation, try the Transforms Overview on MSDN.
Last year, I needed to set a logo for a new app I was developing using the ModernUI shell (CodePlex/GitHub). The logo is set in as a property of the ModernWindow as LogoData. LogoData is a raw path. So I couldn’t use anything except the XAML defined geometry to describe the logo. Continue reading Rotating a XAML object without using the Rotate Transformation
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
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 (v184.108.40.206).
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