Demo.WindowsPresentation/Windows/MainWindow.xaml
(开头部分) 11KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<Window x:Class="Demo.WindowsPresentation.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="GMap.NET - Great Maps for Windows Presentation"
Height="775" Width="888"
WindowStartupLocation="CenterScreen"
WindowState="Maximized"
KeyboardNavigation.DirectionalNavigation="Once"
xmlns:src="clr-namespace:Demo.WindowsPresentation"
MinHeight="775" MinWidth="600" KeyUp="Window_KeyUp" PreviewKeyDown="Window_PreviewKeyDown">
<Window.Resources>
<Style x:Key="ZoomUpButton" TargetType="Button">
<Setter Property="Width" Value="23.5" />
<Setter Property="Height" Value="25.5" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Grid Width="23.5" Height="25.5">
<Image Source="/Demo.WindowsPresentation;component/Resources/zoom+.png" Stretch="Fill" />
<ContentPresenter HorizontalAlignment="Center" />
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Effect">
<Setter.Value>
<DropShadowEffect ShadowDepth="2" />
</Setter.Value>
</Setter>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="ZoomDownButton" TargetType="Button">
<Setter Property="Width" Value="23.5" />
<Setter Property="Height" Value="25.5" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Grid Width="23.5" Height="25.5">
<Image Source="/Demo.WindowsPresentation;component/Resources/zoom-.png" Stretch="Fill" />
<ContentPresenter HorizontalAlignment="Center" />
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Effect">
<Setter.Value>
<DropShadowEffect ShadowDepth="2" />
</Setter.Value>
</Setter>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Window.Resources>
<Grid>
<GroupBox Name="mapgroup" Header="gmap" Margin="12,7,241,12" VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch">
后面还有 81 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
