Esempio n. 1
0
        private void LayoutRoot_MouseRightButtonDown(object sender, MouseButtonEventArgs e)
        {
            ClientCommon.Common cmnClass = new ClientCommon.Common();
            Point p = e.GetSafePosition(cmnClass.GetParentObject <Grid>(this, "LayoutRoot"));

            ((Ewav.DragCanvas)VisualTreeHelper.GetParent(this)).GadgetNameOnRightClick = MyControlName;
            ((Ewav.DragCanvas)VisualTreeHelper.GetParent(this)).StrataList             = null;
            ((Ewav.DragCanvas)VisualTreeHelper.GetParent(this)).SelectedGadget         = this;
            cmnClass.UpdateZOrder(this, true, cmnClass.GetParentObject <Grid>(this, "LayoutRoot"));
        }
Esempio n. 2
0
        private void LayoutRoot_MouseRightButtonDown(object sender, MouseButtonEventArgs e)
        {
            Point p = e.GetSafePosition(this.common.GetParentObject <Grid>(this, "LayoutRoot"));

            ((Ewav.DragCanvas)VisualTreeHelper.GetParent(this)).GadgetNameOnRightClick = this.MyControlName; //"FrequencyControl";
            ((Ewav.DragCanvas)VisualTreeHelper.GetParent(this)).SelectedGadget         = this;
            common.UpdateZOrder(this, true, common.GetParentObject <Grid>(this, "LayoutRoot"));

            //  e.Handled = true;
        }
Esempio n. 3
0
 /// <summary>
 /// Updates the Zorder
 /// </summary>
 /// <param name="element"></param>
 /// <param name="bringToFront"></param>
 private void UpdateZOrder(UIElement element, bool bringToFront)
 {
     cmnClass.UpdateZOrder(element, bringToFront, applicationViewModel.LayoutRoot);
 }