Change condition to positive checks

This commit is contained in:
Javier Suárez Ruiz 2017-06-20 19:41:19 +02:00
Родитель facc8669c9
Коммит 1d141c8233
4 изменённых файлов: 14 добавлений и 12 удалений

Просмотреть файл

@ -5,7 +5,7 @@
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{7F4F28E9-E66B-4AB7-8E6F-B9781DECBDB7}</ProjectGuid>
<ProjectGuid>{88DC2010-BE3A-4B86-A72F-3DF68413858B}</ProjectGuid>
<ProjectTypeGuids>{EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>

Просмотреть файл

@ -4,7 +4,7 @@
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{424CAA3E-8CA0-4D8E-9A01-C1FB3ADB8EFD}</ProjectGuid>
<ProjectGuid>{98F91808-0410-4362-9B3A-BD5110BEECDE}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>FormsCommunityToolkit.Animations.UWP</RootNamespace>

Просмотреть файл

@ -5,7 +5,7 @@
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{C25EA1CA-EB61-4478-85D4-F7772EF7284B}</ProjectGuid>
<ProjectGuid>{F09F8CAF-701A-4673-A880-1580ACCB926B}</ProjectGuid>
<ProjectTypeGuids>{FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<RootNamespace>FormsCommunityToolkit.Animations.iOS</RootNamespace>

Просмотреть файл

@ -14,15 +14,17 @@ namespace FormsCommunityToolkit.Animations
if (Animation != null)
{
if (Animation.Target == null)
{
Animation.Target = associatedObject;
}
var delay = Task.Delay(250);
await Task.WhenAll(delay);
await Animation.Begin();
return;
}
if (Animation.Target == null)
{
Animation.Target = associatedObject;
}
var delay = Task.Delay(250);
await Task.WhenAll(delay);
await Animation.Begin();
}
protected override void OnDetachingFrom(VisualElement bindable)
@ -39,6 +41,6 @@ namespace FormsCommunityToolkit.Animations
{
get { return (AnimationBase)GetValue(AnimationProperty); }
set { SetValue(AnimationProperty, value); }
}
}
}
}