private void element_ChildAdded(object sender, ElementEventArgs e) { var visualElement = (VisualElement)e.Element; IWinRTRenderer renderer = RendererFactory.GetRenderer(visualElement); visualElement.SetRenderer(renderer); this.Children.Add((UIElement)renderer); }
// Is possible add only 3 photo private void Grid_ChildAdded(object sender, ElementEventArgs e) { if (gridColumnIndex < 2) { gridColumnIndex++; } else { addProfiloImage.IsVisible = false; takePicture.IsVisible = false; } }
static void e_ChildAdded(object sender, ElementEventArgs e) { var padding = UniPadding.GetPadding((BindableObject)sender); }
void OnChildRemoved(object sender, ElementEventArgs eventArgs) { var page = eventArgs.Element as Page; if (page == null) return; UnregisterChildPage(page); }
private void SelectionTab_ChildRemoved(object sender, ElementEventArgs e) { this.Refresh(); }