-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MultiViewZero is born. Works as a POC.
- Loading branch information
Showing
13 changed files
with
604 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
118 changes: 118 additions & 0 deletions
118
FunctionZero.Maui.Controls/Controls/MultiView/MultiViewAnimation.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace FunctionZero.Maui.Controls | ||
{ | ||
public class MultiViewAnimation : BindableObject | ||
{ | ||
#region FromProperty | ||
|
||
public static readonly BindableProperty FromProperty = BindableProperty.Create(nameof(From), typeof(double), typeof(MultiViewAnimation), 0.0, BindingMode.OneWay, null, FromChanged); | ||
|
||
public double From | ||
{ | ||
get { return (double)GetValue(FromProperty); } | ||
set { SetValue(FromProperty, value); } | ||
} | ||
|
||
private static void FromChanged(BindableObject bindable, object oldValue, object newValue) | ||
{ | ||
var self = (MultiViewAnimation)bindable; | ||
|
||
} | ||
|
||
#endregion | ||
|
||
#region ToViewNameProperty | ||
|
||
public static readonly BindableProperty ToProperty = BindableProperty.Create(nameof(To), typeof(double), typeof(MultiViewAnimation), 0.0, BindingMode.OneWay, null, ToChanged); | ||
|
||
public double To | ||
{ | ||
get { return (double)GetValue(ToProperty); } | ||
set { SetValue(ToProperty, value); } | ||
} | ||
|
||
private static void ToChanged(BindableObject bindable, object oldValue, object newValue) | ||
{ | ||
var self = (MultiViewAnimation)bindable; | ||
|
||
} | ||
|
||
#endregion | ||
|
||
//#region DurationProperty | ||
|
||
//public static readonly BindableProperty DurationProperty = BindableProperty.Create(nameof(Duration), typeof(double), typeof(MultiViewAnimation), 0.0, BindingMode.OneWay, null, DurationChanged); | ||
|
||
//public double Duration | ||
//{ | ||
// get { return (double)GetValue(DurationProperty); } | ||
// set { SetValue(DurationProperty, value); } | ||
//} | ||
|
||
//private static void DurationChanged(BindableObject bindable, object oldValue, object newValue) | ||
//{ | ||
// var self = (MultiViewAnimation)bindable; | ||
|
||
//} | ||
|
||
//#endregion | ||
|
||
#region EasingFuncProperty | ||
|
||
public static readonly BindableProperty EasingFuncProperty = BindableProperty.Create(nameof(EasingFunc), typeof(Easing), typeof(MultiViewAnimation), Easing.Linear, BindingMode.OneWay, null, EasingFuncChanged); | ||
|
||
public Easing EasingFunc | ||
{ | ||
get { return (Easing)GetValue(EasingFuncProperty); } | ||
set { SetValue(EasingFuncProperty, value); } | ||
} | ||
|
||
private static void EasingFuncChanged(BindableObject bindable, object oldValue, object newValue) | ||
{ | ||
var self = (MultiViewAnimation)bindable; | ||
|
||
} | ||
|
||
#endregion | ||
|
||
#region ExpressionProperty | ||
|
||
public static readonly BindableProperty ExpressionProperty = BindableProperty.Create(nameof(Expression), typeof(string), typeof(MultiViewAnimation), string.Empty, BindingMode.OneWay, null, ExpressionChanged); | ||
|
||
public string Expression | ||
{ | ||
get { return (string)GetValue(ExpressionProperty); } | ||
set { SetValue(ExpressionProperty, value); } | ||
} | ||
|
||
private static void ExpressionChanged(BindableObject bindable, object oldValue, object newValue) | ||
{ | ||
var self = (MultiViewAnimation)bindable; | ||
} | ||
|
||
#endregion | ||
|
||
#region FinishedExpressionProperty | ||
|
||
public static readonly BindableProperty FinishedExpressionProperty = BindableProperty.Create(nameof(FinishedExpression), typeof(string), typeof(MultiViewAnimation), string.Empty, BindingMode.OneWay, null, FinishedExpressionChanged); | ||
|
||
public string FinishedExpression | ||
{ | ||
get { return (string)GetValue(FinishedExpressionProperty); } | ||
set { SetValue(FinishedExpressionProperty, value); } | ||
} | ||
|
||
private static void FinishedExpressionChanged(BindableObject bindable, object oldValue, object newValue) | ||
{ | ||
var self = (MultiViewAnimation)bindable; | ||
} | ||
|
||
#endregion | ||
|
||
} | ||
} |
Oops, something went wrong.