Exemplo n.º 1
0
 private int InsertScalarElementsAfter(ScalarBinding scalarBinding, int index, int count)
 {
     for (int i = 0; i < count; i++)
     {
         var element = scalarBinding.Setup(scalarBinding.FlowRepeatCount - count + i);
         ElementCollection.Insert(index + i + 1, element);
     }
     return(index + count);
 }
Exemplo n.º 2
0
        private static UIElement GenerateElement(ScalarBinding binding, int flowIndex)
        {
            binding.BeginSetup(null);
            var result = binding.Setup(flowIndex);

            binding.EndSetup();
            binding.Refresh(result);
            return(result);
        }