'宣言 Public Event DropDownOpened As RoutedEventHandler
public event RoutedEventHandler DropDownOpened
イベント ハンドラが、このイベントに関連するデータを含む、RoutedEventArgs 型の引数を受け取りました。次の RoutedEventArgs プロパティには、このイベントの固有の情報が記載されます。
プロパティ | 解説 |
---|---|
Handled | Gets or sets a value that indicates the present state of the event handling for a routed event as it travels the route. |
OriginalSource | Gets the original reporting source as determined by pure hit testing, before any possible System.Windows.RoutedEventArgs.Source adjustment by a parent class. |
RoutedEvent | Gets or sets the System.Windows.RoutedEventArgs.RoutedEvent associated with this System.Windows.RoutedEventArgs instance. |
Source | Gets or sets a reference to the object that raised the event. |
Imports Infragistics.Windows.Controls Imports System.Windows.Controls.Primitives Imports System.Diagnostics Imports System.Windows Class Window1 Public Sub New() ' This call is required by the Windows Form Designer. InitializeComponent() ' Add any initialization after the InitializeComponent() call. ' Allow the tab control to toggle between its minimized and normal state Me.XamTabControl1.AllowMinimize = True ' Set the initial state of the control to be minimized Me.XamTabControl1.IsMinimized = True ' Set the height of the tab item conent when it is dropped down Me.XamTabControl1.TabItemContentHeight = 100 ' specify an animation to be used when dropping down the tab content area Me.XamTabControl1.DropDownAnimation = PopupAnimation.Slide End Sub Private Sub XamTabControl1_DropDownClosed(ByVal sender As Object, ByVal e As RoutedEventArgs) Handles XamTabControl1.DropDownClosed Debug.Assert(Me.XamTabControl1.IsDropDownOpen = False) End Sub Private Sub XamTabControl1_DropDownOpened(ByVal sender As Object, ByVal e As RoutedEventArgs) Handles XamTabControl1.DropDownOpened Debug.Assert(Me.XamTabControl1.IsDropDownOpen = True) End Sub End Class
using Infragistics.Windows.Controls; using System.Diagnostics; using System.Windows.Controls.Primitives; public partial class Window1 : Window { public Window1() { InitializeComponent(); // Allow the tab control to toggle between its minimized and normal state this.xamTabControl1.AllowMinimize = true; // Set the initial state of the control to be minimized this.xamTabControl1.IsMinimized = true; // Set the height of the tab item conent when it is dropped down this.xamTabControl1.TabItemContentHeight = 100; // specify an animation to be used when dropping down the tab content area this.xamTabControl1.DropDownAnimation = PopupAnimation.Slide; // wire the dropdown opened and closed events this.xamTabControl1.DropDownOpened += new RoutedEventHandler(xamTabControl1_DropDownOpened); this.xamTabControl1.DropDownClosed += new RoutedEventHandler(xamTabControl1_DropDownClosed); } private void xamTabControl1_DropDownOpened(object sender, RoutedEventArgs e) { Debug.Assert(this.xamTabControl1.IsDropDownOpen == true); } private void xamTabControl1_DropDownClosed(object sender, RoutedEventArgs e) { Debug.Assert(this.xamTabControl1.IsDropDownOpen == false); } }