ProjectsForTest/WPF.NET5TeeChart-NET-Pro-Samples/TeeChart.Xaml.WPF Demo/Demos/SampleValuesBinding.xaml
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<UserControl x:Class="XamlWPFDemo.Demos.SampleValuesBinding"
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">
<DockPanel>
<StackPanel Orientation="Horizontal" DockPanel.Dock="Top" Margin="5">
<TextBlock Margin="0,0,5,0">Sample Values:</TextBlock>
<TextBlock Text="{Binding Value, ElementName=SampleValuesSlider}" />
</StackPanel>
<!-- We bind directly using "ElementName" for simplicity. Production code would use a MVVM structure -->
<Slider x:Name="SampleValuesSlider" DockPanel.Dock="Top" Minimum="-1" Maximum="50" Value="5" Margin="5,0,5,5"
IsSnapToTickEnabled="True" />
<teechart:TChart>
<!-- When the value of SampleValues is a negative number, it will be treated as Auto -->
<!-- Every time the number of SampleValues is changed, they will be regenerated again -->
<series:Bar SampleValues="{Binding Value, ElementName=SampleValuesSlider}" />
</teechart:TChart>
</DockPanel>
</UserControl>
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。