WpfMap/MainWindow.xaml
(开头部分) 14KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<Window x:Class="WpfMap.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:local="clr-namespace:WpfMap"
mc:Ignorable="d"
Title="MainWindow" Height="800" Width="800"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
xmlns:my="http://datadisplay.com/control"
WindowStartupLocation="CenterScreen" WindowState="Maximized">
<Grid x:Name="RootGrid">
<Grid.Resources>
<Style x:Key="PieSliceStyle" TargetType="Path">
<Setter Property="Fill" Value="{Binding DataItem.Color}" />
</Style>
<Style x:Key="LabelStyle" TargetType="TextBlock">
<Setter Property="FontFamily" Value="Segoe UI" />
<Setter Property="Foreground" Value="White" />
</Style>
</Grid.Resources>
<Grid.Background>
<ImageBrush ImageSource="/WpfMap;component/Imgs/Back.png" />
</Grid.Background>
<Grid.RowDefinitions>
<RowDefinition Height="60"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="180"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<ListBox Grid.Row="1" Grid.Column="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="0" Name="listBox1" Background="Transparent" Foreground="White" SelectionChanged="listBox1_SelectionChanged">
<ListBoxItem Content="中国地图" Tag="MapChina" />
<ListBoxItem Content="河南地图" Tag="MapHeNan" />
<ListBoxItem Content="天津地图" Tag="MapAnHui" />
</ListBox>
<StackPanel Orientation="Horizontal" Grid.Row="0" Grid.Column="1">
<StackPanel.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="BorderBrush" Value="#FF3AE7EF"/>
<Setter Property="BorderThickness" Value="2"/>
<Setter Property="Margin" Value="5"/>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="BorderBrush" Value="#FF1313F0"/>
</Trigger>
</Style.Triggers>
</Style>
</StackPanel.Resources>
<Border >
<Image Source="/WpfMap;component/Imgs/shengdan.png" MouseLeftButtonUp="Image_MouseLeftButtonUp"></Image>
</Border>
<Border >
<Image Source="/WpfMap;component/Imgs/back.png" MouseLeftButtonUp="Image_MouseLeftButtonUp"></Image>
</Border>
</StackPanel>
<Grid Grid.Row="1" Grid.Column="1">
<Grid.RowDefinitions>
<RowDefinition Height="*"></RowDefinition>
后面还有 217 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
