Esempio n. 1
0
 /// <summary>
 /// Invoked when expander is collapsed.
 /// </summary>
 /// <param name="sender">The Sender</param>
 /// <param name="e">Expander Collapsed Event Args</param>
 private void Expander_Collapsed(object sender, ExpandedAndCollapsedEventArgs e)
 {
     // Set default value for header content after collapsed.
     if (sender != null && sender is SfExpander)
     {
         SetDefaultValue(sender as SfExpander);
     }
 }
Esempio n. 2
0
        /// <summary>
        /// Invoked when selection is changed.
        /// </summary>
        /// <param name="sender">The Sender</param>
        /// <param name="e">Selection Changed Event Args</param>
        private void Expander_Expanded(object sender, ExpandedAndCollapsedEventArgs e)
        {
            // Set default value for header content
            SetDefaultValue();

            // Set animation for header content.
            if (sender != null && sender is SfExpander)
            {
                SetAnimation(sender as SfExpander);
            }

            if (this.Command == null)
            {
                return;
            }

            if (this.Command.CanExecute(CommandParameter))
            {
                this.Command.Execute(CommandParameter);
            }
        }
        private void Bindable_Expanded(object sender, ExpandedAndCollapsedEventArgs e)
        {
            var index = e.Index;
            var item  = Accordion.Items[index];

            if (item.ClassId == "Item1")
            {
                App.Current.MainPage.DisplayAlert("Informtion", "Accordion Item1 Expanded", "Ok");
            }
            else if (item.ClassId == "Item2")
            {
                App.Current.MainPage.DisplayAlert("Informtion", "Accordion Item2 Expanded", "Ok");
            }
            else if (item.ClassId == "Item3")
            {
                App.Current.MainPage.DisplayAlert("Informtion", "Accordion Item3 Expanded", "Ok");
            }
            else if (item.ClassId == "Item4")
            {
                App.Current.MainPage.DisplayAlert("Informtion", "Accordion Item4 Expanded", "Ok");
            }
        }
 private void Bindable_Collapsed(object sender, ExpandedAndCollapsedEventArgs e)
 {
 }