private void btnEdit_Click(object sender, RoutedEventArgs e)
        {
            Storyboard sb;
            if (_isExpanded != true)
            {
                sb = this.FindResource("gridin") as Storyboard;
                sb.Begin(this);
                _isExpanded = !_isExpanded;
            }

            var selectedActivity = dcLeadActivitiesList.SelectedItem as ActivityView;

            if (selectedActivity != null)
            {
                LeadActivityForm.ActivityId = selectedActivity.ActivityId;
                LeadActivityForm.LeadId = LeadId;

                var page = new LeadActivityForm();
                navigation.Navigate(page);
            }
            else
            {
                NullMessage();
            }
        }
        private void btnAdd_Click(object sender, RoutedEventArgs e)
        {
            LeadActivityForm.ActivityId = 0;
            LeadActivityForm.LeadId = LeadId;

            Storyboard sb;
            if (_isExpanded != true)
            {
                sb = this.FindResource("gridin") as Storyboard;
                sb.Begin(this);
                _isExpanded = !_isExpanded;
            }

            var page = new LeadActivityForm();
            navigation.Navigate(page);
        }