|
|
@@ -129,7 +129,7 @@ public class FactoryPackGrid : DynamicDataGrid<StockHolding>
|
|
|
VerticalContentAlignment = VerticalAlignment.Center,
|
|
|
FontWeight = weight
|
|
|
};
|
|
|
- label.Bind(Label.ContentProperty,binding);
|
|
|
+ label.Bind(Label.ContentProperty,binding, memberSeparator: "_");
|
|
|
result.Children.Add(label);
|
|
|
}
|
|
|
grid.Children.Add(result);
|
|
|
@@ -155,7 +155,7 @@ public class FactoryPackGrid : DynamicDataGrid<StockHolding>
|
|
|
VerticalAlignment = VerticalAlignment.Center,
|
|
|
LayoutTransform = new RotateTransform(-90)
|
|
|
};
|
|
|
- label.Bind<StockHolding,String>(Label.ContentProperty, x=>x.Location.Code);
|
|
|
+ label.Bind<StockHolding,String>(Label.ContentProperty, x=>x.Location.Code, memberSeparator: "_");
|
|
|
label.SetValue(Grid.RowProperty,0);
|
|
|
label.SetValue(Grid.RowSpanProperty,3);
|
|
|
label.SetValue(Grid.ColumnProperty,0);
|
|
|
@@ -176,7 +176,7 @@ public class FactoryPackGrid : DynamicDataGrid<StockHolding>
|
|
|
Stretch = Stretch.Uniform,
|
|
|
Margin=new Thickness(5)
|
|
|
};
|
|
|
- image.Bind<StockHolding,Guid>(Image.SourceProperty, x => x.Product.Image.ID, new GuidToImageSourceConverter() { Images = _images});
|
|
|
+ image.Bind<StockHolding,Guid>(Image.SourceProperty, x => x.Product.Image.ID, new GuidToImageSourceConverter() { Images = _images}, memberSeparator: "_");
|
|
|
image.SetValue(Grid.RowProperty,0);
|
|
|
image.SetValue(Grid.RowSpanProperty,3);
|
|
|
image.SetValue(Grid.ColumnProperty,2);
|
|
|
@@ -198,7 +198,7 @@ public class FactoryPackGrid : DynamicDataGrid<StockHolding>
|
|
|
FontWeight = FontWeights.Bold,
|
|
|
HorizontalAlignment = HorizontalAlignment.Center
|
|
|
};
|
|
|
- qtyLbl.Bind<StockHolding, double>(Label.ContentProperty, x => x.Units, null, BindingMode.Default, "{0:F2}");
|
|
|
+ qtyLbl.Bind<StockHolding, double>(Label.ContentProperty, x => x.Units, null, BindingMode.Default, "{0:F2}", memberSeparator: "_");
|
|
|
buttonContent.Children.Add(qtyLbl);
|
|
|
|
|
|
Label useLbl = new Label()
|
|
|
@@ -213,7 +213,7 @@ public class FactoryPackGrid : DynamicDataGrid<StockHolding>
|
|
|
Margin = new Thickness(5),
|
|
|
Content = buttonContent
|
|
|
};
|
|
|
- button.Bind<StockHolding,Guid>(Image.SourceProperty, x => x.ID);
|
|
|
+ button.Bind<StockHolding,Guid>(Image.SourceProperty, x => x.ID, new GuidToImageSourceConverter() { Images = _images}, memberSeparator: "_");
|
|
|
button.SetValue(Grid.RowProperty,0);
|
|
|
button.SetValue(Grid.RowSpanProperty,4);
|
|
|
button.SetValue(Grid.ColumnProperty,4);
|