WPF自定义水波纹效果
<Grid Name="grid1" Height="618.12" Width="759.015">
<Grid.RowDefinitions>
<RowDefinition Height="76*" />
<RowDefinition Height="542.12*" />
</Grid.RowDefinitions>
<Button HorizontalAlignment="Right" Margin="0,11.778,115,0" Name="btnStart" Width="75" Click="btnStart_Click" Height="22.649" VerticalAlignment="Top">Start Rain</Button>
<Viewport3D Name="viewport3D1" Grid.Row="1">
<Viewport3D.Camera>
<PerspectiveCamera x:Name="camMain" Position="255 38.5 255" LookDirection="-130 -40 -130" FarPlaneDistance="450" UpDirection="0,1,0" NearPlaneDistance="1" FieldOfView="70">
</PerspectiveCamera>
</Viewport3D.Camera>
<ModelVisual3D x:Name="vis3DLighting">
<ModelVisual3D.Content>
<DirectionalLight x:Name="dirLightMain" Direction="2, -2, 0"/>
</ModelVisual3D.Content>
</ModelVisual3D>
<ModelVisual3D>
<ModelVisual3D.Content>
<DirectionalLight Direction="0, -2, 2"/>
</ModelVisual3D.Content>
</ModelVisual3D>
<ModelVisual3D>
<ModelVisual3D.Content>
<GeometryModel3D x:Name="gmodMain">
<GeometryModel3D.Geometry>
<MeshGeometry3D x:Name="meshMain" >
</MeshGeometry3D>
</GeometryModel3D.Geometry>
<GeometryModel3D.Material>
<MaterialGroup>
<DiffuseMaterial x:Name="matDiffuseMain">
<DiffuseMaterial.Brush>
<SolidColorBrush Color="DarkBlue"/>
</DiffuseMaterial.Brush>
</DiffuseMaterial>
<SpecularMaterial SpecularPower="24">
<SpecularMaterial.Brush>
<SolidColorBrush Color="LightBlue"/>
</SpecularMaterial.Brush>
</SpecularMaterial>
</MaterialGroup>
</GeometryModel3D.Material>
</GeometryModel3D>
</ModelVisual3D.Content>
</ModelVisual3D>
</Viewport3D>
<Slider Margin="0,13.596,198,0" Name="slidPeakHeight" ValueChanged="slidPeakHeight_ValueChanged" Minimum="0" Maximum="15" HorizontalAlignment="Right" Width="167.256" Height="20.831" VerticalAlignment="Top" />
<Label Margin="286,11.964,0,36.083" Name="lblDropDepth" HorizontalAlignment="Left" Width="89.015">Drop Strength</Label>
<Slider Name="slidNumDrops" HorizontalAlignment="Left" Margin="111,15.452,0,0" Maximum="1000" Minimum="1" Width="167.256" ValueChanged="slidNumDrops_ValueChanged" Height="20.831" VerticalAlignment="Top" />
<Label HorizontalAlignment="Left" Margin="12,13.596,0,34.451" Name="label1" Width="89">Num Drops</Label>
<Button HorizontalAlignment="Right" Margin="0,11.963,19,0" Name="btnWave" Width="75" Click="btnWave_Click" Height="22.649" VerticalAlignment="Top">Wave !</Button>
<Slider Height="20.831" HorizontalAlignment="Left" Margin="111,0,0,5.266" Maximum="6" Minimum="1" Name="slidDropSize" VerticalAlignment="Bottom" Width="167.256" ValueChanged="slidDropSize_ValueChanged"/>
<Label Height="27.953" HorizontalAlignment="Left" Margin="12,0,0,0" Name="label2" VerticalAlignment="Bottom" Width="89">Drop Size</Label>
</Grid>
资源文件列表
Raindrop/App.config , 187
Raindrop/App.xaml , 370
Raindrop/App.xaml.cs , 335
Raindrop/bin/Debug/Raindrop.exe , 18432
Raindrop/bin/Debug/Raindrop.exe.config , 187
Raindrop/bin/Debug/Raindrop.pdb , 46592
Raindrop/MainWindow.xaml , 4252
Raindrop/MainWindow.xaml.cs , 6315
Raindrop/obj/Debug/App.g.cs , 2329
Raindrop/obj/Debug/App.g.i.cs , 2329
Raindrop/obj/Debug/DesignTimeResolveAssemblyReferences.cache , 670
Raindrop/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache , 7249
Raindrop/obj/Debug/MainWindow.baml , 3635
Raindrop/obj/Debug/MainWindow.g.cs , 11583
Raindrop/obj/Debug/MainWindow.g.i.cs , 11583
Raindrop/obj/Debug/Raindrop.csproj.CoreCompileInputs.cache , 42
Raindrop/obj/Debug/Raindrop.csproj.FileListAbsolute.txt , 1234
Raindrop/obj/Debug/Raindrop.csproj.GenerateResource.cache , 954
Raindrop/obj/Debug/Raindrop.csprojAssemblyReference.cache , 2510
Raindrop/obj/Debug/Raindrop.exe , 18432
Raindrop/obj/Debug/Raindrop.g.resources , 3863
Raindrop/obj/Debug/Raindrop.pdb , 46592
Raindrop/obj/Debug/Raindrop.Properties.Resources.resources , 180
Raindrop/obj/Debug/Raindrop_MarkupCompile.cache , 259
Raindrop/obj/Debug/Raindrop_MarkupCompile.i.cache , 262
Raindrop/obj/Debug/Raindrop_MarkupCompile.lref , 77
Raindrop/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs , 0
Raindrop/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs , 0
Raindrop/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs , 0
Raindrop/Properties/AssemblyInfo.cs , 2328
Raindrop/Properties/Resources.Designer.cs , 2829
Raindrop/Properties/Resources.resx , 5612
Raindrop/Properties/Settings.Designer.cs , 1095
Raindrop/Properties/Settings.settings , 201
Raindrop/QueryPerfCounter.cs , 1287
Raindrop/Raindrop.csproj , 4192
Raindrop/Raindrop.csproj.user , 228
Raindrop/WaveGrid-doubles.cs , 6109
Raindrop/WaveGrid.cs , 10827
