本文介绍了快速的银色模板从底部拉开窗户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我在编码器中使用QuickSilver模板,问题是当它进入全屏时,电影底部的四分之一延伸出来(它走出窗外)。即使我禁用拉伸模式,它仍然会做同样的事情。可能是什么问题?

I'm using the QuickSilver template in encoder, the problem is when it goes to full screen, one fourth of bottom of the movie stretches out (it goes out of the window). even when I disable the stretch mode it still does the same thing. what could be the problem?

推荐答案

一旦有了自定义副本QuikSilver模板可以解决问题的最简单方法是找到并删除下面列出的Page.XAML中突出显示的线条:

Once you have a custom copy of the QuikSilver template the simplest change you can make to fix the problem is to find and delete the highlighted lines lines from Page.XAML listed below:

....

< VisualState x:Name =" enterFullScreen">

    <故事板>

        < DoubleAnimationUsingKeyFrames BeginTime =" 00:00:00"" Storyboard.TargetName = QUOT;视频窗口" Storyboard.TargetProperty ="(UIElement.RenderTransform)。(TransformGroup.Children)[0]。(ScaleTransform.ScaleX)">

       &NBSP;&NBSP;&NBSP;&NBSP;&NBSP; < SplineDoubleKeyFrame KeyTime =" 00:00:00.1000000"值=" 1.054" />

        < / DoubleAnimationUsingKeyFrames>

        < DoubleAnimationUsingKeyFrames BeginTime =" 00:00:00"" Storyboard.TargetName = QUOT;视频窗口" Storyboard.TargetProperty ="(UIElement.RenderTransform)。(TransformGroup.Children)[0]。(ScaleTransform.ScaleY)">

       &NBSP;&NBSP;&NBSP;&NBSP;&NBSP; < SplineDoubleKeyFrame KeyTime =" 00:00:00.1000000"值=" 1.251" />

        < / DoubleAnimationUsingKeyFrames>

        < DoubleAnimationUsingKeyFrames BeginTime =" 00:00:00"" Storyboard.TargetName = QUOT;视频窗口" Storyboard.TargetProperty ="(UIElement.RenderTransform)。(TransformGroup.Children)[3]。(TranslateTransform.X)">

       &NBSP;&NBSP;&NBSP;&NBSP;&NBSP; < SplineDoubleKeyFrame KeyTime =" 00:00:00.1000000"值=" -2" />

        < / DoubleAnimationUsingKeyFrames>

        < DoubleAnimationUsingKeyFrames BeginTime =" 00:00:00"" Storyboard.TargetName = QUOT;视频窗口" Storyboard.TargetProperty ="(UIElement.RenderTransform)。(TransformGroup.Children)[3]。(TranslateTransform.Y)">

       &NBSP;&NBSP;&NBSP;&NBSP;&NBSP; < SplineDoubleKeyFrame KeyTime =" 00:00:00.1000000"值=" 30.5" />

        < / DoubleAnimationUsingKeyFrames>

 
       < DoubleAnimationUsingKeyFrames BeginTime =" 00:00:00"" Storyboard.TargetName = QUOT; playerControls" Storyboard.TargetProperty ="(UIElement.Opacity)">

            < SplineDoubleKeyFrame KeyTime =" 00:00:00.2000000"值=" 0" />

        < / DoubleAnimationUsingKeyFrames>

... 

....
<VisualState x:Name="enterFullScreen">
    <Storyboard>
        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="videoWindow" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
            <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1.054"/>
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="videoWindow" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
            <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1.251"/>
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="videoWindow" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
            <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="-2"/>
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="videoWindow" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
            <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="30.5"/>
        </DoubleAnimationUsingKeyFrames>
 
       <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="playerControls" Storyboard.TargetProperty="(UIElement.Opacity)">
            <SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0"/>
        </DoubleAnimationUsingKeyFrames>
... 

 


这篇关于快速的银色模板从底部拉开窗户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-27 07:22