SPARK-2256 - adding a create_common method so changes between OB and Mini OB are kept in sync
This commit is contained in:
1 parent
f2421133cb
commit
eb0930b140
1 file changed
+11
@@ -42,6 +42,17 @@ namespace mbts.ui.spark {
|
||||
static OrderParamsPanel() =>
|
||||
DefaultStyleKeyProperty.OverrideMetadata(typeof(OrderParamsPanel), new FrameworkPropertyMetadata(typeof(OrderParamsPanel)));
|
||||
|
||||
public static OrderParamsPanel create_common() {
|
||||
return new OrderParamsPanel {
|
||||
Margin = new Thickness(6),
|
||||
CanUserChangeAlgoRoot = true,
|
||||
ShowAccount = false,
|
||||
ShowTimeInForce = false,
|
||||
ShowCalculatorButtons = false,
|
||||
ShowBBO = false
|
||||
};
|
||||
}
|
||||
|
||||
#region IsReadOnly
|
||||
public static readonly DependencyProperty IsReadOnlyProperty =
|
||||
WPFHelper.create_dp<bool, OrderParamsPanel>(nameof(IsReadOnly));
|
||||
|
||||
Reference in new issue
Block a user