Compare commits

..
Author SHA1 Message Date
John Colvin 620ea66b75 fix flickering pnl hyperlink hover background 2019-11-19 00:06:20 -06:00
John Colvin 5707c5b2ee fix flickering mview hyperlink hover background 2019-11-19 00:06:20 -06:00
John Colvin dbeaf3b51f PNLView - HyperlinkCell mouse hover animation 2019-11-19 00:06:20 -06:00
John Colvin 663bf5365f PNLView - set Hyperlink/TextCell 'SnapToDevicePixels' to true 2019-11-19 00:06:20 -06:00
John Colvin 9c5e7d9d34 PNLView - get rid of magic const row height 2019-11-19 00:06:20 -06:00
John Colvin 5c03bfbed3 PNLView.xaml - factor out common TextCell props into base style 2019-11-19 00:06:20 -06:00
John Colvin 7da49f2bf9 PNLView.xaml - factor out common HyperlinkCell props into base style 2019-11-19 00:06:19 -06:00
John Colvin f5a19ce181 set HyperlinkCell 'HyperlinkClickMode' default to 'Anywhere' 2019-11-19 00:06:19 -06:00
John Colvin c251330f29 remove HyperlinkColumn props 'padding' and 'HyperlinkClickMode' (callers should set them through the ElementStyle prop) 2019-11-19 00:06:19 -06:00
John Colvin c475127e15 add 'AffectsRender' flag to Hyperlink/TextCell HorizontalContentAlignment dps 2019-11-19 00:06:19 -06:00
John Colvin a65ce758fd fix Hyperlink/TextCell padding (actually use it) 2019-11-19 00:06:19 -06:00
John Colvin 5210623818 after opening, mview remembers subsequent security criteria changes in workspace 2019-11-19 00:06:19 -06:00
John Colvin 03acf86fab mview synth fills popup only shows fills of synth root algos 2019-11-19 00:06:19 -06:00
John Colvin 1dbcf13fda mview mini ob only shows working orders 2019-11-19 00:06:19 -06:00
John Colvin 5f295d10ea mview mini orderbook only shows exchange orders for outrights, spreader orders for synths 2019-11-19 00:06:19 -06:00
John Colvin a3ff25cc73 fix mview sorting (use new ColumnSortManager) 2019-11-19 00:06:19 -06:00
John Colvin ebfae23a7a MarketViewVM - move local methods (in constructor) to bottom 2019-11-19 00:06:18 -06:00
John Colvin 7fdbe8912b mview order ticket popup closes on send 2019-11-19 00:06:18 -06:00
John Colvin b4e58f161d mview toolbar menu items open regular windows instead of minis (for now) 2019-11-19 00:06:18 -06:00
John Colvin 11a7f0172d mview fills/orderbook toolbar menu items open the new popups 2019-11-19 00:06:18 -06:00
John Colvin f354dc1677 DIYGridRowsPresenter initialization in Loaded callback is idempotent (Loaded event not always followed by Unloaded event) 2019-11-19 00:06:18 -06:00
John Colvin 48e3928db9 mview popups use AutoHideScrollBar to prevent scrollbars from covering data 2019-11-19 00:06:18 -06:00
John Colvin 85b5a51132 mview 'Position' column shows day position (uses position service) 2019-11-19 00:06:18 -06:00
John Colvin b758cac9f9 tweak HyperlinkCell mouse-capture/mouse-over-click-area logic 2019-11-19 00:06:18 -06:00
John Colvin c6a31f7a4d clean up DIYGrid TextColumn (mimic recent changes in HyperlinkColumn) 2019-11-19 00:06:18 -06:00
John Colvin 145d0606d6 fix TextCell alignment issues 2019-11-19 00:06:18 -06:00
John Colvin 253c3b7cd3 SP-257 mview popups for working orders & day fills 2019-11-19 00:06:13 -06:00
John Colvin 534d28b038 spruce up hamburger menu 2019-11-18 23:48:38 -06:00
John Colvin 2d088a129f add 'Freeze' prop to BrushExtension 2019-11-18 23:48:38 -06:00
John Colvin 5d0e3de573 add ITimeAndSalesGridSettingsMigrationRule 2019-11-18 23:48:38 -06:00
John Colvin 3a04e12b64 DIYGridCellHoverAdorner 2019-11-18 23:48:38 -06:00
John Colvin 37188f52a1 refactor DIYGrid.SelectionHighlight to be Color instead of Brush (also fixes drag rect adorner bug, where the color wouldn't respond to settings changes) 2019-11-18 23:48:38 -06:00
John Colvin 91f99f7086 HighPerformanceRow does not depend on TColumn 2019-11-18 23:48:38 -06:00
John Colvin 481bf72489 fix typo in ColumnGeometry (was assigning 'left' to 'unclicpped_left') 2019-11-18 23:48:38 -06:00
John Colvin a45112965f add 'HyperlinkClickMode' to HyperlinkCell to support cmd on click anywhere 2019-11-18 23:48:38 -06:00
John Colvin 2c67b06b39 fix HyperlinkCell HorizontalAlignment binding 2019-11-18 23:48:38 -06:00
John Colvin fbfbccd6ee market view row 'inside working orders' comparison to bbo was backwards 2019-11-18 23:48:38 -06:00
John Colvin f90a5f6e0d MarketViewVM does not derive from SecurityMDGrid 2019-11-18 23:48:38 -06:00
John Colvin f9fbebea67 clip mview animations to scroll content presenter bounds 2019-11-18 23:48:28 -06:00
John Colvin 4f27091fa0 factor out pnl auxiliary popups for general use (mview) 2019-11-18 23:23:29 -06:00
John Colvin effb92fd5d introduce WindowStyle.UnsafeWindow dp 2019-11-18 23:20:47 -06:00
John Colvin 8d5c088df0 refactor ChildBounds extensions to be for UIElement 2019-11-18 23:20:47 -06:00
John Colvin 0a56c08d99 OrderTypeItem template uses Rectangle instead of Badge (the latter has some unresolved rounding issues) 2019-11-18 23:20:47 -06:00
John Colvin dc5f74dfc8 WPFHelper.measure_content() rounds to layout correctly 2019-11-18 23:20:47 -06:00
John Colvin a63e87883f fix WPFHelper.measure_visual_content - 'left edge' calculation for right align; 'bottom edge' for bottom align 2019-11-18 23:20:47 -06:00
John Colvin c6b271fb31 fix HyperlinkCell Alignment issues 2019-11-18 23:20:47 -06:00
John Colvin 2bd5731430 DIYGrid CellRender.draw_text with layout rounding 2019-11-18 23:20:47 -06:00
4 changed files with 13 additions and 78 deletions

No files matched your search

@@ -4,7 +4,6 @@ using mbts.ui.controls;
using mbts.ui.converters;
using mbts.ui.extensions;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using System.Reactive.Linq;
using System.Windows;
@@ -148,7 +147,7 @@ namespace mbts.ui.spark {
void _show_popup(object content, object header) {
var resources = new AuxiliaryDataResources();
resources.MergedDictionaries.Add(new ScrollBarResources());
resources.MergedDictionaries.Add(new AutoHideScrollbarResources());
_show_popup(content, header, resources);
}
@@ -175,4 +174,4 @@ namespace mbts.ui.spark {
}
class MarketViewRowView : DIYGrid.HighPerformanceRow<MarketViewVM.Row> { }
}
}
@@ -1,5 +1,5 @@
<ResourceDictionary
x:Class="mbts.ui.controls.ScrollBarResources"
x:Class="mbts.ui.controls.AutoHideScrollbarResources"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:u="clr-namespace:mbts.ui"
@@ -1,77 +1,15 @@
using System;
using System.IO;
using System.Diagnostics;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Globalization;
using mbts.ui.native;
using bts;
using System.Windows.Controls.Primitives;
using System.Threading.Tasks;
using mbts.spark;
using mbts.ui.converters;
using mbts.ui.converters;
using mbts.ui.extensions;
using System;
using System.Windows;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Media;
namespace mbts.ui.controls {
partial class ScrollBarResources : ResourceDictionary {
static ScrollBarResources() =>
IsActiveProperty = IsActivePropertyKey.DependencyProperty;
public ScrollBarResources() =>
partial class AutoHideScrollbarResources : ResourceDictionary {
public AutoHideScrollbarResources() =>
InitializeComponent();
#region IsActive
static readonly DependencyPropertyKey IsActivePropertyKey =
DependencyProperty.RegisterAttachedReadOnly("IsActive", typeof(bool), typeof(ScrollBarResources), new PropertyMetadata(false));
public static readonly DependencyProperty IsActiveProperty;
public static bool GetIsActive(DependencyObject d) => (bool)d.GetValue(IsActivePropertyKey.DependencyProperty);
static void SetIsActive(DependencyObject d, bool value) => d.SetValue(IsActivePropertyKey, value);
#endregion
#region LastChangeTime
static readonly DependencyPropertyKey LastChangeTimePropertyKey =
DependencyProperty.RegisterAttachedReadOnly("LastChangeTime", typeof(DateTime), typeof(ScrollBarResources),
new PropertyMetadata(DateTime.MinValue, OnLastChangeTimeChanged));
private static void OnLastChangeTimeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) {
if (!GetIsActive(d)) {
if (e.NewValue is DateTime dt) {
}
}
}
public static readonly DependencyProperty LastChangeTimeProperty;
public static DateTime GetLastChangeTime(DependencyObject d) => (DateTime)d.GetValue(LastChangeTimePropertyKey.DependencyProperty);
static void SetLastChangeTime(DependencyObject d, DateTime value) => d.SetValue(LastChangeTimePropertyKey, value);
#endregion
void ScrollViewer_ScrollChangeTime(object sender, ScrollChangedEventArgs e) {
//ScrollViewer scroll_backing = null;
//if (e.HorizontalChange != 0) {
//}
//ScrollViewer scroll() => scroll_backing ?? (scroll_backing = (ScrollViewer)sender);
}
private void PART_VerticalScrollBar_ValueChanged(object sender, RoutedPropertyChangedEventArgs<double> e) {
if (sender is ScrollBar sb) {
}
}
}
class AutoHideScrollBar : ScrollBar {
@@ -5,10 +5,7 @@ using mbts.ui.utility.text;
using System;
using System.ComponentModel;
using System.Linq;
using System.Reactive.Disposables;
using System.Reactive.Linq;
using System.Threading;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
@@ -51,7 +48,7 @@ namespace mbts.ui.controls {
if (value) {
_mouse_over_click_area_op = WorkLoop.Start(
$"Evaluate {nameof(HyperlinkCell)} {nameof(IsMouseOverClickArea)}",
TimeSpan.FromMilliseconds(10),
TimeSpan.FromMilliseconds(100),
DispatcherPriority.Input,
_on_mouse_changed,
WorkLoop.default_excessive_cycle_ratio);
@@ -98,6 +95,7 @@ namespace mbts.ui.controls {
_border_stroke_pen_backing;
static HyperlinkCell() {
DefaultStyleKeyProperty.OverrideMetadata(typeof(HyperlinkCell), new FrameworkPropertyMetadata(typeof(HyperlinkCell)));
IsMouseOverClickAreaProperty = IsMouseOverClickAreaPropertyKey.DependencyProperty;
DefaultStyleKeyProperty.OverrideMetadata(typeof(HyperlinkCell), new FrameworkPropertyMetadata(typeof(HyperlinkCell)));
WPFHelper.override_metadata<HorizontalAlignment, HyperlinkCell>(