Example #1
0
 public override object Render()
 {
     return
         (New <StackPanel>(NewProps.Alignment(HorizontalAlignment.Center).TextOptions(TextFormattingMode.Display),
                           Items.Select((i, idx) =>
                                        New <TextBox>(NewProps.
                                                      TextChanged(TextChanged).
                                                      Text(i + " #" + idx).
                                                      Key(idx).
                                                      Alignment(HorizontalAlignment.Center).
                                                      FontSize(idx * 5 + 10).
                                                      Foreground((idx * 8), ((idx * 8) << 8), ((idx * 8) << 16))))
                           ));
 }
Example #2
0
 public override object Render()
 {
     return
         (New <TextBlock>(NewProps.Alignment(HorizontalAlignment.Center).Alignment(VerticalAlignment.Center).FontSize(24.5).
                          Text((Now - Start).ToString("s'.'fff"))));
 }