Ejemplo n.º 1
0
 private void InitAppNameTextBox(TextBoxWithPlaceholder appName)
 {
     appName.Location    = new Point(chooseApp.Location.X, 20);
     appName.Size        = new Size(clearAppPath.Location.X + clearAppPath.Width - chooseApp.Location.X, appPath.Height);
     appName.Placeholder = "Enter app name";
     appName.Font        = new Font("San Serif", 12, FontStyle.Regular);
     Controls.Add(_appName);
 }
Ejemplo n.º 2
0
 public MyItemComponentViewModel()
 {
     TextBoxWithPlaceholder  = new TextBoxWithPlaceholder();
     MyItemComponentsFiltred = new ObservableCollection <MyItemComponent> {
     };
     MyItemComponents        = new ObservableCollection <MyItemComponent>
     {
         new MyItemComponent {
             ImageName = "Resources/image1.png", FirstText = "Текст11", SecondText = "Текст12"
         },
         new MyItemComponent {
             ImageName = "Resources/image2.jpeg", FirstText = "Текст21", SecondText = "Текст22"
         },
         new MyItemComponent {
             ImageName = "Resources/image3.png", FirstText = "Текст31", SecondText = "Текст32"
         },
     };
     MyItemComponentsFiltred = MyItemComponents;
 }