Exemple #1
0
 public MyBasicColorPickerPart()
 {
     this.ColorPicked += (o, e) =>
     {
         Command.CloseDropdownCommand cmd = new Command.CloseDropdownCommand();
         cmd.Execute(this);
     };
 }
Exemple #2
0
        private static void Nav_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            NavList nav = sender as NavList;

            Command.CloseDropdownCommand cmd = new Command.CloseDropdownCommand();
            if (e.AddedItems.Count > 0 && e.RemovedItems.Count > 0 && !e.RemovedItems[0].Equals(e.AddedItems[0]))
            {
                cmd.Execute(sender);
            }
        }
Exemple #3
0
        private static void Nav_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            NavList nav = sender as NavList;

            Command.CloseDropdownCommand cmd = new Command.CloseDropdownCommand();
            if (nav.IsLoaded)
            {
                cmd.Execute(sender);
            }
        }
 public MyBasicColorPickerPart()
 {
     this.SelectedColorChanged += (o, e) =>
     {
         if (!_firstArrangeAndMeasure)
         {
             Command.CloseDropdownCommand cmd = new Command.CloseDropdownCommand();
             cmd.Execute(this);
         }
         _firstArrangeAndMeasure = false;
     };
 }
        private void SettableRadioButton_Checked(object sender, RoutedEventArgs e)
        {
            var btn = sender as CustomControls.SettableRadioButton;

            if (btn.Tag != null)
            {
                this.ChartType = (FinancialChartType)btn.Tag;
            }

            if (this.ChartType != FinancialChartType.Renko &&
                this.ChartType != FinancialChartType.Kagi &&
                this.ChartType != FinancialChartType.PointAndFigure)
            {
                Command.CloseDropdownCommand cmd = new Command.CloseDropdownCommand();
                cmd.Execute(this);
            }
        }