Created
March 12, 2012 16:40
-
-
Save bryanhunter/2023228 to your computer and use it in GitHub Desktop.
Caliburn.Micro conventions for Actipro controls
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using ActiproSoftware.Windows.Controls.Ribbon.Controls; | |
using ActiproSoftware.Windows.Controls.Ribbon.Controls.Primitives; | |
using Caliburn.Micro; | |
namespace SampleApp | |
{ | |
public static class CaliburnMicroConventionsForActipro | |
{ | |
public static void AddConventions() | |
{ | |
// Without this the default trigger is "Loaded" instead of "Click" | |
ConventionManager.AddElementConvention<Button>(ControlBase.LabelProperty, "DataContext", "Click"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment