عرب ويب نت - منتدى شبكة الإنترنت العربية - Powered by vBulletin

 
موقع و منتدى شبكة الإنترنت العربية ArabWebNet.com

اكتب بريدك في المربع ثم اضغط على "اشتراك" لكي يصلك كل جديد على بريدك مباشرة


+ الرد على الموضوع
النتائج 1 إلى 3 من 3
كورس c# :درس13 (شرح تقنية ال wpf مع بعض الأمثلة)

أولا: ما هي ال wpf...???? تقنية جديدة ظهرت مع .net 3.0 حيث أصبح بإمكانك إستخدام لغة XAML لبرمجة واجهات برنامج لذلك نلاحظ أن هذه التقنية لا تخص اللغة من

  1. #1
    مشرف احمد is a jewel in the rough احمد is a jewel in the rough احمد is a jewel in the rough احمد is a jewel in the rough
    تاريخ التسجيل
    Aug 2010
    المشاركات
    468

    افتراضي




    133.gif





    أولا: ما هي ال wpf...????
    تقنية جديدة ظهرت مع .net 3.0
    حيث أصبح بإمكانك إستخدام لغة XAML لبرمجة واجهات برنامج لذلك نلاحظ أن هذه التقنية لا تخص اللغة من ناحية تصميم الواجهات وإنما تخص لغة XAML وبما أنها كذلك سوف أمر مرورا عليها بعد أن أعرفك بأهم تأثيراتها وميزاتها...


    - كيفية الإستخدام ...
    قم بإنشاء مشروع جديد ثم إختر WPF Application
    سوف يظهر لك برمجة ال XAML في أسفل الشاشة وهنا يتم كتابة الأكواد...

    ________________________________________
    المثال -1-:
    عمل بعض التأثيرات على Button ..

    الرمز PHP:
    كود PHP:
    <Button Margin="79,89,0,0" VerticalAlignment="Top" Height="32" Content="Button" Background="#FFD95858" BorderThickness="7,7,7,7" Foreground="#FFFFFFFF" HorizontalAlignment="Left" Width="128">

    <
    Button.BitmapEffect>

    <
    OuterGlowBitmapEffect GlowColor="Red"></OuterGlowBitmapEffect>

    </
    Button.BitmapEffect>

    <
    Button.BorderBrush>

    <
    LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">

    <
    GradientStop Color="#FF000000" Offset="0"/>

    <
    GradientStop Color="#FFA48F8F" Offset="1"/>

    </
    LinearGradientBrush>

    </
    Button.BorderBrush>

    </
    Button


    حيث يكون الكود كاملا,,


    الرمز PHP:
    كود PHP:
    <Window x:Class="Window1"

    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

    Title="Window1" Height="365" Width="588">

    <
    Grid Height="323" Width="555">

    <
    Button Margin="79,89,0,0" VerticalAlignment="Top" Height="32" Content="Button" Background="#FFD95858" BorderThickness="7,7,7,7" Foreground="#FFFFFFFF" HorizontalAlignment="Left" Width="128">

    <
    Button.BitmapEffect>

    <
    OuterGlowBitmapEffect GlowColor="Red"></OuterGlowBitmapEffect>

    </
    Button.BitmapEffect>

    <
    Button.BorderBrush>

    <
    LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">

    <
    GradientStop Color="#FF000000" Offset="0"/>

    <
    GradientStop Color="#FFA48F8F" Offset="1"/>

    </
    LinearGradientBrush>

    </
    Button.BorderBrush>

    </
    Button>

    </
    Grid>

    </
    Window



    - المثال 2:
    عمل ProgressBar أفقي مع بعض التأثيرات المختلفة عما سبق..

    الرمز
    كود PHP:
                                <Window

    xmlns
    ="http://schemas.microsoft.com/winfx/2006/xaml/presentation"


    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

    x:Class="UntitledProject1.Window1"


    x:Name="Window"

    Title="Window1"

    Width="640" Height="480">

    <
    Grid x:Name="LayoutRoot">

    <
    ProgressBar Margin="200,193,221,0" VerticalAlignment="Top" Height="19" RenderTransformOrigin="0.5,0.5" BorderThickness="2,2,2,2" Background="#FFD79B9B" Value="50" Foreground="#FF304058" Orientation="Horizontal" SmallChange="5">
    <
    ProgressBar.BitmapEffect>


    <
    BevelBitmapEffect></BevelBitmapEffect>

    </
    ProgressBar.BitmapEffect>

    <
    ProgressBar.BorderBrush>

    <
    LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">

    <
    GradientStop Color="#FFFF0000" Offset="0"/>

    <
    GradientStop Color="#FF000000" Offset="1"/>

    </
    LinearGradientBrush>

    </
    ProgressBar.BorderBrush>

    <
    ProgressBar.OpacityMask>

    <
    LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">

    <
    GradientStop Color="#FF000000" Offset="0"/>

    <
    GradientStop Color="#FFB43E3E" Offset="1"/>

    </
    LinearGradientBrush>

    </
    ProgressBar.OpacityMask>

    <
    ProgressBar.RenderTransform>

    <
    TransformGroup>

    <
    ScaleTransform ScaleX="1" ScaleY="1"/>

    <
    SkewTransform AngleX="-3.5041414214731503E-15" AngleY="0"/>

    <
    RotateTransform Angle="-90"/>

    <
    TranslateTransform X="0" Y="0"/>

    </
    TransformGroup>

    </
    ProgressBar.RenderTransform>

    </
    ProgressBar>

    </
    Grid>

    </
    Window 
    >




    عمل Animation لشيئ معين...
    كود PHP:
    <Window
     xmlns
    ="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    x:Class="UntitledProject4.Window1"
    x:Name="Window"
    Title="Window1"
    Width="640" Height="480">
     <
    Window.Resources>
      <
    Storyboard x:Key="MyMovie1">
       <
    DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="button" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
        <
    SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-1.863"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-4.832"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-5.342"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-6.01"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-6.519"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-7.371"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-8.249"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-8.765"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-8.957"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-9.154"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-9.674"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-10.398"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-10.609"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-11.349"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-11.573"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-12.328"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-12.564"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-13.092"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-13.614"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-13.862"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-14.115"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-14.902"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-15.696"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-17.018"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-17.534"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-18.338"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-18.847"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-19.148"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-19.964"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-20.785"/>
       </
    DoubleAnimationUsingKeyFrames>
       <
    DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="button" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
        <
    SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-3"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-5"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-6"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-8"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-9"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-10"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-11"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-12"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-13"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-14"/>
       </
    DoubleAnimationUsingKeyFrames>
       <
    DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="button" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
        <
    SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-4"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-9"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-11"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-15"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-17"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-19"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-22"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-23"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-25"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-26"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-27"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-28"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-29"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-30"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-31"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-32"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-33"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-35"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-37"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-39"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-41"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-44"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-45"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="-46"/>
       </
    DoubleAnimationUsingKeyFrames>
       <
    DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="button1" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
        <
    SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="1.097"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="1.161"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="1.194"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="1.226"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="1.258"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="1.29"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="1.323"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="1.355"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="1.387"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="1.419"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="1.484"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="1.516"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="1.548"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="1.581"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="1.613"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="1.71"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="1.774"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="1.806"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="1.839"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="1.871"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="1.903"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="1.935"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="2"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="2.129"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="2.161"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="1"/>
       </
    DoubleAnimationUsingKeyFrames>
       <
    DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="button1" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
        <
    SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="1.5"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="2.5"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="3"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="3.5"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="4"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="4.5"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="5"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="5.5"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="6"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="6.5"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="7.5"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="8"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="8.5"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="9"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="9.5"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="11"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="12"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="12.5"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="13"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="13.5"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="14"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="14.5"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="15.5"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="17.5"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="18"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:02" Value="0"/>
       </
    DoubleAnimationUsingKeyFrames>
       <
    ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="button2" Storyboard.TargetProperty="(Panel.Background).(SolidColorBrush.Color)">
        <
    SplineColorKeyFrame KeyTime="00:00:00" Value="#FFF0F0F0"/>
        <
    SplineColorKeyFrame KeyTime="00:00:02" Value="#FFF03939"/>
        <
    SplineColorKeyFrame KeyTime="00:00:02" Value="#FFCF3131"/>
        <
    SplineColorKeyFrame KeyTime="00:00:02" Value="#FFCF2F2F"/>
        <
    SplineColorKeyFrame KeyTime="00:00:02" Value="#FFCF2E2E"/>
        <
    SplineColorKeyFrame KeyTime="00:00:02" Value="#FFD12E2E"/>
        <
    SplineColorKeyFrame KeyTime="00:00:02" Value="#FFD12D2D"/>
        <
    SplineColorKeyFrame KeyTime="00:00:02" Value="#FFD12B2B"/>
       </
    ColorAnimationUsingKeyFrames>
       <
    ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="button3" Storyboard.TargetProperty="(TextElement.Foreground).(SolidColorBrush.Color)">
        <
    SplineColorKeyFrame KeyTime="00:00:00" Value="#FF000000"/>
        <
    SplineColorKeyFrame KeyTime="00:00:02" Value="#FF934949"/>
        <
    SplineColorKeyFrame KeyTime="00:00:02" Value="#FF934848"/>
        <
    SplineColorKeyFrame KeyTime="00:00:02" Value="#FF934545"/>
        <
    SplineColorKeyFrame KeyTime="00:00:02" Value="#FF994848"/>
        <
    SplineColorKeyFrame KeyTime="00:00:02" Value="#FF993232"/>
        <
    SplineColorKeyFrame KeyTime="00:00:02" Value="#FFA83737"/>
        <
    SplineColorKeyFrame KeyTime="00:00:02" Value="#FFA83131"/>
        <
    SplineColorKeyFrame KeyTime="00:00:02" Value="#FFB63535"/>
        <
    SplineColorKeyFrame KeyTime="00:00:02" Value="#FFB62D2D"/>
        <
    SplineColorKeyFrame KeyTime="00:00:02" Value="#FFC43131"/>
        <
    SplineColorKeyFrame KeyTime="00:00:02" Value="#FFC42727"/>
        <
    SplineColorKeyFrame KeyTime="00:00:02" Value="#FFD12A2A"/>
        <
    SplineColorKeyFrame KeyTime="00:00:02" Value="#FFD12121"/>
        <
    SplineColorKeyFrame KeyTime="00:00:02" Value="#FFDD2323"/>
        <
    SplineColorKeyFrame KeyTime="00:00:02" Value="#FFDD2121"/>
        <
    SplineColorKeyFrame KeyTime="00:00:02" Value="#FFE92323"/>
        <
    SplineColorKeyFrame KeyTime="00:00:02" Value="#FFE91717"/>
        <
    SplineColorKeyFrame KeyTime="00:00:02" Value="#FFF11818"/>
        <
    SplineColorKeyFrame KeyTime="00:00:02" Value="#FFF10C0C"/>
        <
    SplineColorKeyFrame KeyTime="00:00:02" Value="#FFF30C0C"/>
        <
    SplineColorKeyFrame KeyTime="00:00:02" Value="#FFF30A0A"/>
        <
    SplineColorKeyFrame KeyTime="00:00:02" Value="#FFF50A0A"/>
        <
    SplineColorKeyFrame KeyTime="00:00:02" Value="#FFF50707"/>
        <
    SplineColorKeyFrame KeyTime="00:00:02" Value="#FFF50303"/>
        <
    SplineColorKeyFrame KeyTime="00:00:02" Value="#FFF70404"/>
        <
    SplineColorKeyFrame KeyTime="00:00:02" Value="#FFF70202"/>
        <
    SplineColorKeyFrame KeyTime="00:00:02" Value="#FFF90202"/>
       </
    ColorAnimationUsingKeyFrames>
       <
    ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="button3" Storyboard.TargetProperty="(Panel.Background).(SolidColorBrush.Color)">
        <
    SplineColorKeyFrame KeyTime="00:00:00" Value="#FFF0F0F0"/>
        <
    SplineColorKeyFrame KeyTime="00:00:02" Value="#FFF04545"/>
        <
    SplineColorKeyFrame KeyTime="00:00:02" Value="#FF752222"/>
        <
    SplineColorKeyFrame KeyTime="00:00:02" Value="#FF732222"/>
        <
    SplineColorKeyFrame KeyTime="00:00:02" Value="#FF732424"/>
        <
    SplineColorKeyFrame KeyTime="00:00:02" Value="#FF732B2B"/> 
    لا تستغرب من طول الكود ولكن في هذا الكود سوف ترى مبدأ عمل ال Animation كم هو سهل حيث تضمن الكود معظم ما يمكن فعله من تأثيرات متحركة...
    مثال بسيط لا معقد

    كود PHP:
    <Window
     xmlns
    ="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
     
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
     
    x:Class="UntitledProject5.Window1"
     
    x:Name="Window"
     
    Title="Window1"
     
    Width="640" Height="480">
     <
    Window.Resources>
      <
    Storyboard x:Key="MyM">
       <
    DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="button" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
        <
    SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="1.086"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="1.171"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="1.314"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="1.6"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="1.914"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="2.086"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="2.4"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="2.714"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="3.029"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="3.286"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="3.486"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="3.657"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="3.829"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="3.914"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="4.2"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="4.514"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="4.657"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="4.829"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="5.029"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="5.314"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="5.657"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="5.771"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="5.8"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="5.829"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="5.914"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="6.029"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="6.114"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="6.143"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="6.171"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="6.2"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="6.229"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="6.286"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="6.314"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="6.2"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="6.057"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="5.771"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="5.2"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="4.743"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="4.285"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="3.685"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="2.943"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="2.428"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="2.057"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="1.857"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="1.485"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="1.285"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="1.257"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="1.171"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="1.143"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="1.114"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="1.085"/>
       </
    DoubleAnimationUsingKeyFrames>
       <
    DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="button" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
        <
    SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="1.5"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="3"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="5.5"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="10.5"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="16"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="19"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="24.5"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="30"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="35.5"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="40"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="43.5"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="46.5"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="49.5"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="51"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="56"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="61.5"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="64"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="67"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="70.5"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="75.5"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="81.5"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="83.5"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="84"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="84.5"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="86"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="88"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="89.5"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="90"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="90.5"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="91"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="91.5"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="92.5"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="93"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="91"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="88.5"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="83.5"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="73.5"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="65.5"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="57.5"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="47"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="34"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="25"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="18.5"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="15"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="8.5"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="5"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="4.5"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="3"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="2.5"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="2"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="1.5"/>
       </
    DoubleAnimationUsingKeyFrames>
       <
    DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="button" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
        <
    SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="1.419"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="1.892"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="1.419"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="0.946"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="1.419"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="1.892"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="2.365"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="3.311"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="3.784"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="4.257"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="5.203"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="6.149"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="6.622"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="7.095"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="7.568"/>
       </
    DoubleAnimationUsingKeyFrames>
       <
    DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="button" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(SkewTransform.AngleX)">
        <
    SplineDoubleKeyFrame KeyTime="00:00:00" Value="-3.5041414214731503E-15"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="4.274"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="5.69"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="4.274"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="2.852"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="4.274"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="5.69"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="7.1"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="9.891"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="11.27"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="12.636"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="15.323"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="17.943"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="19.225"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="20.488"/>
        <
    SplineDoubleKeyFrame KeyTime="00:00:01" Value="21.73"/>
       </
    DoubleAnimationUsingKeyFrames>
      </
    Storyboard>
     </
    Window.Resources>
     <
    Window.Triggers>
      <
    EventTrigger RoutedEvent="FrameworkElement.Loaded">
       <
    BeginStoryboard Storyboard="{StaticResource MyM}"/>
      </
    EventTrigger>
     </
    Window.Triggers>
     <
    Grid x:Name="LayoutRoot">
      <
    Button HorizontalAlignment="Left" Margin="136,85,0,0" VerticalAlignment="Top" Width="149" Height="35" Content="Button" x:Name="button" RenderTransformOrigin="0.5,0.5">
       <
    Button.RenderTransform>
        <
    TransformGroup>
         <
    ScaleTransform ScaleX="1" ScaleY="1"/>
         <
    SkewTransform AngleX="-3.5041414214731503E-15" AngleY="0"/>
         <
    RotateTransform Angle="0"/>
         <
    TranslateTransform X="0" Y="0"/>
        </
    TransformGroup>
       </
    Button.RenderTransform>
      </
    Button>
     </
    Grid>
    </
    Window

    والان لنعد إلى التأثيرات...
    المثال 4-
    TextBox مزخرف...
    >
    كود PHP:


    <Window
     xmlns
    ="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
     
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
     
    x:Class="UntitledProject6.Window1"
     
    x:Name="Window"
     
    Title="Window1"
     
    Width="640" Height="480">
        <
    Grid x:Name="LayoutRoot">
            <
    TextBox Margin="41,61,0,0" VerticalAlignment="Top" Height="22" Text="MyText" TextWrapping="Wrap" RenderTransformOrigin="0.5,0.5" Width="197" HorizontalAlignment="Left" BorderThickness="2,2,2,2" ToolTip="MY TEXT BOX..." Background="#FFCF6464" Foreground="#FFFFCECE">
                <
    TextBox.BitmapEffect>
                    <
    DropShadowBitmapEffect></DropShadowBitmapEffect>
                </
    TextBox.BitmapEffect>
                <
    TextBox.RenderTransform>
                    <
    TransformGroup>
                        <
    ScaleTransform ScaleX="1" ScaleY="1"/>
                        <
    SkewTransform AngleX="-3.5041414214731503E-15" AngleY="0"/>
                        <
    RotateTransform Angle="-17.546"/>
                        <
    TranslateTransform X="0" Y="0"/>
                    </
    TransformGroup>
                </
    TextBox.RenderTransform>
            </
    TextBox>
        </
    Grid>
    </
    Window 



    (avp :]vs13 hgHlegm) jr,dm ;,vs

    التعديل الأخير تم بواسطة Black Stone ; 26-09-2010 الساعة 08:40 PM

  2. #2

  3. #3
    عضو فعال &&بسمة&& is on a distinguished road الصورة الرمزية &&بسمة&&
    تاريخ التسجيل
    Jan 2011
    المشاركات
    52

    افتراضي

    ماشاء الله عليك يا احمد شرح وافى بارك الله فيك


 

 

المواضيع المتشابهه

  1. الفرق بين تقنية شاشات led و بين lcd و من هو الأفضل و لماذا ؟
    بواسطة ريتاج في المنتدى قسم الهاردوير
    مشاركات: 8
    آخر مشاركة: 27-05-2014, 03:56 PM
  2. تقنية نظام ساهر
    بواسطة && بسمة && في المنتدى قسم السيارات
    مشاركات: 5
    آخر مشاركة: 03-01-2012, 04:23 AM
  3. علاج ضعف و تقوية الذاكرة
    بواسطة زهره الخليج في المنتدى طب الأعشاب و الطب البديل
    مشاركات: 2
    آخر مشاركة: 18-08-2011, 01:38 AM
  4. مشاركات: 6
    آخر مشاركة: 27-03-2011, 08:16 PM
  5. كورس c# :درس11 ( شرح تقنية WCF والتخصص بال Sockets)
    بواسطة احمد في المنتدى برمجيات و لغات البرمجة
    مشاركات: 0
    آخر مشاركة: 26-09-2010, 12:46 PM

الكلمات الدلالية لهذا الموضوع

مواقع النشر (المفضلة)

مواقع النشر (المفضلة)

ضوابط المشاركة

  • لا تستطيع إضافة مواضيع جديدة
  • لا تستطيع الرد على المواضيع
  • لا تستطيع إرفاق ملفات
  • لا تستطيع تعديل مشاركاتك

 

تابعونا على تويترتابعونا على فيس بوكمدونة شبكة الانترنت العربية

 

 



الساعة الآن 04:08 PM