AppStore.AppDetailsPage.detailsShowMore_Click C# (CSharp) Method

detailsShowMore_Click() private method

Executed when the more button is tapped in the details section. It toggles between showing complete and less details of the app.
private detailsShowMore_Click ( object sender, RoutedEventArgs e ) : void
sender object Object Sender is a parameter called Sender that contains a reference to the control/object that raised the event.
e Windows.UI.Xaml.RoutedEventArgs RoutedEventArgs e is a parameter called e that contains the event data, see the RoutedEventArgs MSDN page for more information.
return void
        private void detailsShowMore_Click(object sender, RoutedEventArgs e)
        {
            if (txtShowMore)
            {
                txtShowMore = false;
                txtAppDetails.Text=(app.Description.Substring(0, 50))+"...";
                detailsShowMore.Content="more";
            }
            else
            {
                txtShowMore = true;
                txtAppDetails.Text = (app.Description);
                detailsShowMore.Content = "less";
            }
        }