Wpf/Histogram/HistogramView.xaml

(完整代码) 1KB

<UserControl x:Class="Geared.Wpf.Histogram.HistogramView"
             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:lvc="clr-namespace:LiveCharts.Wpf;assembly=LiveCharts.Wpf"
             xmlns:geared="clr-namespace:LiveCharts.Geared;assembly=LiveCharts.Geared"
             xmlns:histogram="clr-namespace:Geared.Wpf.Histogram"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300"
             Name="Control">
    <UserControl.DataContext>
        <histogram:HistogramViewModel></histogram:HistogramViewModel>
    </UserControl.DataContext>
    <Grid>
        <Grid.Resources>
            <Style TargetType="geared:GColumnSeries">
                <Setter Property="ColumnPadding" Value="0"></Setter>
                <Setter Property="MaxColumnWidth" Value="9999"></Setter>
                <Setter Property="SharesPosition" Value="False"></Setter>
            </Style>
        </Grid.Resources>
        <lvc:CartesianChart DisableAnimations="True" DataTooltip="{x:Null}">
            <lvc:CartesianChart.Series>
                <geared:GColumnSeries Values="{Binding Values1}" Fill="#CB2194F1" ScalesXAt="0"></geared:GColumnSeries>
                <geared:GColumnSeries Values="{Binding Values2}" Fill="#CBF24336" ScalesXAt="1" Panel.ZIndex="1"></geared:GColumnSeries>
                <geared:GColumnSeries Values="{Binding Values3}" Fill="#CBFDBF07" ScalesXAt="1"></geared:GColumnSeries>
            </lvc:CartesianChart.Series>
            <lvc:CartesianChart.AxisX>
                <lvc:Axis ShowLabels="False"></lvc:Axis>
                <lvc:Axis ShowLabels="False"></lvc:Axis>
            </lvc:CartesianChart.AxisX>
        </lvc:CartesianChart>
    </Grid>
</UserControl>

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

AI 解读

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

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