|
7 | 7 | mc:Ignorable="d" |
8 | 8 | WindowStartupLocation="CenterOwner" |
9 | 9 | Title="Kouyu100" Height="450" Width="800"> |
10 | | - <Grid> |
11 | | - <TextBlock HorizontalAlignment="Left" Margin="10,18,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Text="authToken(从网页Cookies中取得): "/> |
12 | | - <TextBox x:Name="AuthTokenTextBox" HorizontalAlignment="Left" Margin="208,14,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="358" Cursor="Arrow"/> |
13 | | - <Button x:Name="GetHomeworkListButton" Content="获取作业列表" Margin="664,10,5,0" VerticalAlignment="Top" Click="GetHomeworkListButton_Click" Background="#FF2196F3"/> |
14 | | - <ListBox x:Name="HomeworkListBox" Margin="10,47,10,10" HorizontalContentAlignment="Stretch"> |
15 | | - <ListBox.ItemTemplate> |
16 | | - <DataTemplate> |
17 | | - <Grid> |
18 | | - <Grid.ColumnDefinitions> |
19 | | - <ColumnDefinition Width="*"></ColumnDefinition> |
20 | | - <ColumnDefinition Width="Auto"></ColumnDefinition> |
21 | | - </Grid.ColumnDefinitions> |
22 | | - <TextBlock Grid.Column="0" Text="{Binding Name}"></TextBlock> |
23 | | - <TextBlock Grid.Column="1" Text="{Binding Status}" Foreground="{DynamicResource MaterialDesignLightForeground}"> |
24 | | - <TextBlock.Style> |
25 | | - <Style TargetType="TextBlock"> |
26 | | - <Setter Property="Background" Value="#FFA7FFA7"></Setter> |
27 | | - <Style.Triggers> |
28 | | - <Trigger Property="Text" Value="未完成"> |
29 | | - <Setter Property="Background" Value="#FFFF2649"></Setter> |
30 | | - </Trigger> |
31 | | - </Style.Triggers> |
32 | | - </Style> |
33 | | - </TextBlock.Style> |
34 | | - </TextBlock> |
35 | | - </Grid> |
36 | | - </DataTemplate> |
37 | | - </ListBox.ItemTemplate> |
38 | | - <ListBox.ItemContainerStyle> |
39 | | - <Style TargetType="{x:Type ListBoxItem}" BasedOn="{StaticResource {x:Type ListBoxItem}}"> |
40 | | - <EventSetter Event="MouseDoubleClick" Handler="HomeworkListBoxItem_MouseDoubleClick"/> |
41 | | - </Style> |
42 | | - </ListBox.ItemContainerStyle> |
43 | | - </ListBox> |
44 | | - <Button x:Name="InnerWebbrowserLoginButton" Content="内置登录" HorizontalAlignment="Left" Margin="571,10,0,0" VerticalAlignment="Top" Click="InnerWebbrowserLoginButton_Click" Cursor="Hand"/> |
45 | | - </Grid> |
| 10 | + <Grid> |
| 11 | + <TextBlock HorizontalAlignment="Left" Margin="10,63,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Text="authToken(从网页Cookies中取得): " Height="20" Width="190" RenderTransformOrigin="0.5,-0.212"/> |
| 12 | + <TextBox x:Name="AuthTokenTextBox" InputMethod.IsInputMethodEnabled="True" HorizontalAlignment="Left" Margin="203,59,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="330" Cursor="Arrow"/> |
| 13 | + <Button x:Name="GetHomeworkListButton" IsEnabled="False" Opacity="0.5" Content="获取作业列表" Margin="650,50,10,0" VerticalAlignment="Top" Click="GetHomeworkListButton_Click" Background="#FF2196F3" Cursor="Hand"/> |
| 14 | + <ListBox x:Name="HomeworkListBox" Margin="10,88,10,10" HorizontalContentAlignment="Stretch" > |
| 15 | + <ListBox.ItemTemplate> |
| 16 | + <DataTemplate> |
| 17 | + <Grid> |
| 18 | + <Grid.ColumnDefinitions> |
| 19 | + <ColumnDefinition Width="*"></ColumnDefinition> |
| 20 | + <ColumnDefinition Width="Auto"></ColumnDefinition> |
| 21 | + </Grid.ColumnDefinitions> |
| 22 | + <TextBlock Grid.Column="0" Text="{Binding Name}"></TextBlock> |
| 23 | + <TextBlock Grid.Column="1" Text="{Binding Status}" Foreground="{DynamicResource MaterialDesignLightForeground}"> |
| 24 | + <TextBlock.Style> |
| 25 | + <Style TargetType="TextBlock"> |
| 26 | + <Setter Property="Background" Value="#FFA7FFA7"></Setter> |
| 27 | + <Style.Triggers> |
| 28 | + <Trigger Property="Text" Value="未完成"> |
| 29 | + <Setter Property="Background" Value="#FFFF2649"></Setter> |
| 30 | + </Trigger> |
| 31 | + </Style.Triggers> |
| 32 | + </Style> |
| 33 | + </TextBlock.Style> |
| 34 | + </TextBlock> |
| 35 | + </Grid> |
| 36 | + </DataTemplate> |
| 37 | + </ListBox.ItemTemplate> |
| 38 | + <ListBox.ItemContainerStyle> |
| 39 | + <Style TargetType="{x:Type ListBoxItem}" BasedOn="{StaticResource {x:Type ListBoxItem}}"> |
| 40 | + <EventSetter Event="MouseDoubleClick" Handler="HomeworkListBoxItem_MouseDoubleClick"/> |
| 41 | + </Style> |
| 42 | + </ListBox.ItemContainerStyle> |
| 43 | + <Button Content="Button"/> |
| 44 | + </ListBox> |
| 45 | + <Button x:Name="InnerWebbrowserLoginButton" Content="内置登录" HorizontalAlignment="Left" Margin="551,51,0,0" VerticalAlignment="Top" Click="InnerWebbrowserLoginButton_Click" Cursor="Hand" Height="31" Width="94" RenderTransformOrigin="0.585,-0.75"/> |
| 46 | + <Grid HorizontalAlignment="Center" Height="35" Margin="0,10,0,0" VerticalAlignment="Top" Width="780" Cursor="Hand"> |
| 47 | + <Label Content="口语100一键开摆" HorizontalAlignment="Left" Height="25" Margin="0,10,0,0" VerticalAlignment="Top" Width="210" Background="White" Foreground="#DD100000"/> |
| 48 | + |
| 49 | + <Button x:Name="Clear_state" Content="清除" Margin="670,2,10,1" Background="#FF2196F3" Cursor="Hand" Click="Clear_state_Click"/> |
| 50 | + </Grid> |
| 51 | + </Grid> |
46 | 52 | </Window> |
0 commit comments