예제 #1
0
 protected void OnPrepareContainerForItem(PrepareContainerForItemEventArgs args)
 {
     if (PrepareContainerForItem != null)
     {
         PrepareContainerForItem(this, args);
     }
 }
예제 #2
0
		private void OnPrepareContainerForItem(object sender, PrepareContainerForItemEventArgs e)
		{
			var element = (UIElement)e.Element;
			element.MouseLeftButtonUp += ElementMouseLeftButtonUp;
			element.ManipulationStarted += ElementManipulationStarted;
			element.ManipulationDelta += ElementManipulationDelta;
		}
예제 #3
0
        private void ItemsOnPrepareContainerForItem(object sender, PrepareContainerForItemEventArgs args)
        {
            var element = ((FrameworkElement)args.Element);

            element.Tapped += OnTapped;
            element.Tag     = args.Item;
        }
예제 #4
0
		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;
		}
예제 #5
0
        private void OnPrepareContainerForItem(object sender, PrepareContainerForItemEventArgs e)
        {
            var element = (UIElement)e.Element;

            element.MouseLeftButtonUp   += ElementMouseLeftButtonUp;
            element.ManipulationStarted += ElementManipulationStarted;
            element.ManipulationDelta   += ElementManipulationDelta;
        }
예제 #6
0
        private void OnPrepareContainerForItem(PrepareContainerForItemEventArgs args)
        {
            var copy = PrepareContainerForItem;

            if (copy != null)
            {
                copy(this, args);
            }
        }
예제 #7
0
        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;
        }
예제 #8
0
        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;
        }
예제 #9
0
        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;
        }
예제 #10
0
		protected void OnPrepareContainerForItem(PrepareContainerForItemEventArgs args)
		{
			if (PrepareContainerForItem != null)
				PrepareContainerForItem(this, args);
		}
예제 #11
0
 private void OnPrepareContainerForItem(PrepareContainerForItemEventArgs args)
 {
     var copy = PrepareContainerForItem;
     if (copy != null)
         copy(this, args);
 }
예제 #12
0
		private void ItemsOnPrepareContainerForItem(object sender, PrepareContainerForItemEventArgs args)
		{
			var element = ((FrameworkElement)args.Element);
			element.Tapped += OnTapped;
			element.Tag = args.Item;
		}