Beispiel #1
0
        /// <summary>
        /// Handles the <c>Click</c> event of the add-right button.
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="e">The <see cref="RoutedEventArgs"/> instance containing the event data.</param>
        private void OnAddItemRightClick(object sender, RoutedEventArgs e)
        {
            ProductListBoxItem item = CreateItem();

            AnimatedDockPanel.SetDock(item, Dock.Right);
            this.listBox.Items.Insert(Math.Max(0, this.listBox.Items.Count - 1), item);
        }
 /// <summary>
 /// Handles the <c>Click</c> event of the dock-bottom button.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="RoutedEventArgs"/> instance containing the event data.</param>
 private void OnDockBottomButtonClick(object sender, RoutedEventArgs e)
 {
     AnimatedDockPanel.SetDock(this, Dock.Bottom);
 }
 /// <summary>
 /// Handles the <c>Click</c> event of the dock-right button.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="RoutedEventArgs"/> instance containing the event data.</param>
 private void OnDockRightButtonClick(object sender, RoutedEventArgs e)
 {
     AnimatedDockPanel.SetDock(this, Dock.Right);
 }