MaterialLibs 0.1.4

There is a newer version of this package available.
See the version list below for details.
dotnet add package MaterialLibs --version 0.1.4
NuGet\Install-Package MaterialLibs -Version 0.1.4
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MaterialLibs" Version="0.1.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MaterialLibs --version 0.1.4
#r "nuget: MaterialLibs, 0.1.4"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install MaterialLibs as a Cake Addin
#addin nuget:?package=MaterialLibs&version=0.1.4

// Install MaterialLibs as a Cake Tool
#tool nuget:?package=MaterialLibs&version=0.1.4

MaterialLibs

为UWP添加一些炫酷的特效

Documentation

RippleStateHelper

建议:
编写控件Style或Template,在LayoutRoot中使用material:RippleHelper。

<Grid x:Name="LayoutRoot" 
           material:RippleHelper.RippleDuration="0:0:0.8" 
           material:RippleHelper.RippleColor="{ThemeResource SystemBaseLowColor}" 
           material:RippleHelper.RippleHelperState="Pressed" 
           material:RippleHelper.RippleRadius="30" 
/>

注意:

  • 设置IsFillEnable后,RippleRadius属性将会失效。

ParticleCanvas

<material:ParticleCanvas
                LineColor="DarkGray"
                ParticleColor="Gray"
/>

注意:

  • 使用Paused属性控制是否绘制。
  • 使用IsPointerEnable属性控制粒子是否响应鼠标。

AnimationHamburgerIcon

<Button x:Name="HamburgerButton" Width="48" Height="48" Padding="0" Margin="10"
        HorizontalAlignment="Left" VerticalAlignment="Top"
        Background="Transparent" Foreground="Black" Click="HamburgerButton_Click">
    <Button.Resources>
        <SolidColorBrush x:Key="ButtonBackgroundPointerOver" Color="Transparent" />
        <SolidColorBrush x:Key="ButtonBackgroundPressed" Color="Transparent" />
        <SolidColorBrush x:Key="ButtonForegroundPointerOver" Color="Black" />
        <SolidColorBrush x:Key="ButtonForegroundPressed" Color="Black" />
    </Button.Resources>
    <Button.Content>
        <material:AnimationHamburgerIcon x:Name="anIcon" />
    </Button.Content>
</Button>
private void HamburgerButton_Click(object sender, RoutedEventArgs e)
{
    mainSplitView.IsPaneOpen = !mainSplitView.IsPaneOpen;
    anIcon.IsEnded = mainSplitView.IsPaneOpen;
}

CoreSocialistValuesHelper

<Grid material:CoreSocialistValuesHelper.IsCoreSocialistValuesEnable="True" >
</Grid>

不多说不多说。

Product Compatible and additional computed target framework versions.
Universal Windows Platform uap was computed.  uap10.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.1.31 944 10/1/2018
0.1.26 854 8/15/2018
0.1.14 805 7/24/2018
0.1.13 873 7/22/2018
0.1.11 852 7/7/2018
0.1.10 756 7/4/2018
0.1.9 769 7/2/2018
0.1.8 1,004 3/30/2018
0.1.6 880 3/26/2018
0.1.4 913 3/5/2018
0.1.3 980 3/5/2018
0.1.1 905 2/27/2018

添加ParticleCanvas。