Overview
How to enable keyboard shortcuts via the .NET adapter.
Ctrl + + (Zoom In)
Ctrl + Shift + + (Zoom In)
Ctrl + - (Zoom Out)
Ctrl + Shift + - (Zoom Out)
Ctrl + Scroll (Zoom In & Out)
Ctrl + 0 (Restore to 100%)
Example
You can use the AcceleratorKeyOptions Class to enable the ability to zoom via keyboard shortcuts.
This could look something like below:
var appOptions = new ApplicationOptions ("application-name", "application-uuid", "http://google.com");
appOptions.MainWindowOptions.AutoShow = true;
appOptions.MainWindowOptions.Frame = true;
appOptions.MainWindowOptions.Resizable = true;
appOptions.MainWindowOptions.Name = "Test Window";
appOptions.MainWindowOptions.AcceleratorKeys = new AcceleratorKeyOptions {
Zoom = true
};
var application = runtime.CreateApplication (appOptions);
Comments
0 comments
Please sign in to leave a comment.