コード例 #1
0
ファイル: RepeatButton.cs プロジェクト: qasimnaeem/CSHTML5
        /// <summary>
        /// Initializes a new instance of the RepeatButton class.
        /// </summary>
        public RepeatButton()
            : base()
        {
            // Set default style:
            this.INTERNAL_SetDefaultStyle(INTERNAL_DefaultButtonStyle.GetDefaultStyle());

#if UNCOMMENT_WHEN_CLICKMODE_HOVER_WILL_BE_IMPLEMENTED
#if MIGRATION
            base.MouseEnter += (s, e) => { };     // cf. note below
            base.MouseLeave += (s, e) => { };     // cf. note below
#else
            base.PointerEntered += (s, e) => { }; // Note: even though the logic for PointerEntered is located in the overridden method "OnPointerEntered" (below), we still need to register this event so that the underlying UIElement can listen to the HTML DOM event (cf. see the "Add" accessor of the "PointerEntered" event definition).
            base.PointerExited  += (s, e) => { }; // Note: even though the logic for PointerExited is located in the overridden method "OnPointerExited" (below), we still need to register this event so that the underlying UIElement can listen to the HTML DOM event (cf. see the "Add" accessor of the "PointerExited" event definition).
#endif
#endif
        }
コード例 #2
0
ファイル: Button.cs プロジェクト: xiongzhaoxu/CSHTML5
 public Button()
 {
     this.INTERNAL_SetDefaultStyle(INTERNAL_DefaultButtonStyle.GetDefaultStyle());
 }
コード例 #3
0
 // Summary:
 //     Initializes a new instance of the System.Windows.Controls.Primitives.DataGridColumnHeader
 //     class.
 /// <summary>
 /// Initializes a new instance of the System.Windows.Controls.Primitives.DataGridColumnHeader
 /// class.
 /// </summary>
 public DataGridColumnHeader()
 {
     this.INTERNAL_SetDefaultStyle(INTERNAL_DefaultButtonStyle.GetDefaultStyle()); //todo: use a specifically made Default Style for the DataGridColumnHeader
 }