16-11-14, 04:13 PM
(آخر تعديل لهذه المشاركة : 16-11-14, 04:17 PM {2} بواسطة hoob computer.)
السلام عليكم و رحمة الله و بركاته,
أخواني الكرام, الخطأ ليس من برنامج البليند, ما أعتقد مايكروسوفت ترتكب هكذا خطأ
السبب في أن برنامج البليند لم يتعرف على الـ Storyboard لانها لم تكتب في الريسورسس.
قم بإستبدال هذا الكود مع الذي وضعته في برنامجك :
أخواني الكرام, الخطأ ليس من برنامج البليند, ما أعتقد مايكروسوفت ترتكب هكذا خطأ

السبب في أن برنامج البليند لم يتعرف على الـ Storyboard لانها لم تكتب في الريسورسس.
قم بإستبدال هذا الكود مع الذي وضعته في برنامجك :
PHP كود :
<Window>
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" x:Class="MainWindow"
Title="MainWindow" Height="350" Width="525">
<Window.Resources>
<Storyboard x:Key="myStoryboard" Storyboard.TargetProperty="Opacity" RepeatBehavior="Forever">
<DoubleAnimation Storyboard.TargetName="title1" BeginTime="0:0:2"
From="0" To="1" Duration="0:0:2" AutoReverse="True"/>
<DoubleAnimation Storyboard.TargetName="title2" BeginTime="0:0:6"
From="0" To="1" Duration="0:0:2" AutoReverse="True"/>
<DoubleAnimation Storyboard.TargetName="title3" BeginTime="0:0:10"
From="0" To="1" Duration="0:0:2" AutoReverse="True"/>
<DoubleAnimation Storyboard.TargetName="title4" BeginTime="0:0:14"
From="0" To="1" Duration="0:0:2" AutoReverse="True"/>
<DoubleAnimation Storyboard.TargetName="title5" BeginTime="0:0:18"
From="0" To="1" Duration="0:0:2" AutoReverse="True"/>
</Storyboard>
</Window.Resources>
<Window.Triggers>
<EventTrigger RoutedEvent="FrameworkElement.Loaded">
<BeginStoryboard Storyboard="{StaticResource myStoryboard}"/>
</EventTrigger>
</Window.Triggers>
<Grid>
<Grid xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" x:Name="grid"
Background="Black" TextBlock.Foreground="White" TextBlock.FontSize="30">
<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Opacity="0"
x:Name="title1"><Run Text="In a world"/></TextBlock>
<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Opacity="0"
x:Name="title2"><Run Text="where user interfaces need to be created"/></TextBlock>
<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Opacity="0"
x:Name="title3"><Run Text="one book"/></TextBlock>
<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Opacity="0"
x:Name="title4"><Run Text="will explain it all..."/></TextBlock>
<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Opacity="0"
x:Name="title5"><Run Text="WPF 4 Unleashed"/></TextBlock>
</Grid>
</Grid>
</Window>

