LunarMind/TestEditor/PresentationWindow.xaml

(开头部分) 10KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<Window x:Class="LunarSF.SHomeWorkshop.LunarMind.PresentationWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" FontFamily="Microsoft YaHei"
        Title="LunarTest" Height="460" Width="640" PreviewKeyDown="Window_PreviewKeyDown"
        Background="#293955" Loaded="Window_Loaded" Activated="Window_Activated" Closed="Window_Closed"
        TextOptions.TextFormattingMode="Ideal"
        Icon="/LunarMind;component/Resources/LunarMind_Min.ico">
    <!--WindowState="Maximized" Topmost="True" WindowStyle="None"-->
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
        </Grid.RowDefinitions>
        <FlowDocumentReader Grid.Row="0" Grid.Column="1"
                            ViewingMode="Scroll" Background="LightGray" TextOptions.TextFormattingMode="Ideal"
                            Zoom="150" ZoomIncrement="10" MinZoom="10" MaxZoom="800" Name="mainDocumentReader">
            <FlowDocument Name="Document" LineHeight="6" FontFamily="Microsoft Yahei"
                          TextOptions.TextRenderingMode="Auto" Background="LightGray">
                
                <!--花纹背景太花哨,改浅灰色,更养眼些。-->
                <!--<FlowDocument.Background>
                    <ImageBrush TileMode="FlipXY" ViewportUnits="Absolute" Viewport="64,64,64,64"
                                Stretch="UniformToFill" ImageSource="/LunarMind;component/Resources/DocumentBackground.jpg" />
                </FlowDocument.Background>-->
                
            </FlowDocument>
        </FlowDocumentReader>

        <DockPanel Name="askPanel" Grid.Row="1" Visibility="Collapsed" HorizontalAlignment="Stretch" Focusable="False" VerticalAlignment="Bottom" LastChildFill="True" Background="DarkCyan">
            <DockPanel.Resources>
                <Storyboard x:Key="LoadHeadStoryboard">
                    <DoubleAnimation By="360" Duration="00:01:00" RepeatBehavior="Forever"
                             Storyboard.TargetName="MousePointInTitlePath"
                             Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(RotateTransform.Angle)">
                    </DoubleAnimation>
                </Storyboard>
            </DockPanel.Resources>
            <DockPanel.Triggers>
                <EventTrigger RoutedEvent="FrameworkElement.Loaded">
                    <!--触发动画-->
                    <BeginStoryboard Storyboard="{StaticResource LoadHeadStoryboard}"/>

                    <!--一动一静效果更好。-->
                    <!--<BeginStoryboard Storyboard="{StaticResource LoadHeadStoryboardOfSelectedTitle}"/>-->
                </EventTrigger>
            </DockPanel.Triggers>

            <Viewbox Name="mousePointer" DockPanel.Dock="Left" Width="96" Height="96" Visibility="Visible" Margin="10,0,0,0">
                <Grid>
                    <Grid Name="backgroundGrid" Width="128" Height="128"/>
                    <Path Name="MousePointInTitlePath" Stroke="White" StrokeThickness="2" Opacity="1"
                          Data="F1M-515.802,331.242C-515.789,329.857,-515.923,328.495,-516.128,327.172L-510.578,322.745C-512.008,317.424,-514.756,312.655,-518.482,308.812L-525.111,311.322C-527.209,309.586,-529.594,308.195,-532.179,307.198L-533.233,300.195C-535.788,299.515 -538.464,299.107 -541.237,299.086 -544.006,299.07 -546.686,299.44 -549.259,300.088L-550.396,307.078C-552.989,308.052,-555.398,309.403,-557.514,311.117L-564.117,308.526C-567.886,312.318,-570.696,317.047,-572.198,322.354L-566.702,326.846C-566.924,328.172 -567.071,329.531 -567.083,330.919 -567.093,332.318 -566.962,333.672 -566.752,335.005L-572.311,339.427C-570.872,344.742,-568.124,349.518,-564.398,353.354L-557.769,350.851C-555.674,352.581,-553.284,353.971,-550.698,354.976L-549.656,361.976C-547.092,362.659 -544.416,363.065 -541.647,363.086 -538.875,363.096 -536.198,362.729 -533.63,362.086L-532.482,355.088C-529.891,354.114,-527.484,352.763,-525.362,351.062L-518.771,353.651C-514.998,349.851,-512.192,345.12,-510.687,339.82L-516.182,335.333C-515.959,333.997,-515.814,332.643,-515.802,331.242z M-541.53,344.336C-548.84,344.292 -554.737,338.318 -554.689,331 -554.641,323.68 -548.673,317.784 -541.354,317.833 -534.035,317.88 -528.139,323.851 -528.187,331.172 -528.235,338.495 -534.205,344.385 -541.53,344.336z" 
                          Stretch="Uniform" Fill="White" Width="138" Height="138" Margin="0,0,0,0" RenderTransformOrigin="0.5,0.5">
                        <Path.RenderTransform>
                            <TransformGroup>
                                <TransformGroup.Children>
                                    <RotateTransform Angle="0"/>
                                    <ScaleTransform x:Name="preSelScaleTransform" ScaleX="1" ScaleY="1" />
                                </TransformGroup.Children>
后面还有 64 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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