提交记录修改UI/Controls/Charts/Charts.cs+107 −20看文件
修改UI/Resources/Themes/Dark/Charts/Charts.xaml+27 −4看文件
修改UI/Resources/Themes/Light/Charts/Charts.xaml+27 −4看文件
修改UI/Themes/Charts/Charts.xaml+32 −2看文件
修改UI/Views/ChartPage.xaml+1 −1看文件
修改UI/Views/DataPage.xaml+3 −3看文件
| @@ -17,6 +17,7 @@ using System.Windows.Shapes; | ||
| 17 | 17 | using System.Windows.Threading; |
| 18 | 18 | using UI.Controls.Base; |
| 19 | 19 | using UI.Controls.Charts.Model; |
| 20 | 新增:using UI.Controls.Input; | |
| 20 | 21 | using UI.Extensions; |
| 21 | 22 | |
| 22 | 23 | namespace UI.Controls.Charts |
| @@ -327,6 +328,23 @@ namespace UI.Controls.Charts | ||
| 327 | 328 | new PropertyMetadata(false)); |
| 328 | 329 | |
| 329 | 330 | |
| 331 | 新增: #endregion | |
| 332 | 新增: #region 是否显示搜索(仅列表样式有效,默认不显示) | |
| 333 | 新增: /// <summary> | |
| 334 | 新增: /// 是否显示搜索(仅列表样式有效,默认不显示) | |
| 335 | 新增: /// </summary> | |
| 336 | 新增: public bool IsSearch | |
| 337 | 新增: { | |
| 338 | 新增: get { return (bool)GetValue(IsSearchProperty); } | |
| 339 | 新增: set { SetValue(IsSearchProperty, value); } | |
| 340 | 新增: } | |
| 341 | 新增: public static readonly DependencyProperty IsSearchProperty = | |
| 342 | 新增: DependencyProperty.Register("IsSearch", | |
| 343 | 新增: typeof(bool), | |
| 344 | 新增: typeof(Charts), | |
| 345 | 新增: new PropertyMetadata(false)); | |
| 346 | 新增: | |
| 347 | 新增: | |
| 330 | 348 | #endregion |
| 331 | 349 | #region 选中列索引(仅柱状图有效) |
| 332 | 350 | /// <summary> |
| @@ -473,12 +491,33 @@ namespace UI.Controls.Charts | ||
| 473 | 491 | /// </summary> |
| 474 | 492 | private int lazyloadedCount = 0; |
| 475 | 493 | private List<ChartsDataModel> lazyloadingData; |
| 494 | 新增: | |
| 495 | 新增: /// <summary> | |
| 496 | 新增: /// 搜索关键字(仅列表样式有效 | |
| 497 | 新增: /// </summary> | |
| 498 | 新增: private string searchKey; | |
| 476 | 499 | public Charts() |
| 477 | 500 | { |
| 478 | 501 | DefaultStyleKey = typeof(Charts); |
| 479 | 502 | |
| 503 | 新增: SizeChanged += Charts_SizeChanged; | |
| 480 | 504 | Unloaded += Charts_Unloaded; |
| 481 | 505 | } |
| 506 | 新增: protected override void OnRender(DrawingContext drawingContext) | |
| 507 | 新增: { | |
| 508 | 新增: base.OnRender(drawingContext); | |
| 509 | 新增: ScrollViewer.Height = 1; | |
| 510 | 新增: } | |
| 511 | 新增: private void Charts_SizeChanged(object sender, SizeChangedEventArgs e) | |
| 512 | 新增: { | |
| 513 | 新增: if (ChartsType == ChartsType.HorizontalA) | |
| 514 | 新增: { | |
| 515 | 新增: var header = GetTemplateChild("AHeader") as Grid; | |
| 516 | 新增: var h = ActualHeight - header.ActualHeight; | |
| 517 | 新增: | |
| 518 | 新增: ScrollViewer.Height = h; | |
| 519 | 新增: } | |
| 520 | 新增: } | |
| 482 | 521 | |
| 483 | 522 | private void Charts_Unloaded(object sender, RoutedEventArgs e) |
| 484 | 523 | { |
| @@ -569,6 +608,9 @@ namespace UI.Controls.Charts | ||
| 569 | 608 | } |
| 570 | 609 | // 适当增加最大值 |
| 571 | 610 | maxValue = Math.Round(maxValue / 2, MidpointRounding.AwayFromZero) * 2 + 2; |
| 611 | 新增: | |
| 612 | 新增: var countText = GetTemplateChild("ACount") as Run; | |
| 613 | 新增: countText.Text = Data.Count().ToString(); | |
| 572 | 614 | } |
| 573 | 615 | } |
| 574 | 616 | |
| @@ -640,28 +682,72 @@ namespace UI.Controls.Charts | ||
| 640 | 682 | lazyloadingData = null; |
| 641 | 683 | isLazyloading = false; |
| 642 | 684 | lazyloadedCount = 0; |
| 685 | 新增: | |
| 643 | 686 | ScrollViewer.ScrollToVerticalOffset(0); |
| 644 | 687 | |
| 645 | 688 | var data = Data.OrderByDescending(x => x.Value).ToList(); |
| 646 | 删除: | |
| 647 | 删除: if (data.Count < 20) | |
| 648 | 删除: { | |
| 649 | 删除: RenderTypeAItems(data, 0, data.Count); | |
| 650 | 删除: } | |
| 651 | 删除: else | |
| 652 | 删除: { | |
| 653 | 删除: isLazyloading = true; | |
| 654 | 删除: RenderTypeAItems(data, 0, 20); | |
| 655 | 删除: lazyloadingData = data; | |
| 656 | 删除: ScrollViewer.ScrollChanged += ScrollViewer_ScrollChanged; | |
| 657 | 删除: } | |
| 658 | 删除: | |
| 689 | 新增: | |
| 690 | 新增: | |
| 691 | 新增: //if (data.Count < 20) | |
| 692 | 新增: //{ | |
| 693 | 新增: // RenderTypeAItems(data, 0, data.Count); | |
| 694 | 新增: //} | |
| 695 | 新增: //else | |
| 696 | 新增: //{ | |
| 697 | 新增: // isLazyloading = true; | |
| 698 | 新增: // RenderTypeAItems(data, 0, 20); | |
| 699 | 新增: // lazyloadingData = data; | |
| 700 | 新增: // ScrollViewer.ScrollChanged += ScrollViewer_ScrollChanged; | |
| 701 | 新增: //} | |
| 702 | 新增: RenderTypeAItems(data, 0, data.Count); | |
| 703 | 新增: | |
| 704 | 新增: //Debug.WriteLine("【渲染】" + sw.ElapsedMilliseconds); | |
| 659 | 705 | if (IsCanScroll) |
| 660 | 706 | { |
| 661 | 707 | Container.SizeChanged -= Container_SizeChanged; |
| 662 | 708 | Container.SizeChanged += Container_SizeChanged; |
| 663 | 709 | } |
| 710 | 新增: | |
| 664 | 711 | isRendering = false; |
| 712 | 新增: | |
| 713 | 新增: var searchBox = GetTemplateChild("ASearchBox") as InputBox; | |
| 714 | 新增: searchBox.TextChanged += SearchBox_TextChanged; | |
| 715 | 新增: } | |
| 716 | 新增: | |
| 717 | 新增: private void SearchBox_TextChanged(object sender, TextChangedEventArgs e) | |
| 718 | 新增: { | |
| 719 | 新增: var box = sender as InputBox; | |
| 720 | 新增: if (box.Text != searchKey) | |
| 721 | 新增: { | |
| 722 | 新增: searchKey = box.Text.ToLower(); | |
| 723 | 新增: HandleSearch(); | |
| 724 | 新增: } | |
| 725 | 新增: } | |
| 726 | 新增: | |
| 727 | 新增: private void HandleSearch() | |
| 728 | 新增: { | |
| 729 | 新增: Task.Run(() => | |
| 730 | 新增: { | |
| 731 | 新增: Dispatcher.Invoke(() => | |
| 732 | 新增: { | |
| 733 | 新增: foreach (var item in Container.Children) | |
| 734 | 新增: { | |
| 735 | 新增: var control = item as ChartsItemTypeA; | |
| 736 | 新增: if (control != null) | |
| 737 | 新增: { | |
| 738 | 新增: var data = control.Data; | |
| 739 | 新增: | |
| 740 | 新增: bool show = false; | |
| 741 | 新增: if (data.Name.ToLower().IndexOf(searchKey) != -1 || data.PopupText.ToLower().IndexOf(searchKey) != -1 || string.IsNullOrEmpty(searchKey)) | |
| 742 | 新增: { | |
| 743 | 新增: show = true; | |
| 744 | 新增: } | |
| 745 | 新增: control.Visibility = show ? Visibility.Visible : Visibility.Collapsed; | |
| 746 | 新增: } | |
| 747 | 新增: } | |
| 748 | 新增: }); | |
| 749 | 新增: | |
| 750 | 新增: }); | |
| 665 | 751 | } |
| 666 | 752 | |
| 667 | 753 | private void Container_SizeChanged(object sender, SizeChangedEventArgs e) |
| @@ -719,18 +805,19 @@ namespace UI.Controls.Charts | ||
| 719 | 805 | } |
| 720 | 806 | // 处理点击事件 |
| 721 | 807 | HandleItemClick(chartsItem, item); |
| 722 | 删除: container.Children.Insert(lazyloadedCount, chartsItem); | |
| 723 | 删除: | |
| 808 | 新增: //container.Children.Insert(lazyloadedCount, chartsItem); | |
| 809 | 新增: container.Children.Add(chartsItem); | |
| 724 | 810 | if (ShowLimit > 0 && Container.Children.Count == ShowLimit) |
| 725 | 811 | { |
| 726 | 812 | break; |
| 727 | 813 | } |
| 728 | 删除: lazyloadedCount++; | |
| 729 | 删除: if (i >= 20) | |
| 730 | 删除: { | |
| 731 | 删除: container.Children.RemoveAt(Container.Children.Count - 1); | |
| 732 | 删除: } | |
| 814 | 新增: //lazyloadedCount++; | |
| 815 | 新增: //if (i >= 20) | |
| 816 | 新增: //{ | |
| 817 | 新增: // container.Children.RemoveAt(Container.Children.Count - 1); | |
| 818 | 新增: //} | |
| 733 | 819 | } |
| 820 | 新增: | |
| 734 | 821 | } |
| 735 | 822 | |
| 736 | 823 | private void ChartsItem_Loaded(object sender, RoutedEventArgs e) |
| @@ -1,6 +1,6 @@ | ||
| 1 | 1 | <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 2 | 2 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 3 | 删除: xmlns:local="clr-namespace:UI.Controls.Charts" xmlns:base="clr-namespace:UI.Controls.Base" xmlns:converter="clr-namespace:UI.Controls.Converters"> | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Charts" xmlns:base="clr-namespace:UI.Controls.Base" xmlns:converter="clr-namespace:UI.Controls.Converters" xmlns:input="clr-namespace:UI.Controls.Input"> | |
| 4 | 4 | <converter:HextoColorConverter x:Key="HextoColorConverter"/> |
| 5 | 5 | <Style TargetType="{x:Type local:Charts}"> |
| 6 | 6 | <Setter Property="SnapsToDevicePixels" |
| @@ -16,12 +16,28 @@ | ||
| 16 | 16 | <Border x:Name="Radar" Visibility="Collapsed"> |
| 17 | 17 | |
| 18 | 18 | </Border> |
| 19 | 删除: <Grid x:Name="HorizontalA" Visibility="Collapsed"> | |
| 20 | 删除: <ScrollViewer Visibility="Collapsed" x:Name="ScrollViewer" VerticalScrollBarVisibility="Auto" Height="{Binding ElementName=HorizontalA,Path=ActualHeight}" CanContentScroll="False"> | |
| 19 | 新增: <Grid x:Name="HorizontalA" Visibility="Collapsed" > | |
| 20 | 新增: <Grid.RowDefinitions> | |
| 21 | 新增: <RowDefinition Height="auto"/> | |
| 22 | 新增: <RowDefinition Height="auto"/> | |
| 23 | 新增: </Grid.RowDefinitions> | |
| 24 | 新增: <Grid x:Name="AHeader" Visibility="Collapsed"> | |
| 25 | 新增: <Grid.RowDefinitions> | |
| 26 | 新增: <RowDefinition Height="auto"/> | |
| 27 | 新增: <RowDefinition Height="*"/> | |
| 28 | 新增: </Grid.RowDefinitions> | |
| 29 | 新增: <TextBlock FontSize="14" Foreground="{DynamicResource SubTextBrush}"> | |
| 30 | 新增: <Run Text="总计"/> | |
| 31 | 新增: <Run x:Name="ACount"/> | |
| 32 | 新增: <Run Text="个"/> | |
| 33 | 新增: </TextBlock> | |
| 34 | 新增: <input:InputBox x:Name="ASearchBox" Grid.Row="1" Placeholder="搜索" Margin="0,10,0,10"/> | |
| 35 | 新增: </Grid> | |
| 36 | 新增: <ScrollViewer Height="1" Grid.Row="1" Visibility="Collapsed" x:Name="ScrollViewer" VerticalScrollBarVisibility="Auto" CanContentScroll="False" > | |
| 21 | 37 | <StackPanel x:Name="Container"> |
| 22 | 38 | </StackPanel> |
| 23 | 39 | </ScrollViewer> |
| 24 | 删除: <StackPanel Visibility="Collapsed" x:Name="NoScrollContainer"></StackPanel> | |
| 40 | 新增: <StackPanel Grid.Row="1" Visibility="Collapsed" x:Name="NoScrollContainer"></StackPanel> | |
| 25 | 41 | </Grid> |
| 26 | 42 | <WrapPanel x:Name="CardContainer" Visibility="Collapsed"> |
| 27 | 43 | </WrapPanel> |
| @@ -259,6 +275,13 @@ | ||
| 259 | 275 | </MultiTrigger.Conditions> |
| 260 | 276 | <Setter Property="Visibility" Value="Collapsed" TargetName="ColumnTotal"/> |
| 261 | 277 | </MultiTrigger> |
| 278 | 新增: <MultiTrigger> | |
| 279 | 新增: <MultiTrigger.Conditions> | |
| 280 | 新增: <Condition Property="IsSearch" Value="True"/> | |
| 281 | 新增: <Condition Property="ChartsType" Value="HorizontalA"/> | |
| 282 | 新增: </MultiTrigger.Conditions> | |
| 283 | 新增: <Setter Property="Visibility" Value="Visible" TargetName="AHeader"/> | |
| 284 | 新增: </MultiTrigger> | |
| 262 | 285 | <Trigger Property="ChartsType" |
| 263 | 286 | Value="HorizontalA"> |
| 264 | 287 | <Setter TargetName="HorizontalA" Property="Visibility" Value="Visible"/> |
| @@ -1,6 +1,6 @@ | ||
| 1 | 1 | <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 2 | 2 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 3 | 删除: xmlns:local="clr-namespace:UI.Controls.Charts" xmlns:base="clr-namespace:UI.Controls.Base" xmlns:converter="clr-namespace:UI.Controls.Converters"> | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Charts" xmlns:base="clr-namespace:UI.Controls.Base" xmlns:converter="clr-namespace:UI.Controls.Converters" xmlns:input="clr-namespace:UI.Controls.Input"> | |
| 4 | 4 | <converter:HextoColorConverter x:Key="HextoColorConverter"/> |
| 5 | 5 | <Style TargetType="{x:Type local:Charts}"> |
| 6 | 6 | <Setter Property="SnapsToDevicePixels" |
| @@ -16,12 +16,28 @@ | ||
| 16 | 16 | <Border x:Name="Radar" Visibility="Collapsed"> |
| 17 | 17 | |
| 18 | 18 | </Border> |
| 19 | 删除: <Grid x:Name="HorizontalA" Visibility="Collapsed"> | |
| 20 | 删除: <ScrollViewer Visibility="Collapsed" x:Name="ScrollViewer" VerticalScrollBarVisibility="Auto" Height="{Binding ElementName=HorizontalA,Path=ActualHeight}" CanContentScroll="False"> | |
| 19 | 新增: <Grid x:Name="HorizontalA" Visibility="Collapsed" > | |
| 20 | 新增: <Grid.RowDefinitions> | |
| 21 | 新增: <RowDefinition Height="auto"/> | |
| 22 | 新增: <RowDefinition Height="auto"/> | |
| 23 | 新增: </Grid.RowDefinitions> | |
| 24 | 新增: <Grid x:Name="AHeader" Visibility="Collapsed"> | |
| 25 | 新增: <Grid.RowDefinitions> | |
| 26 | 新增: <RowDefinition Height="auto"/> | |
| 27 | 新增: <RowDefinition Height="*"/> | |
| 28 | 新增: </Grid.RowDefinitions> | |
| 29 | 新增: <TextBlock FontSize="14" Foreground="{DynamicResource SubTextBrush}"> | |
| 30 | 新增: <Run Text="总计"/> | |
| 31 | 新增: <Run x:Name="ACount"/> | |
| 32 | 新增: <Run Text="个"/> | |
| 33 | 新增: </TextBlock> | |
| 34 | 新增: <input:InputBox x:Name="ASearchBox" Grid.Row="1" Placeholder="搜索" Margin="0,10,0,10"/> | |
| 35 | 新增: </Grid> | |
| 36 | 新增: <ScrollViewer Height="1" Grid.Row="1" Visibility="Collapsed" x:Name="ScrollViewer" VerticalScrollBarVisibility="Auto" CanContentScroll="False" > | |
| 21 | 37 | <StackPanel x:Name="Container"> |
| 22 | 38 | </StackPanel> |
| 23 | 39 | </ScrollViewer> |
| 24 | 删除: <StackPanel Visibility="Collapsed" x:Name="NoScrollContainer"></StackPanel> | |
| 40 | 新增: <StackPanel Grid.Row="1" Visibility="Collapsed" x:Name="NoScrollContainer"></StackPanel> | |
| 25 | 41 | </Grid> |
| 26 | 42 | <WrapPanel x:Name="CardContainer" Visibility="Collapsed"> |
| 27 | 43 | </WrapPanel> |
| @@ -259,6 +275,13 @@ | ||
| 259 | 275 | </MultiTrigger.Conditions> |
| 260 | 276 | <Setter Property="Visibility" Value="Collapsed" TargetName="ColumnTotal"/> |
| 261 | 277 | </MultiTrigger> |
| 278 | 新增: <MultiTrigger> | |
| 279 | 新增: <MultiTrigger.Conditions> | |
| 280 | 新增: <Condition Property="IsSearch" Value="True"/> | |
| 281 | 新增: <Condition Property="ChartsType" Value="HorizontalA"/> | |
| 282 | 新增: </MultiTrigger.Conditions> | |
| 283 | 新增: <Setter Property="Visibility" Value="Visible" TargetName="AHeader"/> | |
| 284 | 新增: </MultiTrigger> | |
| 262 | 285 | <Trigger Property="ChartsType" |
| 263 | 286 | Value="HorizontalA"> |
| 264 | 287 | <Setter TargetName="HorizontalA" Property="Visibility" Value="Visible"/> |
| @@ -1,6 +1,6 @@ | ||
| 1 | 1 | <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 2 | 2 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 3 | 删除: xmlns:local="clr-namespace:UI.Controls.Charts" xmlns:base="clr-namespace:UI.Controls.Base" xmlns:converter="clr-namespace:UI.Controls.Converters"> | |
| 3 | 新增: xmlns:local="clr-namespace:UI.Controls.Charts" xmlns:base="clr-namespace:UI.Controls.Base" xmlns:converter="clr-namespace:UI.Controls.Converters" xmlns:input="clr-namespace:UI.Controls.Input"> | |
| 4 | 4 | <converter:HextoColorConverter x:Key="HextoColorConverter"/> |
| 5 | 5 | <Style TargetType="{x:Type local:Charts}"> |
| 6 | 6 | <Setter Property="SnapsToDevicePixels" |
| @@ -16,12 +16,35 @@ | ||
| 16 | 16 | <Border x:Name="Radar" Visibility="Collapsed"> |
| 17 | 17 | |
| 18 | 18 | </Border> |
| 19 | 删除: <Grid x:Name="HorizontalA" Visibility="Collapsed"> | |
| 19 | 新增: <!--<Grid x:Name="HorizontalA" Visibility="Collapsed"> | |
| 20 | 20 | <ScrollViewer Visibility="Collapsed" x:Name="ScrollViewer" VerticalScrollBarVisibility="Auto" Height="{Binding ElementName=HorizontalA,Path=ActualHeight}" CanContentScroll="False"> |
| 21 | 21 | <StackPanel x:Name="Container"> |
| 22 | 22 | </StackPanel> |
| 23 | 23 | </ScrollViewer> |
| 24 | 24 | <StackPanel Visibility="Collapsed" x:Name="NoScrollContainer"></StackPanel> |
| 25 | 新增: </Grid>--> | |
| 26 | 新增: <Grid x:Name="HorizontalA" Visibility="Collapsed" > | |
| 27 | 新增: <Grid.RowDefinitions> | |
| 28 | 新增: <RowDefinition Height="auto"/> | |
| 29 | 新增: <RowDefinition Height="auto"/> | |
| 30 | 新增: </Grid.RowDefinitions> | |
| 31 | 新增: <Grid x:Name="AHeader" Visibility="Collapsed"> | |
| 32 | 新增: <Grid.RowDefinitions> | |
| 33 | 新增: <RowDefinition Height="auto"/> | |
| 34 | 新增: <RowDefinition Height="*"/> | |
| 35 | 新增: </Grid.RowDefinitions> | |
| 36 | 新增: <TextBlock FontSize="14" Foreground="{DynamicResource SubTextBrush}"> | |
| 37 | 新增: <Run Text="总计"/> | |
| 38 | 新增: <Run x:Name="ACount"/> | |
| 39 | 新增: <Run Text="个"/> | |
| 40 | 新增: </TextBlock> | |
| 41 | 新增: <input:InputBox x:Name="ASearchBox" Grid.Row="1" Placeholder="搜索" Margin="0,10,0,10"/> | |
| 42 | 新增: </Grid> | |
| 43 | 新增: <ScrollViewer Height="1" Grid.Row="1" Visibility="Collapsed" x:Name="ScrollViewer" VerticalScrollBarVisibility="Auto" CanContentScroll="False" > | |
| 44 | 新增: <StackPanel x:Name="Container"> | |
| 45 | 新增: </StackPanel> | |
| 46 | 新增: </ScrollViewer> | |
| 47 | 新增: <StackPanel Grid.Row="1" Visibility="Collapsed" x:Name="NoScrollContainer"></StackPanel> | |
| 25 | 48 | </Grid> |
| 26 | 49 | <WrapPanel x:Name="CardContainer" Visibility="Collapsed"> |
| 27 | 50 | </WrapPanel> |
| @@ -259,6 +282,13 @@ | ||
| 259 | 282 | </MultiTrigger.Conditions> |
| 260 | 283 | <Setter Property="Visibility" Value="Collapsed" TargetName="ColumnTotal"/> |
| 261 | 284 | </MultiTrigger> |
| 285 | 新增: <MultiTrigger> | |
| 286 | 新增: <MultiTrigger.Conditions> | |
| 287 | 新增: <Condition Property="IsSearch" Value="True"/> | |
| 288 | 新增: <Condition Property="ChartsType" Value="HorizontalA"/> | |
| 289 | 新增: </MultiTrigger.Conditions> | |
| 290 | 新增: <Setter Property="Visibility" Value="Visible" TargetName="AHeader"/> | |
| 291 | 新增: </MultiTrigger> | |
| 262 | 292 | <Trigger Property="ChartsType" |
| 263 | 293 | Value="HorizontalA"> |
| 264 | 294 | <Setter TargetName="HorizontalA" Property="Visibility" Value="Visible"/> |
| @@ -202,7 +202,7 @@ | ||
| 202 | 202 | |
| 203 | 203 | <TextBlock Text="最为频繁" Foreground="#5c5c5c" FontSize="15" Margin="0,20,0,5"/> |
| 204 | 204 | <Border Grid.Row="1" Margin="0,5,0,0" Background="{DynamicResource StandardBackgroundBrush}" Padding="20" CornerRadius="10"> |
| 205 | 删除: <charts:Charts VerticalAlignment="Center" ItemMenu="{Binding AppContextMenu}" Data="{Binding TopData}" ChartsType="HorizontalA" ClickCommand="{Binding ToDetailCommand}" IsCanScroll="False"/> | |
| 205 | 新增: <charts:Charts ItemMenu="{Binding AppContextMenu}" Data="{Binding TopData}" ChartsType="HorizontalA" ClickCommand="{Binding ToDetailCommand}" IsCanScroll="False"/> | |
| 206 | 206 | </Border> |
| 207 | 207 | </Grid> |
| 208 | 208 | |
| @@ -49,7 +49,7 @@ | ||
| 49 | 49 | <select:DateSelect Date="{Binding DayDate,Mode=TwoWay}"/> |
| 50 | 50 | <!--<DatePickerBar:DatePickerBar SelectedDate="{Binding DayDate,Mode=TwoWay}" ShowType="Day"/>--> |
| 51 | 51 | |
| 52 | 删除: <Charts:Charts Grid.Row="1" ItemMenu="{Binding AppContextMenu}" Data="{Binding Data}" ChartsType="HorizontalA" Margin="0,20,0,0" ClickCommand="{Binding ToDetailCommand}"/> | |
| 52 | 新增: <Charts:Charts IsSearch="True" Grid.Row="1" ItemMenu="{Binding AppContextMenu}" Data="{Binding Data}" ChartsType="HorizontalA" Margin="0,20,0,0" ClickCommand="{Binding ToDetailCommand}"/> | |
| 53 | 53 | </Grid> |
| 54 | 54 | </TabItem> |
| 55 | 55 | <TabItem> |
| @@ -61,7 +61,7 @@ | ||
| 61 | 61 | </Grid.RowDefinitions> |
| 62 | 62 | <!--<DatePickerBar:DatePickerBar SelectedDate="{Binding MonthDate,Mode=TwoWay}" ShowType="Month"/>--> |
| 63 | 63 | <select:DateSelect Date="{Binding MonthDate,Mode=TwoWay}" SelectType="Month"/> |
| 64 | 删除: <Charts:Charts Grid.Row="1" ItemMenu="{Binding AppContextMenu}" Data="{Binding MonthData}" ChartsType="HorizontalA" Margin="0,20,0,0" ClickCommand="{Binding ToDetailCommand}"/> | |
| 64 | 新增: <Charts:Charts IsSearch="True" Grid.Row="1" ItemMenu="{Binding AppContextMenu}" Data="{Binding MonthData}" ChartsType="HorizontalA" Margin="0,20,0,0" ClickCommand="{Binding ToDetailCommand}"/> | |
| 65 | 65 | </Grid> |
| 66 | 66 | </TabItem> |
| 67 | 67 | <TabItem> |
| @@ -74,7 +74,7 @@ | ||
| 74 | 74 | <!--<DatePickerBar:DatePickerBar SelectedDate="{Binding YearDate,Mode=TwoWay}" ShowType="Year"/>--> |
| 75 | 75 | <select:DateSelect Date="{Binding YearDate,Mode=TwoWay}" SelectType="Year"/> |
| 76 | 76 | |
| 77 | 删除: <Charts:Charts Grid.Row="1" ItemMenu="{Binding AppContextMenu}" Data="{Binding YearData}" ChartsType="HorizontalA" Margin="0,20,0,0" ClickCommand="{Binding ToDetailCommand}"/> | |
| 77 | 新增: <Charts:Charts IsSearch="True" Grid.Row="1" ItemMenu="{Binding AppContextMenu}" Data="{Binding YearData}" ChartsType="HorizontalA" Margin="0,20,0,0" ClickCommand="{Binding ToDetailCommand}"/> | |
| 78 | 78 | </Grid> |
| 79 | 79 | </TabItem> |
| 80 | 80 | </TabControl> |

