public override void AssignProperties(ISharpRenderer <global::Android.Views.View> renderer, int level, NewState newState, TProps previous, TProps nextProps) { base.AssignProperties(renderer, level, newState, previous, nextProps); UpdateAppCompatEditTextWithInstanceProperties(Element, previous, nextProps); PostAssignAppCompatEditTextProperties(renderer, level, newState, previous, nextProps); }
partial void PostAssignActivityChooserViewProperties(ISharpRenderer <global::Android.Views.View> renderer, int level, NewState newState, TProps previous, TProps nextProps);
public override void AssignProperties(ISharpRenderer <global::System.Windows.UIElement> renderer, int level, NewState newState, TProps previous, TProps nextProps) { base.AssignProperties(renderer, level, newState, previous, nextProps); }
public override void AssignProperties(ISharpRenderer <global::System.Windows.UIElement> renderer, int level, NewState newState, TProps previous, TProps nextProps) { base.AssignProperties(renderer, level, newState, previous, nextProps); if (nextProps.IsReadOnly.HasValue) { Element.IsReadOnly = nextProps.IsReadOnly.Value.Value; } if (nextProps.IsReadOnlyCaretVisible.HasValue) { Element.IsReadOnlyCaretVisible = nextProps.IsReadOnlyCaretVisible.Value.Value; } if (nextProps.AcceptsReturn.HasValue) { Element.AcceptsReturn = nextProps.AcceptsReturn.Value.Value; } if (nextProps.AcceptsTab.HasValue) { Element.AcceptsTab = nextProps.AcceptsTab.Value.Value; } if (nextProps.HorizontalScrollBarVisibility.HasValue) { Element.HorizontalScrollBarVisibility = nextProps.HorizontalScrollBarVisibility.Value.Value; } if (nextProps.VerticalScrollBarVisibility.HasValue) { Element.VerticalScrollBarVisibility = nextProps.VerticalScrollBarVisibility.Value.Value; } if (nextProps.IsUndoEnabled.HasValue) { Element.IsUndoEnabled = nextProps.IsUndoEnabled.Value.Value; } if (nextProps.UndoLimit.HasValue) { Element.UndoLimit = nextProps.UndoLimit.Value.Value; } if (nextProps.AutoWordSelection.HasValue) { Element.AutoWordSelection = nextProps.AutoWordSelection.Value.Value; } if (nextProps.SelectionBrush.HasValue) { Element.SelectionBrush = nextProps.SelectionBrush.Value.Value; } if (nextProps.SelectionOpacity.HasValue) { Element.SelectionOpacity = nextProps.SelectionOpacity.Value.Value; } if (nextProps.CaretBrush.HasValue) { Element.CaretBrush = nextProps.CaretBrush.Value.Value; } if (nextProps.IsInactiveSelectionHighlightEnabled.HasValue) { Element.IsInactiveSelectionHighlightEnabled = nextProps.IsInactiveSelectionHighlightEnabled.Value.Value; } if (!ReferenceEquals(previous?.TextChanged, null) && ReferenceEquals(nextProps.TextChanged, null)) { Element.TextChanged -= nextProps.TextChanged; } if (ReferenceEquals(previous?.TextChanged, null) && !ReferenceEquals(nextProps.TextChanged, null)) { Element.TextChanged += nextProps.TextChanged; } if (!ReferenceEquals(previous?.SelectionChanged, null) && ReferenceEquals(nextProps.SelectionChanged, null)) { Element.SelectionChanged -= nextProps.SelectionChanged; } if (ReferenceEquals(previous?.SelectionChanged, null) && !ReferenceEquals(nextProps.SelectionChanged, null)) { Element.SelectionChanged += nextProps.SelectionChanged; } }
public override void AssignProperties(ISharpRenderer <Core.MockUI.Test.Elements.UIElement> renderer, int level, NewState newState, TProps previous, TProps nextProps) { base.AssignProperties(renderer, level, newState, previous, nextProps); UpdateTextBlockWithInstanceProperties(Element, previous, nextProps); }
public ReactAdapter(ISharpRenderer <Elements.UIElement> renderer) { this.renderer = renderer; }
protected override void UpdateElement(ISharpRenderer renderer, TElement element, TProps props) { base.UpdateElement(renderer, element, props); UpdateWebViewWithInstanceProperties(element, null, props); }
public override void AssignProperties(ISharpRenderer <global::System.Windows.UIElement> renderer, int level, NewState newState, TProps previous, TProps nextProps) { base.AssignProperties(renderer, level, newState, previous, nextProps); if (nextProps.CalendarStyle.HasValue) { Element.CalendarStyle = nextProps.CalendarStyle.Value.Value; } if (nextProps.DisplayDate.HasValue) { Element.DisplayDate = nextProps.DisplayDate.Value.Value; } if (nextProps.DisplayDateEnd.HasValue) { Element.DisplayDateEnd = nextProps.DisplayDateEnd.Value.Value; } if (nextProps.DisplayDateStart.HasValue) { Element.DisplayDateStart = nextProps.DisplayDateStart.Value.Value; } if (nextProps.FirstDayOfWeek.HasValue) { Element.FirstDayOfWeek = nextProps.FirstDayOfWeek.Value.Value; } if (nextProps.IsDropDownOpen.HasValue) { Element.IsDropDownOpen = nextProps.IsDropDownOpen.Value.Value; } if (nextProps.IsTodayHighlighted.HasValue) { Element.IsTodayHighlighted = nextProps.IsTodayHighlighted.Value.Value; } if (nextProps.SelectedDate.HasValue) { Element.SelectedDate = nextProps.SelectedDate.Value.Value; } if (nextProps.SelectedDateFormat.HasValue) { Element.SelectedDateFormat = nextProps.SelectedDateFormat.Value.Value; } if (nextProps.Text.HasValue) { Element.Text = nextProps.Text.Value.Value; } if (!ReferenceEquals(previous?.CalendarClosed, null) && ReferenceEquals(nextProps.CalendarClosed, null)) { Element.CalendarClosed -= nextProps.CalendarClosed; } if (ReferenceEquals(previous?.CalendarClosed, null) && !ReferenceEquals(nextProps.CalendarClosed, null)) { Element.CalendarClosed += nextProps.CalendarClosed; } if (!ReferenceEquals(previous?.CalendarOpened, null) && ReferenceEquals(nextProps.CalendarOpened, null)) { Element.CalendarOpened -= nextProps.CalendarOpened; } if (ReferenceEquals(previous?.CalendarOpened, null) && !ReferenceEquals(nextProps.CalendarOpened, null)) { Element.CalendarOpened += nextProps.CalendarOpened; } if (!ReferenceEquals(previous?.DateValidationError, null) && ReferenceEquals(nextProps.DateValidationError, null)) { Element.DateValidationError -= nextProps.DateValidationError; } if (ReferenceEquals(previous?.DateValidationError, null) && !ReferenceEquals(nextProps.DateValidationError, null)) { Element.DateValidationError += nextProps.DateValidationError; } if (!ReferenceEquals(previous?.SelectedDateChanged, null) && ReferenceEquals(nextProps.SelectedDateChanged, null)) { Element.SelectedDateChanged -= nextProps.SelectedDateChanged; } if (ReferenceEquals(previous?.SelectedDateChanged, null) && !ReferenceEquals(nextProps.SelectedDateChanged, null)) { Element.SelectedDateChanged += nextProps.SelectedDateChanged; } }
partial void PostAssignRelativeLayoutProperties(ISharpRenderer <global::Android.Views.View> renderer, int level, NewState newState, TProps previous, TProps nextProps);
partial void PostAssignMediaControllerProperties(ISharpRenderer <global::Android.Views.View> renderer, int level, NewState newState, TProps previous, TProps nextProps);
public override void AssignProperties(ISharpRenderer <global::System.Windows.UIElement> renderer, int level, NewState newState, TProps previous, TProps nextProps) { base.AssignProperties(renderer, level, newState, previous, nextProps); if (nextProps.BaselineOffset.HasValue) { Element.BaselineOffset = nextProps.BaselineOffset.Value.Value; } if (nextProps.Text.HasValue) { Element.Text = nextProps.Text.Value.Value; } if (nextProps.FontFamily.HasValue) { Element.FontFamily = nextProps.FontFamily.Value.Value; } if (nextProps.FontStyle.HasValue) { Element.FontStyle = nextProps.FontStyle.Value.Value; } if (nextProps.FontWeight.HasValue) { Element.FontWeight = nextProps.FontWeight.Value.Value; } if (nextProps.FontStretch.HasValue) { Element.FontStretch = nextProps.FontStretch.Value.Value; } if (nextProps.FontSize.HasValue) { Element.FontSize = nextProps.FontSize.Value.Value; } if (nextProps.Foreground.HasValue) { Element.Foreground = nextProps.Foreground.Value.Value; } if (nextProps.Background.HasValue) { Element.Background = nextProps.Background.Value.Value; } if (nextProps.TextDecorations.HasValue) { Element.TextDecorations = nextProps.TextDecorations.Value.Value; } if (nextProps.TextEffects.HasValue) { Element.TextEffects = nextProps.TextEffects.Value.Value; } if (nextProps.LineHeight.HasValue) { Element.LineHeight = nextProps.LineHeight.Value.Value; } if (nextProps.LineStackingStrategy.HasValue) { Element.LineStackingStrategy = nextProps.LineStackingStrategy.Value.Value; } if (nextProps.Padding.HasValue) { Element.Padding = nextProps.Padding.Value.Value; } if (nextProps.TextAlignment.HasValue) { Element.TextAlignment = nextProps.TextAlignment.Value.Value; } if (nextProps.TextTrimming.HasValue) { Element.TextTrimming = nextProps.TextTrimming.Value.Value; } if (nextProps.TextWrapping.HasValue) { Element.TextWrapping = nextProps.TextWrapping.Value.Value; } if (nextProps.IsHyphenationEnabled.HasValue) { Element.IsHyphenationEnabled = nextProps.IsHyphenationEnabled.Value.Value; } }
public override void AssignProperties(ISharpRenderer <global::System.Windows.UIElement> renderer, int level, NewState newState, TProps previous, TProps nextProps) { base.AssignProperties(renderer, level, newState, previous, nextProps); if (nextProps.Background.HasValue) { Element.Background = nextProps.Background.Value.Value; } if (nextProps.Strokes.HasValue) { Element.Strokes = nextProps.Strokes.Value.Value; } { var elements = renderer.VisitAllCollection(level, newState, previous?.Children, nextProps.Children, nameof(Element.Children), nameof(SharpReact.Wpf.Props.InkCanvas)); ElementSynchronizer.SyncElements(Element.Children, elements); } if (nextProps.DefaultDrawingAttributes.HasValue) { Element.DefaultDrawingAttributes = nextProps.DefaultDrawingAttributes.Value.Value; } if (nextProps.EraserShape.HasValue) { Element.EraserShape = nextProps.EraserShape.Value.Value; } if (nextProps.EditingMode.HasValue) { Element.EditingMode = nextProps.EditingMode.Value.Value; } if (nextProps.EditingModeInverted.HasValue) { Element.EditingModeInverted = nextProps.EditingModeInverted.Value.Value; } if (nextProps.UseCustomCursor.HasValue) { Element.UseCustomCursor = nextProps.UseCustomCursor.Value.Value; } if (nextProps.MoveEnabled.HasValue) { Element.MoveEnabled = nextProps.MoveEnabled.Value.Value; } if (nextProps.ResizeEnabled.HasValue) { Element.ResizeEnabled = nextProps.ResizeEnabled.Value.Value; } if (nextProps.DefaultStylusPointDescription.HasValue) { Element.DefaultStylusPointDescription = nextProps.DefaultStylusPointDescription.Value.Value; } if (nextProps.PreferredPasteFormats.HasValue) { Element.PreferredPasteFormats = nextProps.PreferredPasteFormats.Value.Value; } if (!ReferenceEquals(previous?.StrokeCollected, null) && ReferenceEquals(nextProps.StrokeCollected, null)) { Element.StrokeCollected -= nextProps.StrokeCollected; } if (ReferenceEquals(previous?.StrokeCollected, null) && !ReferenceEquals(nextProps.StrokeCollected, null)) { Element.StrokeCollected += nextProps.StrokeCollected; } if (!ReferenceEquals(previous?.Gesture, null) && ReferenceEquals(nextProps.Gesture, null)) { Element.Gesture -= nextProps.Gesture; } if (ReferenceEquals(previous?.Gesture, null) && !ReferenceEquals(nextProps.Gesture, null)) { Element.Gesture += nextProps.Gesture; } if (!ReferenceEquals(previous?.StrokesReplaced, null) && ReferenceEquals(nextProps.StrokesReplaced, null)) { Element.StrokesReplaced -= nextProps.StrokesReplaced; } if (ReferenceEquals(previous?.StrokesReplaced, null) && !ReferenceEquals(nextProps.StrokesReplaced, null)) { Element.StrokesReplaced += nextProps.StrokesReplaced; } if (!ReferenceEquals(previous?.DefaultDrawingAttributesReplaced, null) && ReferenceEquals(nextProps.DefaultDrawingAttributesReplaced, null)) { Element.DefaultDrawingAttributesReplaced -= nextProps.DefaultDrawingAttributesReplaced; } if (ReferenceEquals(previous?.DefaultDrawingAttributesReplaced, null) && !ReferenceEquals(nextProps.DefaultDrawingAttributesReplaced, null)) { Element.DefaultDrawingAttributesReplaced += nextProps.DefaultDrawingAttributesReplaced; } if (!ReferenceEquals(previous?.ActiveEditingModeChanged, null) && ReferenceEquals(nextProps.ActiveEditingModeChanged, null)) { Element.ActiveEditingModeChanged -= nextProps.ActiveEditingModeChanged; } if (ReferenceEquals(previous?.ActiveEditingModeChanged, null) && !ReferenceEquals(nextProps.ActiveEditingModeChanged, null)) { Element.ActiveEditingModeChanged += nextProps.ActiveEditingModeChanged; } if (!ReferenceEquals(previous?.EditingModeChanged, null) && ReferenceEquals(nextProps.EditingModeChanged, null)) { Element.EditingModeChanged -= nextProps.EditingModeChanged; } if (ReferenceEquals(previous?.EditingModeChanged, null) && !ReferenceEquals(nextProps.EditingModeChanged, null)) { Element.EditingModeChanged += nextProps.EditingModeChanged; } if (!ReferenceEquals(previous?.EditingModeInvertedChanged, null) && ReferenceEquals(nextProps.EditingModeInvertedChanged, null)) { Element.EditingModeInvertedChanged -= nextProps.EditingModeInvertedChanged; } if (ReferenceEquals(previous?.EditingModeInvertedChanged, null) && !ReferenceEquals(nextProps.EditingModeInvertedChanged, null)) { Element.EditingModeInvertedChanged += nextProps.EditingModeInvertedChanged; } if (!ReferenceEquals(previous?.SelectionMoving, null) && ReferenceEquals(nextProps.SelectionMoving, null)) { Element.SelectionMoving -= nextProps.SelectionMoving; } if (ReferenceEquals(previous?.SelectionMoving, null) && !ReferenceEquals(nextProps.SelectionMoving, null)) { Element.SelectionMoving += nextProps.SelectionMoving; } if (!ReferenceEquals(previous?.SelectionMoved, null) && ReferenceEquals(nextProps.SelectionMoved, null)) { Element.SelectionMoved -= nextProps.SelectionMoved; } if (ReferenceEquals(previous?.SelectionMoved, null) && !ReferenceEquals(nextProps.SelectionMoved, null)) { Element.SelectionMoved += nextProps.SelectionMoved; } if (!ReferenceEquals(previous?.StrokeErasing, null) && ReferenceEquals(nextProps.StrokeErasing, null)) { Element.StrokeErasing -= nextProps.StrokeErasing; } if (ReferenceEquals(previous?.StrokeErasing, null) && !ReferenceEquals(nextProps.StrokeErasing, null)) { Element.StrokeErasing += nextProps.StrokeErasing; } if (!ReferenceEquals(previous?.StrokeErased, null) && ReferenceEquals(nextProps.StrokeErased, null)) { Element.StrokeErased -= nextProps.StrokeErased; } if (ReferenceEquals(previous?.StrokeErased, null) && !ReferenceEquals(nextProps.StrokeErased, null)) { Element.StrokeErased += nextProps.StrokeErased; } if (!ReferenceEquals(previous?.SelectionResizing, null) && ReferenceEquals(nextProps.SelectionResizing, null)) { Element.SelectionResizing -= nextProps.SelectionResizing; } if (ReferenceEquals(previous?.SelectionResizing, null) && !ReferenceEquals(nextProps.SelectionResizing, null)) { Element.SelectionResizing += nextProps.SelectionResizing; } if (!ReferenceEquals(previous?.SelectionResized, null) && ReferenceEquals(nextProps.SelectionResized, null)) { Element.SelectionResized -= nextProps.SelectionResized; } if (ReferenceEquals(previous?.SelectionResized, null) && !ReferenceEquals(nextProps.SelectionResized, null)) { Element.SelectionResized += nextProps.SelectionResized; } if (!ReferenceEquals(previous?.SelectionChanging, null) && ReferenceEquals(nextProps.SelectionChanging, null)) { Element.SelectionChanging -= nextProps.SelectionChanging; } if (ReferenceEquals(previous?.SelectionChanging, null) && !ReferenceEquals(nextProps.SelectionChanging, null)) { Element.SelectionChanging += nextProps.SelectionChanging; } if (!ReferenceEquals(previous?.SelectionChanged, null) && ReferenceEquals(nextProps.SelectionChanged, null)) { Element.SelectionChanged -= nextProps.SelectionChanged; } if (ReferenceEquals(previous?.SelectionChanged, null) && !ReferenceEquals(nextProps.SelectionChanged, null)) { Element.SelectionChanged += nextProps.SelectionChanged; } }
partial void PostAssignMultiAutoCompleteTextViewProperties(ISharpRenderer <global::Android.Views.View> renderer, int level, NewState newState, TProps previous, TProps nextProps);
public override void AssignProperties(ISharpRenderer <UIElement> renderer, int level, NewState newState, TProps previous, TProps nextProps) { base.AssignProperties(renderer, level, newState, previous, nextProps); Element.Text = nextProps.Text; }
partial void PostAssignAppCompatEditTextProperties(ISharpRenderer <global::Android.Views.View> renderer, int level, NewState newState, TProps previous, TProps nextProps);
partial void PostAssignPagerTabStripProperties(ISharpRenderer <global::Android.Views.View> renderer, int level, NewState newState, TProps previous, TProps nextProps);
protected override void UpdateElement(ISharpRenderer renderer, TElement element, TProps props) { base.UpdateElement(renderer, element, props); UpdateAppCompatEditTextWithInstanceProperties(element, null, props); }
partial void PostAssignFragmentBreadCrumbsProperties(ISharpRenderer <global::Android.Views.View> renderer, int level, NewState newState, TProps previous, TProps nextProps);