Exemple #1
0
 /// <summary>
 /// Create an instance of the control type.
 /// </summary>
 /// <param name="layout">The layout information.</param>
 /// <param name="top">Top position within layout space.</param>
 /// <param name="left">Left position within layout space.</param>
 /// <param name="height">Bottom position within layout space.</param>
 /// <param name="width">Right position within layout space.</param>
 /// <param name="isVisible">Is the control initially visible?</param>
 /// <returns>The control.</returns>
 protected abstract TControl CreateActionControl(ActionKeyLayout layout, double left, double top, double width, double height, bool isVisible);
Exemple #2
0
        /// <summary>
        /// Create an action key.
        /// </summary>
        /// <param name="layout">The key layout.</param>
        /// <param name="top">Top position within layout space.</param>
        /// <param name="left">Left position within layout space.</param>
        /// <param name="height">Bottom position within layout space.</param>
        /// <param name="width">Right position within layout space.</param>
        public void CreateActionKey(ActionKeyLayout layout, double left, double top, double width, double height)
        {
            var control = CreateActionControl(layout, left, top, width, height, isBindingDefault);

            Bind(control);
        }