|
1 |
| -<UserControl x:Class="WPFDevelopers.Samples.ExampleViews.AnimationAudioExample" |
2 |
| - xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
3 |
| - xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
4 |
| - xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
5 |
| - xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
6 |
| - xmlns:local="clr-namespace:WPFDevelopers.Samples.ExampleViews" |
7 |
| - xmlns:wd="https://github.com/WPFDevelopersOrg/WPFDevelopers" |
8 |
| - xmlns:controls="clr-namespace:WPFDevelopers.Samples.Controls" |
9 |
| - mc:Ignorable="d" |
10 |
| - d:DesignHeight="450" d:DesignWidth="800"> |
| 1 | +<UserControl |
| 2 | + x:Class="WPFDevelopers.Samples.ExampleViews.AnimationAudioExample" |
| 3 | + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 4 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 5 | + xmlns:controls="clr-namespace:WPFDevelopers.Samples.Controls" |
| 6 | + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 7 | + xmlns:local="clr-namespace:WPFDevelopers.Samples.ExampleViews" |
| 8 | + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 9 | + xmlns:wd="https://github.com/WPFDevelopersOrg/WPFDevelopers" |
| 10 | + d:DesignHeight="450" |
| 11 | + d:DesignWidth="800" |
| 12 | + mc:Ignorable="d"> |
11 | 13 | <controls:CodeViewer>
|
12 |
| - <UniformGrid Columns="2" x:Name="MyUniformGrid"> |
13 |
| - <StackPanel Orientation="Horizontal"> |
14 |
| - <wd:BreathLamp Width="60" Height="60" LampEffect="Ripple" IsLampStart="true" |
15 |
| - VerticalAlignment="Center" HorizontalAlignment="Left" |
16 |
| - Margin="10,0"> |
17 |
| - <Ellipse> |
18 |
| - <Ellipse.Fill> |
19 |
| - <ImageBrush ImageSource="pack://application:,,,/WPFDevelopers.Samples;component/Resources/Images/Breathe/0.jpg"/> |
20 |
| - </Ellipse.Fill> |
21 |
| - </Ellipse> |
22 |
| - </wd:BreathLamp> |
23 |
| - <wd:AnimationAudio x:Name="AnimationAudioLeft" MouseDown="AnimationAudioLeft_MouseDown"/> |
24 |
| - </StackPanel> |
25 |
| - <StackPanel Orientation="Horizontal" |
26 |
| - HorizontalAlignment="Right"> |
27 |
| - <wd:AnimationAudio x:Name="AnimationAudioRight" IsRight ="true" |
28 |
| - Background="{DynamicResource WD.SuccessSolidColorBrush}" |
29 |
| - Foreground="Black" |
30 |
| - MouseDown="AnimationAudioLeft_MouseDown"/> |
31 |
| - <wd:BreathLamp Width="60" Height="60" LampEffect="Streamer" IsLampStart="True" |
32 |
| - VerticalAlignment="Center" HorizontalAlignment="Left" |
33 |
| - GradientStopColor1="#FF00cec9" GradientStopColor2="#2000cec9" |
34 |
| - Margin="10,0"> |
35 |
| - <Ellipse> |
36 |
| - <Ellipse.Fill> |
37 |
| - <ImageBrush ImageSource="pack://application:,,,/WPFDevelopers.Samples;component/Resources/Images/Chat/UserImages/yanjinhua.png"/> |
38 |
| - </Ellipse.Fill> |
39 |
| - </Ellipse> |
40 |
| - </wd:BreathLamp> |
41 |
| - </StackPanel> |
| 14 | + <UniformGrid x:Name="MyUniformGrid" Columns="2"> |
| 15 | + <StackPanel Orientation="Horizontal"> |
| 16 | + <wd:BreathLamp |
| 17 | + Width="60" |
| 18 | + Height="60" |
| 19 | + Margin="10,0" |
| 20 | + HorizontalAlignment="Left" |
| 21 | + VerticalAlignment="Center" |
| 22 | + IsLampStart="true" |
| 23 | + LampEffect="Ripple"> |
| 24 | + <Ellipse> |
| 25 | + <Ellipse.Fill> |
| 26 | + <ImageBrush ImageSource="pack://application:,,,/WPFDevelopers.Samples;component/Resources/Images/Breathe/0.jpg" /> |
| 27 | + </Ellipse.Fill> |
| 28 | + </Ellipse> |
| 29 | + </wd:BreathLamp> |
| 30 | + <wd:AnimationAudio |
| 31 | + x:Name="AnimationAudioLeft" |
| 32 | + wd:ElementHelper.CornerRadius="4" |
| 33 | + MouseDown="AnimationAudioLeft_MouseDown" /> |
| 34 | + </StackPanel> |
| 35 | + <StackPanel HorizontalAlignment="Right" Orientation="Horizontal"> |
| 36 | + <wd:AnimationAudio |
| 37 | + x:Name="AnimationAudioRight" |
| 38 | + Background="{DynamicResource WD.SuccessSolidColorBrush}" |
| 39 | + Foreground="Black" |
| 40 | + IsRight="true" |
| 41 | + MouseDown="AnimationAudioLeft_MouseDown" /> |
| 42 | + <wd:BreathLamp |
| 43 | + Width="60" |
| 44 | + Height="60" |
| 45 | + Margin="10,0" |
| 46 | + HorizontalAlignment="Left" |
| 47 | + VerticalAlignment="Center" |
| 48 | + GradientStopColor1="#FF00cec9" |
| 49 | + GradientStopColor2="#2000cec9" |
| 50 | + IsLampStart="True" |
| 51 | + LampEffect="Streamer"> |
| 52 | + <Ellipse> |
| 53 | + <Ellipse.Fill> |
| 54 | + <ImageBrush ImageSource="pack://application:,,,/WPFDevelopers.Samples;component/Resources/Images/Chat/UserImages/yanjinhua.png" /> |
| 55 | + </Ellipse.Fill> |
| 56 | + </Ellipse> |
| 57 | + </wd:BreathLamp> |
| 58 | + </StackPanel> |
42 | 59 | </UniformGrid>
|
43 | 60 | <controls:CodeViewer.SourceCodes>
|
44 |
| - <controls:SourceCodeModel |
45 |
| - CodeSource="/WPFDevelopers.SamplesCode;component/ExampleViews/AnimationAudioExample.xaml" |
46 |
| - CodeType="Xaml"/> |
47 |
| - <controls:SourceCodeModel |
48 |
| - CodeSource="/WPFDevelopers.SamplesCode;component/ExampleViews/AnimationAudioExample.xaml.cs" |
49 |
| - CodeType="CSharp"/> |
| 61 | + <controls:SourceCodeModel CodeSource="/WPFDevelopers.SamplesCode;component/ExampleViews/AnimationAudioExample.xaml" CodeType="Xaml" /> |
| 62 | + <controls:SourceCodeModel CodeSource="/WPFDevelopers.SamplesCode;component/ExampleViews/AnimationAudioExample.xaml.cs" CodeType="CSharp" /> |
50 | 63 | </controls:CodeViewer.SourceCodes>
|
51 | 64 | </controls:CodeViewer>
|
52 | 65 | </UserControl>
|
0 commit comments