src/FingersDance.Control.SessionInput/UserControlListSession.xaml.cs
changeset 153 3636bb5f4b67
parent 147 1a5da89daee9
child 182 25b49d4f1635
equal deleted inserted replaced
152:46577fd0a294 153:3636bb5f4b67
    33 
    33 
    34         private void OpenSessions(List<Session> sessions)
    34         private void OpenSessions(List<Session> sessions)
    35         {
    35         {
    36             CustomListBoxItem Contener = new CustomListBoxItem();
    36             CustomListBoxItem Contener = new CustomListBoxItem();
    37             Contener.Name = "New Session";
    37             Contener.Name = "New Session";
    38             Label l = new Label();
    38             UserControlCustomLabel l = new UserControlCustomLabel("New Session");
    39             l.Content = "New Session";
       
    40             Contener.Content = l;
    39             Contener.Content = l;
    41             stackPanel.Children.Add(Contener);
    40             stackPanel.Children.Add(Contener);
    42             Contener.ContactTapGesture += Item_ContactTapGesture;
    41             Contener.ContactTapGesture += Item_ContactTapGesture;
    43             foreach (Session elt in sessions)
    42             foreach (Session elt in sessions)
    44             {
    43             {
    45                 Contener = new CustomListBoxItem();
    44                 Contener = new CustomListBoxItem();
    46                 Contener.Name = elt.Name;
    45                 Contener.Name = elt.Name;
    47                 l = new Label();
    46                 l = new UserControlCustomLabel(elt.Name);
    48                 l.Content = elt.Name;
       
    49                 Contener.Content = l;
    47                 Contener.Content = l;
    50                 stackPanel.Children.Add(Contener);
    48                 stackPanel.Children.Add(Contener);
    51                 Contener.ContactTapGesture += Item_ContactTapGesture;
    49                 Contener.ContactTapGesture += Item_ContactTapGesture;
    52             }
    50             }
    53         }
    51         }