예제 #1
0
        public int Add(string intake)
        {
            NRListBoxItem TMP_ITEM = new NRListBoxItem();

            TMP_ITEM.NContainer = this;
            TMP_ITEM.Content    = intake;
            Items.Add(TMP_ITEM);
            return(Items.Count);
        }
예제 #2
0
파일: NRListBoxItem.cs 프로젝트: nirex0/NDC
 private void NLBI_SEL(object sender, RoutedEventArgs e)
 {
     foreach (var item in NContainer.Items)
     {
         NRListBoxItem tmpItem = item as NRListBoxItem;
         NDC.NStyle.Transition.Smooth.ListBoxItem.BorderBrush(tmpItem, Container.Colors.BACK, 250);
         NDC.NStyle.Transition.Smooth.ListBoxItem.Background(tmpItem, Container.Colors.BACK, 250);
         NDC.NStyle.Transition.Smooth.ListBoxItem.Foreground(tmpItem, Container.Colors.MAIN, 250);
     }
     NDC.NStyle.Transition.Smooth.ListBoxItem.BorderBrush(this, Container.Colors.MAIN, 250);
     NDC.NStyle.Transition.Smooth.ListBoxItem.Background(this, Container.Colors.MAIN, 250);
     NDC.NStyle.Transition.Smooth.ListBoxItem.Foreground(this, Container.Colors.BACK, 250);
 }