代码拉取完成,页面将自动刷新
<Window x:Class="IT_RoadBlock.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:c="clr-namespace:CalcBinding;assembly=CalcBinding"
xmlns:hc="https://handyorg.github.io/handycontrol"
xmlns:controls="clr-namespace:IT_RoadBlock.Controls"
WindowStartupLocation="CenterScreen" ResizeMode="NoResize"
mc:Ignorable="d" x:Name="mainWindow"
Title="IT路障" Height="700" Width="1200" MaxHeight="700" MaxWidth="1200"
Icon="pack://application:,,,./Icons/logo.ico"
>
<Window.Resources>
<!-- 81a70a4910b30e40ea6e16060020 -->
<Style x:Key="SelectedListBoxItemStyle" TargetType="ListBoxItem">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="BorderBrush" Value="Transparent"/>
<Style.Triggers>
<Trigger Property="IsSelected" Value="True">
<Setter Property="Background" Value="LightBlue"/>
<!-- 选中时的背景色 -->
<Setter Property="BorderBrush" Value="DeepSkyBlue"/>
</Trigger>
</Style.Triggers>
</Style>
<!-- 其他资源,如WrapPanelVerticalListBox样式和BubbleTailGeometry资源 -->
</Window.Resources>
<Grid x:Name="allGrid">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"></ColumnDefinition>
<ColumnDefinition Width="6.8*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<ListBox Margin="10" Grid.Column="0" ItemsSource="{Binding Datas}" ItemContainerStyle="{StaticResource SelectedListBoxItemStyle}" SelectedIndex="{Binding SelectIndex,UpdateSourceTrigger=PropertyChanged}">
<ListBox.ItemTemplate>
<DataTemplate>
<Border BorderThickness="1"
BorderBrush="{Binding RelativeSource={RelativeSource AncestorType=ListBoxItem}, Path=BorderBrush}"
Background="{Binding RelativeSource={RelativeSource AncestorType=ListBoxItem}, Path=Background}" Margin="0,5">
<DockPanel LastChildFill="True" HorizontalAlignment="Center">
<Path DockPanel.Dock="Left" Fill="YellowGreen" Width="20" Margin="10,10,10,0" HorizontalAlignment="Center"
Data="{DynamicResource AlignVCenterGeometry}"></Path>
<TextBlock Padding="10" Text="{Binding Name}" TextAlignment="Center" HorizontalAlignment="Center"></TextBlock>
</DockPanel>
</Border>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
<Frame Grid.Column="1" x:Name="mainContent" NavigationUIVisibility="Hidden">
</Frame>
</Grid>
</Window>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。