ScreenToGif/Windows/Other/VideoSource.xaml

(开头部分) 8KB

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

<Window x:Class="ScreenToGif.Windows.Other.VideoSource"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:c="clr-namespace:ScreenToGif.Controls"
        xmlns:u="clr-namespace:ScreenToGif.Util"
        Title="{DynamicResource ImportVideo.Title}" Height="500" Width="800" MinHeight="400" MinWidth="500" SnapsToDevicePixels="True" UseLayoutRounding="True" 
        Icon="/ScreenToGif;component/Resources/Logo.ico" WindowStartupLocation="CenterOwner">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="40"/>
            <RowDefinition/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="40"/>
        </Grid.RowDefinitions>

        <StackPanel Grid.Row="0" Orientation="Horizontal" Background="#FFF9F9FF">
            <Viewbox x:Name="IconViewBox" Margin="5" VerticalAlignment="Center" HorizontalAlignment="Center"
                     Stretch="Uniform" Child="{StaticResource Vector.FramesFromVideo}" />
            <Label Content="{DynamicResource ImportVideo.Title}" Margin="5" VerticalAlignment="Center" Padding="2" FontSize="18" 
                   FontFamily="Segoe UI Semilight" Effect="{StaticResource Shadow.Foreground.Small}"/>
        </StackPanel>

        <Label x:Name="LoadingLabel" Grid.Row="1" Content="{DynamicResource ImportVideo.Loading}" Margin="0" VerticalContentAlignment="Center" 
               HorizontalContentAlignment="Center" FontSize="24" Foreground="#FF250B99" FontFamily="Segoe WP Light" 
               Effect="{StaticResource Shadow.Foreground.Small}"/>
        
        <Grid Grid.Row="1" Margin="5">
            <Grid.ColumnDefinitions>
                <ColumnDefinition MinWidth="50"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition MinWidth="50"/>
            </Grid.ColumnDefinitions>

            <Image x:Name="LowerSelectionImage" Grid.Column="0"/>
            <Image x:Name="UpperSelectionImage" Grid.Column="2"/>

            <GridSplitter x:Name="Splitter" Grid.Column="1" Width="4" Background="#FFF2F2F2" BorderBrush="#FFAAAAAA" 
                          KeyboardIncrement="5" ShowsPreview="False" ResizeDirection="Columns" ResizeBehavior="PreviousAndNext" 
                          Effect="{StaticResource Shadow.Background.Small}" Opacity=".8" Margin="-2,0" Visibility="Hidden"/>
        </Grid>

        <c:RangeSlider x:Name="SelectionSlider" Grid.Row="2" Height="Auto" MinHeight="20" 
                       UpperValue="100" LowerValue="0" TickPlacement="BottomRight" Margin="5,5" IsEnabled="False"
                       UpperValueChanged="SelectionSlider_UpperValueChanged" LowerValueChanged="SelectionSlider_LowerValueChanged"/>
        
        <Grid x:Name="DetailsGrid" Grid.Row="3" Margin="0,0,0,5" Visibility="Visible">
            <Grid.RowDefinitions>
                <RowDefinition/>
                <RowDefinition/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="Auto"/>
后面还有 77 行代码,解锁后查看完整代码

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

AI 解读

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

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