protected void OnPrepareContainerForItem(PrepareContainerForItemEventArgs args) { if (PrepareContainerForItem != null) { PrepareContainerForItem(this, args); } }
private void OnPrepareContainerForItem(object sender, PrepareContainerForItemEventArgs e) { var element = (UIElement)e.Element; element.MouseLeftButtonUp += ElementMouseLeftButtonUp; element.ManipulationStarted += ElementManipulationStarted; element.ManipulationDelta += ElementManipulationDelta; }
private void ItemsOnPrepareContainerForItem(object sender, PrepareContainerForItemEventArgs args) { var element = ((FrameworkElement)args.Element); element.Tapped += OnTapped; element.Tag = args.Item; }
private void OnPrepareContainerForItem(object sender, PrepareContainerForItemEventArgs e) { var item = (ListBoxItem)e.Element; item.Content = new DataGridRow(this, e.Item); item.ContentTemplate = null; item.HorizontalContentAlignment = HorizontalAlignment.Stretch; item.VerticalContentAlignment = VerticalAlignment.Stretch; }
private void OnPrepareContainerForItem(PrepareContainerForItemEventArgs args) { var copy = PrepareContainerForItem; if (copy != null) { copy(this, args); } }
private void OnPrepareContainerForItem(object sender, PrepareContainerForItemEventArgs args) { var item = (ListBoxItem)args.Element; item.Content = new DataGridRow(this, args.Item); item.ContentTemplate = null; item.HorizontalContentAlignment = HorizontalAlignment.Stretch; item.VerticalContentAlignment = VerticalAlignment.Stretch; item.Tapped += OnTapped; }
private void OnPrepareContainerForItem(object sender, PrepareContainerForItemEventArgs args) { var item = (ListBoxItem)args.Element; item.Padding = new Thickness(); // remove padding (use CellMargin instead) item.Content = new DataGridRow(this, args.Item); item.ContentTemplate = null; item.HorizontalContentAlignment = HorizontalAlignment.Stretch; item.VerticalContentAlignment = VerticalAlignment.Stretch; item.Tapped += OnTapped; }
private void OnPrepareContainerForItem(object sender, PrepareContainerForItemEventArgs e) { var row = new DataGridRow(this, e.Item); row.IsSelected = e.Item == SelectedItem; var item = (ListBoxItem)e.Element; item.Content = row; item.ContentTemplate = null; item.HorizontalContentAlignment = HorizontalAlignment.Stretch; item.VerticalContentAlignment = VerticalAlignment.Stretch; item.Tapped += OnTapped; }
protected void OnPrepareContainerForItem(PrepareContainerForItemEventArgs args) { if (PrepareContainerForItem != null) PrepareContainerForItem(this, args); }
private void OnPrepareContainerForItem(PrepareContainerForItemEventArgs args) { var copy = PrepareContainerForItem; if (copy != null) copy(this, args); }