public void PropertyNotificationNotifyEventArgsGetTargetProperty() { tlog.Debug(tag, $"PropertyNotificationNotifyEventArgsGetTargetProperty START"); var view = new View(); Assert.IsNotNull(view, "should not be null."); Assert.IsInstanceOf <View>(view, "should be an instance of View class!"); var dummy = view.AddPropertyNotification("PositionX", PropertyCondition.GreaterThan(100.0f)); Assert.IsNotNull(dummy, "should not be null."); Assert.IsInstanceOf <PropertyNotification>(dummy, "should be an instance of PropertyNotification class!"); var testingTarget = new PropertyNotification.NotifyEventArgs(); Assert.NotNull(testingTarget, "Should be not null"); Assert.IsInstanceOf <PropertyNotification.NotifyEventArgs>(testingTarget, "Should be an instance of PropertyNotification.PropertyNotificationNotifyEventArgs"); testingTarget.PropertyNotification = dummy; Assert.AreEqual(13, testingTarget.PropertyNotification.GetTargetProperty(), "Should be equal!"); dummy.Dispose(); view.Dispose(); tlog.Debug(tag, $"PropertyNotificationNotifyEventArgsGetTargetProperty END (OK)"); }
public void PropertyNotificationNotifyEventArgsContructor() { tlog.Debug(tag, $"PropertyNotificationNotifyEventArgsContructor START"); var testingTarget = new PropertyNotification.NotifyEventArgs(); Assert.NotNull(testingTarget, "Should be not null"); Assert.IsInstanceOf<PropertyNotification.NotifyEventArgs>(testingTarget, "Should be an instance of PropertyNotification.PropertyNotificationNotifyEventArgs"); tlog.Debug(tag, $"PropertyNotificationNotifyEventArgsContructor END (OK)"); }
private void OnItemSizeChanged(object source, PropertyNotification.NotifyEventArgs args) { layoutManager.Layout(ScrollingDirection == Direction.Horizontal ? ContentContainer.CurrentPosition.X : ContentContainer.CurrentPosition.Y); }
private void OnPropertyChanged(object source, PropertyNotification.NotifyEventArgs args) { OnScroll(); }