ADD MEDIA IN XAML - C # +

0

I'm trying to learn how to use paramentros in XAML , more precisely using XAML .

Below is a sample code I'm using to train.

<UserControl 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"
                         mc:Ignorable="d" Width="1920" Height="1080"
                         xmlns:my="clr-namespace:vMixTitleLibrary;assembly=vMixTitleLibrary">
    <UserControl.Resources>
        <Storyboard x:Key="Storyboard1" RepeatBehavior="0:0:1">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.Y)" Storyboard.TargetName="Image1">
                <SplineDoubleKeyFrame KeyTime="0" Value="236"/>
                <SplineDoubleKeyFrame KeyTime="0:0:1" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.Y)" Storyboard.TargetName="Programme">
                <SplineDoubleKeyFrame KeyTime="0" Value="236"/>
                <SplineDoubleKeyFrame KeyTime="0:0:1" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)" Storyboard.TargetName="Image2">
                <SplineDoubleKeyFrame KeyTime="0" Value="-476"/>
                <SplineDoubleKeyFrame KeyTime="0:0:1" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="Storyboard2" RepeatBehavior="0:0:0.5">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.Y)" Storyboard.TargetName="Image1">
                <SplineDoubleKeyFrame KeyTime="0" Value="0"/>
                <SplineDoubleKeyFrame KeyTime="0:0:0.5" Value="236"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.Y)" Storyboard.TargetName="Programme">
                <SplineDoubleKeyFrame KeyTime="0" Value="0"/>
                <SplineDoubleKeyFrame KeyTime="0:0:0.5" Value="236"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)" Storyboard.TargetName="Image2">
                <SplineDoubleKeyFrame KeyTime="0" Value="0"/>
                <SplineDoubleKeyFrame KeyTime="0:0:0.5" Value="-476"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
    </UserControl.Resources>
    <UserControl.Triggers>
        <EventTrigger RoutedEvent="FrameworkElement.Loaded">
            <BeginStoryboard Storyboard="{StaticResource Storyboard1}"/>
        </EventTrigger>
    </UserControl.Triggers>
  <Grid>
    <Image Source="UpNextAnimatedBar.png" Name="Image1" Width="1199" Height="100" Margin="48,871,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" >
        <Image.RenderTransform>
                    <TranslateTransform/>
            </Image.RenderTransform>
        </Image>
    <Image Source="UpNextAnimatedText.png" Name="Image2" Width="368" Height="177" Margin="41,735,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" >
            <Image.RenderTransform>
                    <TranslateTransform/>
            </Image.RenderTransform>
        </Image>
    <my:TextBlockDesign Fill="#FF000000" FontSize="64" Text="Programme Title" Name="Programme" Width="984" Height="74" Margin="223,885,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" >
            <my:TextBlockDesign.RenderTransform>
                    <TranslateTransform/>
            </my:TextBlockDesign.RenderTransform>
        </my:TextBlockDesign>
  </Grid>
</UserControl>

I would like to ask 3 questions:

  • Is it possible to create transition effects (any text, image and media input effect) using C # / XAML programming?

  • In addition to Expression Blend and Visual Studio, is there any application that makes life easier for those who do not have advanced knowledge of C # or languages of the genre?

  • A library or a place where you can have more examples to learn about C # and XAML usage.

  • I hope I'm not posting in the wrong way, I keep getting used to the tools!

        
    asked by anonymous 08.02.2018 / 16:23

    0 answers