newOnlineQA/pages/PageAnswer.xaml

(完整代码) 2KB

<Page x:Class="newOnlineQA.pages.PageAnswer"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:local="clr-namespace:newOnlineQA.pages"
      mc:Ignorable="d" 
      d:DesignHeight="450" d:DesignWidth="800"
      Title="PageAnswer">
    <Grid Background="{DynamicResource MainColorLight}">
        <ListBox x:Name="pageAnswerList" Background="Transparent" ScrollViewer.HorizontalScrollBarVisibility="Disabled">
            <ListBox.ItemContainerStyle>
                <Style  TargetType="ListBoxItem">
                    <Setter Property="HorizontalContentAlignment" Value="Stretch" />
                    <!--拉伸容至充满可用空间-->
                </Style>
            </ListBox.ItemContainerStyle>
            <ListBox.ItemTemplate >
                <DataTemplate>
                    <Border CornerRadius="10" Background="White" Margin="15 5 10 5" >
                        <StackPanel>
                            <TextBlock Text="{Binding title}" FontSize="20" Margin="10 10 0 0" FontWeight="Bold" Foreground="#808080" TextWrapping="Wrap"/>
                            <!--<TextBlock Text="{Binding a}" FontSize="16" Margin="10 5 0 0"  Foreground="#808080" TextWrapping="Wrap"/>-->
                            <TextBlock Text="{Binding contents}" FontSize="16" Margin="10 5 0 0" Padding="0 0 0 10" Foreground="#808080" TextWrapping="Wrap"/>
                            <Button Style="{StaticResource ButtonStyle}" HorizontalAlignment="Right" Width="45" Content="删除" Height="30" Click="BtnDeleteClick"
                                    Foreground="{DynamicResource Font}"  BorderThickness="0" Background="Transparent" Margin="0 0 20 0"/>
                        </StackPanel>
                    </Border>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
    </Grid>
</Page>

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。