private List <LaunchApplicationButton> GetApplicationButtons() { var userApplicationManager = new UserApplicationsManager(); var padding = this.ActualWidth * 0.05; var applicationsLaunchers = new List <LaunchApplicationButton>(); foreach (var application in userApplicationManager.GetUserApplications()) { var applicationButton = new LaunchApplicationButton() { UserApplication = application, Thickness = new Thickness(padding) }; applicationsLaunchers.Add(applicationButton); } return(applicationsLaunchers); }
private void AddApplicationbutton(Grid grid, GridPosition currentPosition, LaunchApplicationButton application) { Grid.SetRow(application, currentPosition.Y); Grid.SetColumn(application, currentPosition.X); grid.Children.Add(application); }