ProjectsForTest/WPF.NET5TeeChart-NET-Pro-Samples/TeeChart.Xaml.WPF Demo/Demos/BindingObservableCollection.xaml

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<UserControl x:Class="XamlWPFDemo.Demos.BindingObservableCollection"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:teechart="clr-namespace:TeeChart.Xaml.WPF;assembly=TeeChart.Xaml.WPF"
             xmlns:series="clr-namespace:TeeChart.Xaml.WPF.Series;assembly=TeeChart.Xaml.WPF"
             mc:Ignorable="d"
             DataContext="{Binding BindingObservableCollectionViewModel, Source={StaticResource Locator}}">
  <Grid>
    <Grid.ColumnDefinitions>
      <ColumnDefinition Width="*" />
      <ColumnDefinition Width="Auto" />
    </Grid.ColumnDefinitions>
    <teechart:TChart>
      <teechart:TChart.Legend>
        <teechart:Legend Visible="False" />
      </teechart:TChart.Legend>
      <series:Points ItemsSource="{Binding DataArray}" XPath="A" YPath="B" />
    </teechart:TChart>
    <DockPanel Grid.Column="1">
      <StackPanel DockPanel.Dock="Bottom" Orientation="Horizontal">
        <Button Padding="2" Margin="0,4,4,4" Command="{Binding AddDataCommand}">Add</Button>
      </StackPanel>
      <ListBox ItemsSource="{Binding DataArray}" />
    </DockPanel>
  </Grid>
</UserControl>

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。