Go.xaml 2.1 KB

123456789101112131415161718192021222324252627282930
  1. <StackPanel Margin="0,-10,0,0"
  2. xmlns:sys="clr-namespace:System;assembly=mscorlib"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:local="clr-namespace:PCL;assembly=Plain Craft Launcher 2">
  5. <StackPanel.Triggers>
  6. </StackPanel.Triggers>
  7. <StackPanel.Resources>
  8. <Style TargetType="ListItem"><Setter Property="Foreground" Value="{DynamicResource ColorBrush1}"/><Setter Property="Margin" Value="0,4"/></Style>
  9. <Style TargetType="List"><Setter Property="Foreground" Value="{DynamicResource ColorBrush3}"/><Setter Property="Margin" Value="20,6,0,6"/><Setter Property="MarkerStyle" Value="1"/><Setter Property="Padding" Value="0"/></Style>
  10. <Style TargetType="Paragraph"><Setter Property="LineHeight" Value="12"/><Setter Property="TextIndent" Value="0"/><Setter Property="Margin" Value="0,8"/></Style>
  11. <Style TargetType="TextBlock"><Setter Property="TextWrapping" Value="Wrap"/><Setter Property="HorizontalAlignment" Value="Left"/><Setter Property="FontSize" Value="14"/><Setter Property="Foreground" Value="{DynamicResource ColorBrush1}"/></Style>
  12. <Style TargetType="FlowDocument"><Setter Property="FontFamily" Value="Microsoft YaHei UI"/><Setter Property="FontSize" Value="14"/><Setter Property="TextAlignment" Value="Left"/><Setter Property="Foreground" Value="{DynamicResource ColorBrush1}"/></Style>
  13. <Style TargetType="FlowDocumentScrollViewer"><Setter Property="IsSelectionEnabled" Value="False"/><Setter Property="VerticalScrollBarVisibility" Value="Hidden"/><Setter Property="Margin" Value="0"/></Style>
  14. </StackPanel.Resources>
  15. <local:MyCard Title="转到页面" Margin="0,5">
  16. <StackPanel Margin="25,40,23,15">
  17. <Grid>
  18. <Grid.ColumnDefinitions>
  19. <ColumnDefinition Width="1*"/>
  20. <ColumnDefinition Width="100"/>
  21. </Grid.ColumnDefinitions>
  22. <local:MyTextBox x:Name="jumpbox" Height="30" />
  23. <local:MyButton HorizontalAlignment="Center" Width="80"
  24. Grid.Column="1" Text="打开→" EventType="打开帮助"
  25. EventData="{Binding Path=Text,ElementName=jumpbox,StringFormat=https://mcnews.meloong.com/{0}.json"/>
  26. </Grid>
  27. </StackPanel>
  28. </local:MyCard>
  29. </StackPanel>