Rich Application

US Map in Listbox – WPF

Posted on: February 12, 2009

One more example to show the power of WPF styling. This is an Listbox with data binding.

ListBox Style


	<window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	x:Class="ListboxStyle.Window1"
	x:Name="Window"
	Title="US Map"
	Width="1024" Height="768" >

	</window><window .Resources>
        
        <xmldataprovider x:Key="UsMapsDS" Source="USMap.xml" />
        
        
		<style x:Key="ListBoxStyle" TargetType="{x:Type ListBox}">
			
			<setter Property="BorderThickness" Value="2"/>
			<setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
			<setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
			<setter Property="ScrollViewer.CanContentScroll" Value="true"/>
			<setter Property="VerticalContentAlignment" Value="Center"/>
			<setter Property="Template">
				</setter><setter .Value>
					<controltemplate TargetType="{x:Type ListBox}">
                        <border SnapsToDevicePixels="True" HorizontalAlignment="Right"  VerticalAlignment="Bottom"  CornerRadius="2,2,2,2" BorderThickness="1,1,1,1" BorderBrush="#FFE0E0E2">
                            </border><border BorderThickness="1,1,1,1" CornerRadius="1,1,1,1" BorderBrush="#FF73879F" SnapsToDevicePixels="True">
                                </border><border Background="#1173879F" ClipToBounds="True" BorderBrush="#FFFFFFFF" BorderThickness="3" CornerRadius="1,1,1,1" Width="Auto" Height="Auto" SnapsToDevicePixels="True">
                                    <grid SnapsToDevicePixels="True">
                                     
                                        <itemspresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                                    </grid>
                                   
                                </border>
                            
                        


                    </controltemplate>
				</setter>
			
		</style>
		<itemspaneltemplate x:Key="ItemsPanelTemplate">
            <canvas Width="800" Height="600"></canvas>
        </itemspaneltemplate>
		<style x:Key="ListBoxItemStyle" TargetType="{x:Type ListBoxItem}">
	
			<setter Property="Template">
				</setter><setter .Value>
					<controltemplate TargetType="{x:Type ListBoxItem}">


                        <grid RenderTransformOrigin="0.5,0.5">
                        <path x:Name="StateMapPath"  Width="{Binding Mode=OneWay, XPath=@Width}" 
                                      Height="{Binding Mode=OneWay, XPath=@Height}"                                       
                                      Stretch="Fill" StrokeLineJoin="Round" Stroke="#FF73879F" 
                                    
                                      Data="{Binding Mode=OneWay, XPath=@Data}">
                            </path><path .Fill>
                                <solidcolorbrush Color="#FFDCEBFD" x:Name="fillColor"/> 
                            </path>
                       
                            
                            <textblock Opacity="0" x:Name="NameText" VerticalAlignment="Center" HorizontalAlignment="Center" Text="{Binding Mode=OneWay, XPath=@Name}">
                                </textblock><textblock .RenderTransform>
                                    <transformgroup>
                                        <translatetransform X="10" Y="0" x:Name="trans"/>
                                    </transformgroup>
                                </textblock>
                            
                            
                            </grid><grid .RenderTransform>
                                <transformgroup>
                                    <translatetransform X="{Binding Mode=OneWay, XPath=@Left}" Y="{Binding Mode=OneWay, XPath=@Top}"/>
                                    <scaletransform ScaleX="1" ScaleY="1" x:Name="scaleTrans"/>
                                </transformgroup>
                            </grid>
                        


                            </controltemplate><controltemplate .Triggers>
                            <trigger Property="IsMouseOver" Value="True">
                                </trigger><trigger .EnterActions>
                                    <beginstoryboard>
                                        <storyboard>
                                            <doubleanimation Storyboard.TargetName="NameText" Storyboard.TargetProperty="Opacity"
                                                             To="1" Duration="00:00:00.3"/>
                                            <doubleanimation Storyboard.TargetName="trans" Storyboard.TargetProperty="X"
                                                             To="0" Duration="00:00:00.3"/>
                                            <coloranimation Storyboard.TargetName="fillColor" Storyboard.TargetProperty="Color" To="#FF73879F" Duration="00:00:00.3"/>
                                        </storyboard>
                                    </beginstoryboard>
                                </trigger>
                                <trigger .ExitActions>
                                    <beginstoryboard>
                                        <storyboard>
                                            <doubleanimation Storyboard.TargetName="NameText" Storyboard.TargetProperty="Opacity"
                                                             To="0" Duration="00:00:00.3"/>
                                            <doubleanimation Storyboard.TargetName="trans" Storyboard.TargetProperty="X"
                                                             To="10" Duration="00:00:00.3"/>
                                            <coloranimation Storyboard.TargetName="fillColor" Storyboard.TargetProperty="Color" To="#FFDCEBFD" Duration="00:00:00.3"/>
                                        </storyboard>
                                    </beginstoryboard>
                                </trigger>
                              
                            
                         
						</controltemplate>
					
				</setter>
			
		</style>
	</window>

	<grid x:Name="LayoutRoot">
		<listbox Width="800" ItemsSource="{Binding Mode=Default, Source={StaticResource UsMapsDS}, XPath=/UsMaps/Map/State}"
                 ItemContainerStyle="{DynamicResource ListBoxItemStyle}" Height="600" 
                 Style="{DynamicResource ListBoxStyle}"
                 IsSynchronizedWithCurrentItem="True" ItemsPanel="{DynamicResource ItemsPanelTemplate}"/>

	</grid>

XML Data


< ?xml version="1.0" encoding="utf-8"?>
<usmaps>
<map>
	<state Name="WA"  Width="90.5" Height="66.3333" Left="77.8055" Top="47.2778"      Data="F1 M 79.8889,52.8611L 87.4722,57.9444L 99.8055,61.4444L 100.306,64.9444L 96.6389,68.4444L 99.8055,69.6111L 98.8055,73.9444L 96.1389,75.2778L 95.4722,73.4444L 92.3055,76.9444L 96.6389,77.6111L 100.806,75.1111L 102.806,68.9444L 106.139,64.4444L 104.472,57.2778L 106.306,54.6111L 105.972,52.2778L 103.806,50.7778L 103.972,47.7778L 108.139,47.9444L 167.806,63.4444L 158.972,99.9444L 157.306,113.111L 135.306,107.778L 114.806,108.444L 107.306,108.278L 101.139,105.111L 95.6389,104.944L 91.6389,104.778L 88.9722,102.111L 89.3055,96.4444L 87.4722,92.7777L 81.9722,89.4444L 78.3055,88.4444L 79.4722,79.2778L 82.6389,76.1111L 80.1389,73.6111L 79.8889,52.8611 Z "/>
		<state Name="OR" Width="109.167" Height="91.6667" Left="52.3055" Top="87.9444"      Data="F1 M 140.972,179.111L 147.806,149.611L 150.306,146.611L 150.639,143.111L 148.306,139.778L 150.139,135.111L 154.139,131.944L 155.306,128.611C 155.306,128.611 156.806,128.444 156.806,127.778C 156.806,127.111 158.806,123.778 158.806,123.778L 160.972,120.611L 160.472,117.778L 156.639,112.611L 135.639,107.611L 107.639,108.278L 100.972,105.111L 92.1389,104.944L 88.8055,102.278L 88.8055,96.1111L 87.3055,92.2777L 81.1389,89.4444L 78.1389,88.4444L 75.4722,94.2777L 75.1389,99.4444L 71.0812,107.56L 69.6389,110.444L 67.4722,116.778L 65.4722,122.611L 61.8055,128.444L 53.9722,141.111L 54.3055,145.278L 52.8055,148.944L 52.8055,156.944L 104.806,171.611L 140.972,179.111 Z "/>
		<state Name="CA" Width="110.333" Height="184.667" Left="42.4027" Top="157.056"      Data="F1 M 52.5694,160.222L 52.9027,157.556L 104.236,171.556L 92.236,220.222L 147.903,302.222L 147.903,306.556L 149.569,308.556L 149.569,312.889L 152.236,316.889L 146.903,320.889L 145.569,326.222L 141.236,330.222L 141.569,334.889L 143.569,337.556L 141.236,340.556L 137.569,341.222L 105.569,337.556L 103.236,332.889L 103.903,324.889L 95.9027,314.222L 91.5694,313.222L 91.5694,308.556L 85.5694,307.222L 84.236,304.556L 79.5694,298.222L 71.236,295.222L 66.236,293.222L 66.236,283.222L 65.5694,278.222L 56.236,259.889L 55.5694,255.222L 58.5694,252.556L 58.9027,247.556L 54.5694,245.889L 52.9027,241.889L 54.5694,233.889L 57.236,237.556L 59.236,236.556L 56.5694,231.889L 58.5694,226.222L 52.9027,229.556L 49.9027,225.556L 49.9027,220.222L 43.9027,209.556L 45.236,200.222L 47.5694,196.556L 47.236,192.222L 42.9027,184.222L 42.9027,179.556L 48.5694,173.889L 52.5694,160.222 Z "/>
		<state Name="NA" Width="88" Height="131.667" Left="91.4027" Top="171.056"      Data="F1 M 104.569,171.556L 91.9027,219.222L 148.236,302.222L 150.236,299.556L 150.236,286.556L 151.236,283.889L 154.903,284.222L 156.903,287.222L 159.903,282.556L 163.236,270.556L 178.903,187.222L 104.569,171.556 Z "/>
		<state Name="ID" Width="81.6667" Height="130" Left="140.736" Top="63.0556"      Data="F1 M 158.903,98.5556L 157.569,112.889L 160.236,117.556L 161.236,119.889L 156.903,127.222L 154.569,128.889L 153.903,131.556L 150.569,134.889L 147.903,138.889L 150.569,143.556L 150.236,146.222L 147.236,148.889L 141.236,179.222L 179.236,187.556L 215.569,192.556L 221.903,151.889L 220.236,146.889L 215.236,147.222L 198.903,149.222L 198.569,142.556L 194.903,140.889L 194.903,134.556L 192.903,125.222L 189.903,123.889L 185.903,126.889L 183.903,122.556L 186.569,120.556L 186.569,116.889L 190.569,109.222L 185.236,105.889L 183.236,99.5556L 177.236,92.2223L 176.903,86.5556L 174.569,81.5556L 178.236,65.8889L 167.903,63.5556L 158.903,98.5556 Z "/>
		<state Name="UT" Width="76" Height="95.6667" Left="163.069" Top="186.389"      Data="F1 M 228.903,281.556L 238.569,213.889L 213.569,208.889L 214.903,191.889L 178.903,186.889L 163.569,270.889L 228.903,281.556 Z "/>
		<state Name="AZ" Width="92" Height="107" Left="137.403" Top="270.389"      Data="F1 M 215.903,376.889L 186.569,372.889L 138.236,345.222L 137.903,340.889L 140.569,340.222L 142.903,337.222L 141.236,334.556L 141.236,329.222L 145.569,325.889L 145.903,320.222L 152.569,316.222L 149.569,312.222L 149.569,307.556L 147.903,301.889L 149.569,299.556L 149.903,285.889L 151.569,283.889L 154.569,283.222L 156.569,286.556L 160.236,283.222L 162.903,270.889L 228.903,281.222L 215.903,376.889 Z "/>
		<state Name="NM" Width="96.3333" Height="97.6667" Left="215.069" Top="281.056"      Data="F1 M 310.903,289.889L 228.569,281.556L 215.569,377.222L 228.903,378.222L 229.569,371.556L 252.903,373.556L 252.903,370.556L 304.236,375.889L 310.903,289.889 Z "/>
		<state Name="CO" Width="99.6667" Height="78" Left="228.403" Top="213.389"      Data="F1 M 324.236,290.889L 310.569,289.556L 228.903,281.556L 238.903,213.889L 327.569,222.556L 326.903,240.222L 324.236,290.889 Z "/>
		<state Name="WY" Width="95" Height="78.3333" Left="213.069" Top="142.056"      Data="F1 M 307.569,152.556L 224.236,142.556L 221.569,149.556L 214.903,191.889L 213.569,208.889L 238.569,213.889L 302.236,219.889L 307.569,152.556 Z "/>
		<state Name="MT" Width="140" Height="87.3333" Left="174.069" Top="65.3889"      Data="F1 M 313.569,85.5556L 307.569,152.222L 223.903,142.222L 221.569,148.889L 219.569,146.556L 199.236,148.556L 198.236,141.556L 194.236,140.222L 194.903,134.889L 193.236,125.222L 189.903,123.889L 185.903,126.222L 183.903,121.889L 186.236,120.556L 186.236,116.556L 190.236,108.556L 184.903,105.222L 183.569,99.5556L 176.903,91.2223L 176.903,86.5556L 174.569,81.5556L 178.236,65.8889L 254.236,79.5556L 313.569,85.5556 Z "/>
		<state Name="TX" Width="190.667" Height="184.333" Left="252.514" Top="298.167"      Data="F1 M 386.681,481.333L 383.347,482L 377.681,478.667L 371.681,479.667L 366.014,476L 363.681,473.333L 359.347,475L 355.681,468.333L 356.347,465L 354.014,462.333L 354.014,459L 352.681,452.667L 349.681,450.333L 347.014,447.333L 345.681,444L 341.681,441.667L 340.347,437L 338.68,433.333L 336.347,429.333L 335.68,424.667L 329.347,419.333L 325.68,415L 317.347,415L 313.014,411.667L 309.68,414L 305.014,417L 304.347,421.667L 302.014,423L 301.347,425.333L 297.347,425L 290.014,420L 287.014,420.667L 283.68,417L 280.347,416.667L 280.347,411L 277.68,407.333L 277.347,402L 274.347,399.333L 274.68,395.333L 271.68,393L 269.014,393L 267.014,391L 266.347,387.667L 261.347,382.667L 259.014,383L 257.68,378.667L 253.014,374.333L 253.347,371.333L 304.014,375.667L 310.014,298.667L 351.681,301.667L 350.347,331.667L 353.014,337.667L 359.347,337.333L 363.014,341.333L 369.347,343.333L 372.014,344.667L 376.014,342L 379.014,345.667L 383.014,345.667L 390.681,348.333L 394.014,346.667L 398.681,346.667L 401.347,348.667L 406.347,347.333L 412.681,346.667L 416.347,348.333L 421.014,346.667L 426.681,351L 432.347,351.667L 434.681,353.667L 434.681,375.667L 438.014,380.667L 438.347,385.667L 440.014,387.667L 442.347,393L 442.681,398.333L 440.347,402.333L 440.681,409.333L 439.014,414.333L 439.014,417.667L 434.347,418.333L 428.014,421.333L 426.014,422.333L 426.014,416.333L 421.347,418.667L 421.014,421.667L 423.014,424.667L 419.014,427L 418.347,430.333L 406.681,436.667L 402.014,437.333L 402.681,434L 400.014,436.333L 397.347,433.333L 397.347,437L 399.014,440L 397.014,443.333L 394.014,439.667L 394.347,443.667L 389.347,444L 391.347,447L 389.347,449.333L 383.347,449.333L 387.681,452.333L 386.681,456L 380.014,457.667L 383.014,461L 381.681,465.667L 383.681,469L 383.681,474.333L 386.347,478.667L 386.681,481.333 Z "/>
		<state Name="OK" Width="119" Height="61.8333" Left="309.875" Top="288.889"      Data="F1 M 424.875,293.222L 364.542,293.056L 323.708,290.556L 311.042,289.389L 310.375,298.556L 352.375,301.889L 349.875,332.222L 352.708,337.056L 358.708,336.722L 362.875,341.222L 371.875,344.389L 376.042,342.389L 378.875,345.556L 383.042,345.056L 390.708,348.222L 393.875,346.222L 398.542,346.389L 401.208,348.889L 406.042,347.389L 412.375,345.889L 416.375,348.556L 420.542,346.222L 425.542,350.222L 427.875,350.222L 428.375,318.722L 425.042,301.722L 424.875,293.222 Z "/>
		<state Name="KS" Width="101.833" Height="54.5" Left="323.542" Top="239.389"      Data="F1 M 326.708,239.889L 324.042,289.889L 363.875,293.222L 424.875,293.389L 424.875,256.889L 423.042,255.222L 421.042,255.056L 420.875,252.389L 418.375,250.056L 418.042,247.722L 420.875,246.222L 420.542,244.222L 417.375,244.222L 413.875,241.556L 363.375,241.722L 326.708,239.889 Z "/>
		<state Name="NE"  Width="112.667" Height="56.5" Left="301.542" Top="186.222"      Data="F1 M 304.875,186.722L 302.042,219.556L 327.375,223.056L 326.875,239.556L 360.542,242.222L 413.708,241.889L 413.708,238.722L 411.542,236.389L 410.042,232.389L 408.375,229.889L 408.375,225.222L 407.375,218.556L 405.375,215.056L 405.042,211.222L 401.042,203.222L 401.708,200.222L 399.042,198.222L 395.875,195.556L 391.708,194.389L 390.875,192.889L 383.875,193.222L 381.708,194.722L 379.042,193.889L 374.875,190.056L 340.542,189.889L 304.875,186.722 Z "/>
		<state Name="SD"  Width="96.1667" Height="61" Left="304.542" Top="136.722"      Data="F1 M 308.708,137.222L 305.042,186.389L 340.708,189.889L 374.708,190.056L 378.708,194.222L 381.875,194.889L 383.375,192.889L 390.542,192.889L 392.208,194.056L 394.708,194.889L 396.042,195.889L 398.708,197.222L 398.708,191.556L 400.042,188.722L 398.708,186.389L 400.042,181.389L 400.208,150.889L 397.042,150.056L 394.542,147.056L 397.875,142.056L 352.708,139.889L 308.708,137.222 Z "/>
		<state Name="ND" Width="90.6667" Height="56.8333" Left="308.708" Top="86.2224"      Data="F1 M 313.375,86.7224L 309.208,137.556L 355.375,141.056L 397.875,142.556L 398.875,136.889L 397.042,131.556L 396.708,116.722L 396.208,113.722L 392.042,105.556L 391.875,97.7223L 393.542,96.2223L 392.375,93.5557L 392.042,90.2223L 353.042,90.2223L 313.375,86.7224 Z "/>
		<state Name="MN" Width="89.5" Height="95.3333" Left="391.208" Top="87.7223"      Data="F1 M 480.208,102.889L 468.208,110.722L 450.542,126.889L 450.208,137.722L 445.042,140.556L 444.375,143.722L 442.708,145.889L 446.542,147.722L 445.542,151.222L 445.042,159.722L 448.708,163.556L 451.708,163.556L 455.208,165.889L 455.708,168.722L 462.875,172.056L 464.542,174.389L 464.542,180.556L 400.375,182.556L 400.208,150.889L 397.208,149.889L 394.208,146.889L 397.542,141.389L 398.875,135.722L 397.042,130.056L 396.208,112.889L 391.708,103.722L 392.042,96.7223L 393.208,94.5557L 392.375,92.389L 392.708,89.0557L 413.708,88.2223L 417.375,93.7223L 428.708,95.0557L 430.875,96.2223L 434.708,96.5557L 436.375,94.5557L 441.542,94.7223L 447.042,99.889L 449.875,98.5557L 452.875,100.389L 458.542,103.222L 463.542,101.556L 466.375,101.056L 475.208,101.222L 480.208,102.889 Z "/>
		<state Name="IA" Width="82.8333" Height="55.1667" Left="398.042" Top="179.889"      Data="F1 M 400.375,182.389L 464.208,180.389L 467.375,183.389L 466.208,185.889L 466.375,189.389L 467.708,191.056L 467.875,193.556L 473.708,196.889L 476.208,200.056L 476.708,202.222L 479.542,202.722L 480.375,204.056L 480.042,207.222L 478.375,208.556L 478.708,211.556L 475.042,213.556L 470.542,215.556L 468.708,219.222L 471.375,222.889L 469.542,224.556L 469.542,228.222L 466.542,229.722L 465.708,234.556L 462.042,231.222L 409.542,231.722L 408.375,229.056L 408.875,222.889L 407.208,218.222L 405.208,214.222L 404.875,210.556L 401.042,203.222L 401.875,200.389L 398.708,197.389L 398.542,191.056L 399.875,189.056L 398.708,185.722L 400.375,182.389 Z "/>
		<state Name="MO" Width="91" Height="78" Left="409.042" Top="230.389"      Data="F1 M 493.042,307.556L 484.708,307.889L 485.042,306.222L 487.708,303.056L 487.542,301.056L 485.375,299.722L 425.542,301.889L 424.708,293.222L 424.708,256.889L 423.208,255.389L 420.875,254.722L 421.042,251.722L 418.542,249.889L 417.708,247.889L 420.875,246.222L 420.875,244.056L 418.042,243.722L 414.042,240.889L 414.042,238.722L 411.708,236.389L 409.542,231.222L 462.042,230.889L 465.208,233.556L 465.208,241.056L 467.042,244.222L 469.042,246.889L 475.542,252.389L 475.875,257.389L 477.208,258.722L 479.708,257.389L 482.708,257.222L 484.375,259.889L 483.208,263.889L 481.042,267.556L 481.375,269.889L 483.542,272.222L 490.042,276.056L 494.542,280.389L 494.875,284.389L 494.875,287.056L 499.208,289.389L 499.542,296.056L 496.042,298.389L 493.875,302.722L 493.042,307.556 Z "/>
		<state Name="AR" Width="69" Height="62" Left="424.875" Top="299.222"      Data="F1 M 475.042,359.889L 434.708,360.722L 434.208,354.222L 432.375,351.389L 427.875,350.222L 427.875,318.056L 425.375,301.889L 485.042,299.722L 487.542,300.722L 487.542,302.889L 484.542,306.056L 484.542,307.722L 492.875,307.389L 493.375,309.222L 491.042,311.722L 490.542,314.556L 488.708,318.556L 489.042,321.556L 485.708,326.889L 483.208,329.389L 482.875,334.889L 479.042,338.056L 478.708,342.056L 477.042,342.556L 477.375,346.556L 475.042,347.722L 475.208,350.389L 474.208,352.889L 476.875,354.222L 476.875,358.389L 475.042,359.889 Z "/>
		<state Name="LA" Width="76.3333" Height="67.5" Left="434.375" Top="359.389"      Data="F1 M 498.208,393.056L 471.375,393.389L 470.375,390.722L 472.708,384.889L 473.042,381.222L 478.042,376.722L 478.208,375.556L 476.542,374.556L 476.708,373.389L 479.375,372.722L 479.375,371.056L 476.708,369.056L 476.875,363.889L 476.375,361.889L 474.708,359.889L 434.875,360.722L 434.875,375.222L 438.042,380.722L 438.042,384.222L 439.542,386.556L 442.042,392.556L 442.375,398.056L 440.042,402.222L 440.542,409.556L 438.875,414.889L 439.208,416.056L 438.875,417.389L 442.208,415.722L 450.042,416.556L 458.708,418.722L 459.042,420.389L 463.375,419.556L 464.875,415.222L 467.542,414.722L 468.542,415.889L 469.208,416.889L 471.208,415.056L 473.042,419.556L 476.375,419.556L 478.708,422.056L 480.042,425.556L 484.208,425.722L 486.208,425.056L 488.208,422.556L 491.042,422.556L 493.375,424.889L 495.375,424.722L 495.542,420.556L 496.875,418.722L 498.708,419.056L 500.708,422.389C 500.708,422.389 503.708,423.889 503.708,423.222C 503.708,422.556 506.042,426.389 506.042,426.389L 510.208,425.056L 508.375,422.222L 501.042,418.222L 500.542,415.222L 502.875,412.389L 499.542,411.556L 497.042,409.222L 490.875,409.722L 489.208,407.389L 491.208,405.056L 495.208,404.889L 497.208,405.889L 499.542,408.556L 501.708,406.722L 501.375,403.389L 498.042,399.389L 497.708,395.889L 498.208,393.056 Z "/>
		<state Name="WI" Width="72.8333" Height="76.6667" Left="442.208" Top="121.389"      Data="F1 M 450.542,126.556L 455.042,127.389L 458.875,126.889L 460.375,124.222L 463.875,123.389L 465.042,121.889L 467.042,122.056L 467.042,123.889L 466.208,127.889L 468.708,127.389L 471.375,128.389L 473.375,126.889L 477.208,131.722L 481.875,132.556L 486.542,133.389L 492.208,135.222L 497.375,135.889L 500.542,139.556L 504.042,139.722L 504.208,144.556L 507.208,149.222L 507.208,152.222L 504.042,155.722L 503.542,159.556L 505.542,159.056L 507.208,156.222L 509.208,154.222L 510.875,151.556L 511.708,148.222L 514.375,147.222L 514.542,150.056L 512.375,154.722L 510.375,159.556L 509.875,165.222L 509.208,170.222L 508.708,173.722L 507.208,179.389L 507.042,186.222L 509.208,188.556L 508.708,194.222L 474.042,197.556L 472.542,195.722L 468.208,193.056L 468.042,191.389L 466.208,189.222L 466.208,185.556L 467.542,183.222L 464.208,180.056L 464.542,174.889L 463.042,171.889L 456.042,168.556L 455.542,166.056L 451.875,163.389L 448.542,163.389L 445.208,159.556L 445.542,151.222L 446.542,147.556L 442.708,145.389L 444.375,143.722L 444.708,140.389L 450.208,136.722L 450.542,126.556 Z "/>
		<state Name="IL" Width="54.6667" Height="96.3333" Left="464.375" Top="193.056"      Data="F1 M 474.208,197.389L 476.208,200.056L 476.208,201.389L 479.375,202.222L 480.042,203.556L 479.875,207.389L 478.375,208.389L 478.542,210.389L 478.208,211.389L 470.375,215.389L 468.375,219.056L 471.375,222.889L 469.542,224.722L 469.375,227.889L 466.708,228.889L 465.375,233.889L 464.875,241.222L 468.375,245.889L 475.208,252.556L 475.208,257.056L 477.042,257.889L 479.542,256.889L 482.708,256.889L 483.875,259.556L 483.208,264.056L 480.875,267.056L 481.542,269.722L 487.208,273.722L 491.875,277.222L 494.542,280.389L 494.875,286.722L 499.042,288.889L 501.208,286.389L 503.375,286.222L 507.208,287.889L 508.208,287.889L 508.542,284.389L 508.042,282.056L 511.542,282.056L 512.708,280.556L 513.042,275.222L 513.375,271.222L 514.208,268.389L 512.542,266.889L 517.042,262.556L 517.875,259.722L 518.542,254.556L 516.208,252.222L 516.208,248.722L 517.708,248.556L 514.708,209.222L 510.542,202.389L 508.875,199.889L 508.708,193.556L 474.208,197.389 Z "/>
		<state Name="KY" Width="99.3333" Height="51.1667" Left="495.375" Top="247.389"      Data="F1 M 495.875,298.056L 499.708,295.722L 499.375,288.722L 501.208,286.722L 502.708,286.222L 508.375,287.889L 508.375,284.056L 507.542,282.056L 510.875,281.556L 512.208,280.056L 512.542,275.389L 515.375,272.722L 517.708,273.722L 519.375,274.222L 519.375,272.056L 522.042,272.056L 525.542,273.722L 527.375,271.389L 530.042,271.889L 532.208,272.722L 533.542,269.389L 535.542,266.556L 536.875,268.222L 540.375,269.056L 541.542,266.889L 541.875,264.889L 546.042,258.722L 546.708,255.889L 553.542,254.056L 553.708,248.056L 558.042,247.889L 562.375,252.556L 566.208,252.389L 568.542,253.889L 571.042,253.056L 573.375,253.056L 576.875,253.722L 578.042,251.056L 580.375,251.556L 581.042,253.056L 585.208,255.056L 584.708,261.222L 586.542,263.056L 590.042,267.556L 594.208,270.889L 591.375,274.056L 587.542,276.222L 585.875,279.056L 584.542,282.389L 582.208,283.056L 580.208,285.556L 576.208,286.222L 573.875,288.889L 546.875,291.722L 515.042,294.722L 514.542,297.556L 495.875,298.056 Z "/>
		<state Name="TN" Width="115.5" Height="41" Left="486.375" Top="284.722"      Data="F1 M 568.875,317.222L 568.542,313.056L 571.542,312.056L 572.375,309.056L 579.875,304.556L 583.042,301.056L 585.542,301.389L 586.375,299.556L 589.042,295.889L 590.708,297.389L 594.042,294.056L 597.708,293.722C 597.708,293.722 598.708,292.556 598.708,291.556C 598.708,290.556 598.708,290.389 598.708,290.389L 601.375,289.389L 600.708,285.222L 598.042,285.222L 573.375,288.722L 515.375,294.722L 514.542,297.889L 496.208,297.889L 494.042,301.722L 492.875,307.389L 493.375,309.556L 491.042,311.556L 490.375,315.389L 488.208,318.889L 489.208,321.389L 486.875,325.222L 493.208,325.222L 516.542,322.556L 551.542,319.889L 568.875,317.222 Z "/>
		<state Name="MS" Width="49.6667" Height="86" Left="469.708" Top="321.722"      Data="F1 M 518.875,402.222L 517.042,403.889L 508.542,402.222L 501.708,407.222L 501.542,403.056L 497.875,398.889L 497.542,396.222L 499.042,392.389L 470.875,393.389L 470.208,390.722L 472.875,384.889L 473.042,381.389L 477.708,377.222L 478.542,375.222L 476.542,374.222L 476.875,372.722L 478.542,372.389L 479.875,370.556L 476.708,368.056L 477.375,363.056L 474.875,360.056L 476.875,357.889L 476.875,353.722L 474.042,352.222L 475.042,349.889L 475.042,346.889L 477.208,345.889L 477.042,342.556L 478.875,341.722L 479.208,337.389L 482.708,333.889L 483.208,328.722L 487.208,324.556L 516.875,322.222L 515.208,375.889L 518.208,393.889L 518.875,401.389L 518.875,402.222 Z "/>
		<state Name="AL" Width="53.1667" Height="85.5" Left="514.708" Top="319.222"      Data="F1 M 551.542,319.722L 516.542,322.389L 515.208,376.389L 518.875,401.389L 522.375,401.556L 523.208,395.889L 524.708,396.056L 525.042,397.389L 525.708,399.556L 528.375,403.056L 525.375,404.222L 529.542,403.556L 532.042,403.222L 532.542,399.222L 533.708,398.556L 533.708,396.389L 529.542,392.889L 529.542,390.056L 567.375,385.889L 566.375,383.889L 565.042,381.722L 565.708,375.556L 564.208,373.222L 564.542,367.389L 565.542,364.556L 565.042,360.889L 561.042,354.222L 551.542,319.722 Z "/>
		<state Name="IN" Width="42" Height="73.1667" Left="512.042" Top="202.556"      Data="F1 M 547.875,203.056L 553.542,247.389L 553.375,253.722L 546.708,255.722L 545.875,258.722L 542.042,264.222L 541.875,266.389L 540.208,269.056L 537.375,268.222L 535.708,266.556L 533.542,268.889L 532.208,272.556L 527.708,270.722L 525.875,273.722L 522.708,271.722L 519.542,271.889L 519.542,274.389L 515.375,272.556L 512.875,275.222L 513.208,270.222L 514.042,268.056L 512.542,265.556L 517.875,262.556L 518.875,254.389L 516.208,252.222L 516.208,248.722L 517.375,248.722L 515.375,208.556L 517.208,209.722L 520.375,209.056L 524.208,205.056L 547.875,203.056 Z "/>
		<state Name="OH" Width="58.5" Height="64.3333" Left="547.208" Top="192.167"      Data="F1 M 601.875,192.667L 604.708,210L 605.208,214.833L 603.542,215.667L 603.708,218.333L 603.875,231.833L 599.375,237L 597.208,237.167L 593.708,240.333L 593.708,245.833C 593.708,245.833 592.875,246.833 592.375,246.167C 591.875,245.5 590.708,244.667 590.708,244.667L 589.208,246.667L 589.208,252.5L 585.542,256L 581.208,253.333L 580.208,251L 578.042,251L 576.708,253.167L 570.708,252.667L 568.375,254L 566.208,252.167L 562.542,252.167L 558.042,248L 553.708,247.833L 547.708,203.5L 564.875,201.5L 566.542,203.833L 571.375,203.5L 574.042,204.5L 577.042,206.5L 580.042,205.833L 585.542,202.667L 588.375,202.667L 591.375,198.667L 594.542,196.333L 596.542,197L 601.875,192.667 Z "/>
		<state Name="WV" Width="62.1667" Height="60.1667" Left="584.208" Top="214.333"      Data="F1 M 645.875,230.333L 642.375,226.667L 639.208,225.833L 636.737,226.145L 634.708,227.667L 631.042,228.167L 625.375,233.833L 622.875,234.667L 622.042,228.167L 608.375,229.5L 605.542,214.833L 603.542,215.5L 603.875,230.833L 599.208,236.5L 597.042,237.333L 594.375,240L 594.042,244.833L 592.375,246.167L 590.708,244.5L 589.542,246.5L 589.375,252.167L 585.208,255.667L 584.708,260.5L 589.875,267.5L 594.708,271L 597.708,273.5L 600.375,274L 602.875,272L 608.375,271.833L 610.042,269.5L 616.708,266.667L 617.208,262L 621.208,258.5L 622.542,247.333L 624.708,247.5L 627.042,249L 629.042,248L 630.042,241.833L 636.542,235.833L 637.208,230.5L 643.375,233.333L 645.042,233L 645.875,230.333 Z "/>
		<state Name="GA" Width="74.5" Height="76.5" Left="551.208" Top="314.833"      Data="F1 M 585.042,315.333L 568.542,316.5L 551.708,319.5L 560.375,353.167L 564.875,360.5L 565.708,364.167L 564.375,367L 564.208,372.5L 565.708,375.5L 565.042,381L 567.042,385.667L 570.208,390.167L 609.042,388.167L 609.542,390.833L 611.708,390.667L 612.208,387L 611.208,385.167L 613.208,382.667L 614.708,383.667L 619.042,383.667L 619.708,377.167L 621.875,367.167L 622.375,363.833L 625.042,361.667L 625.208,358.833L 621.042,359L 618.708,353.333L 616.708,351.833L 613.375,345.167L 609.542,343.667L 607.208,339.5L 603.875,338.167L 600.542,334.5L 597.042,332.833L 595.542,329.667L 592.542,326.5L 591.042,324L 587.208,323.667L 584.042,321.167L 583.875,318.167L 585.042,315.333 Z "/>
		<state Name="FL" Width="124.5" Height="94.8333" Left="528.542" Top="382.167"      Data="F1 M 639.875,476.5L 642.375,475.667L 646.375,475.333L 650.708,471.333L 650.375,466L 652.042,463.5L 652.542,449.667L 651.542,445.833L 639.375,425.333L 638.208,422.833L 639.042,420.5L 637.208,417.167L 628.375,406.5L 624.208,399.5L 620.875,389.667L 619.375,383.333L 614.708,384L 613.542,382.667L 611.542,384.833L 612.375,387.167L 611.708,390.5L 609.875,390.833L 608.708,387.833L 569.875,389.667L 567.042,385.5L 529.875,389.667L 529.042,392.333L 533.542,395.5L 533.708,398.333L 532.375,399L 532.042,402.333L 534.708,400.333L 536.208,399.167L 536.542,397.5L 538.542,396.333L 540.042,398L 537.542,400.667L 540.875,399.667L 544.708,400.167L 546.708,397.5L 550.708,397.333L 552.042,399L 557.542,402.167L 563.042,404.833L 565.375,409L 567.875,408.333L 572.708,406.667L 579.042,400.333L 584.708,400.833L 588.042,402.167L 591.375,405.333L 594.708,406.667L 595.375,409.833L 599.208,411.833L 600.542,413.167L 604.375,413.833L 605.542,416.833L 607.875,420.167L 607.875,424.167L 606.875,426.833L 606.542,432.167L 607.542,435.167L 608.875,436.833L 610.875,433L 613.042,433L 613.708,434.333L 613.708,436.833L 610.542,440.167L 610.875,441.667L 613.042,444.833L 615.208,448.5L 617.875,449L 620.542,448.667L 620.542,451L 621.375,452.667L 621.708,455.5L 625.542,459.167L 626.208,460.833L 629.542,465L 633.208,465.333L 637.875,471.5L 639.208,474.167L 639.875,476.5 Z "/>
		<state Name="SC" Width="69.4445" Height="52" Left="583.347" Top="307.722"      Data="F1 M 652.292,324.333L 633.736,311.778L 630.847,311.667L 621.625,313.556L 618.18,313.444L 616.625,310L 614.625,308.556L 613.958,309.556L 613.18,310.222L 612.514,310L 612.18,308.222L 609.18,308.222L 597.292,309.889L 594.958,310.889L 586.292,315.333L 584.403,316.333L 583.847,317.889L 583.958,320.889L 587.18,323.333L 590.958,324L 592.18,326.778L 595.403,329.556L 596.958,332.556L 600.18,334.444L 603.736,338L 607.292,339.333L 609.625,343.444L 612.847,345.111L 616.847,351.778L 618.736,353.333L 620.847,358.556L 624.847,358.556L 625.736,359.222L 628.514,354.889L 628.736,352.222L 631.958,352L 635.958,348.445L 635.958,346.111L 637.847,345.111L 638.625,343.444L 641.403,340.778L 643.18,340.556L 644.736,337.444L 644.847,333L 646.403,329.778L 649.847,326.444L 652.292,324.333 Z "/>
		<state Name="NC" Width="114" Height="53" Left="568.236" Top="271.611"      Data="F1 M 676.847,272.111L 660.625,275.222L 648.292,278.333L 633.958,281.111L 622.847,282.556L 600.625,285.222L 601.181,288.889L 598.847,290.222L 598.847,292.111L 597.625,293.667L 593.958,293.889L 590.847,297.222L 589.181,295.667L 586.292,299.222L 585.736,301.111L 583.292,300.778L 579.847,304.111L 572.514,308.889L 571.625,311.667L 568.736,313.111L 569.069,315.889L 585.847,315.333L 597.625,309.889L 609.069,308.222L 612.292,308L 612.514,309.667L 613.181,309.889L 614.847,308.556L 616.958,309.889L 618.292,313.556L 621.625,313.445L 630.625,311.445L 633.625,311.889L 652.292,324.111L 654.403,324.111L 659.514,323.445L 660.514,321.889L 660.736,318.445L 662.625,314.445L 663.847,312.445L 668.958,308.445L 675.625,305.222L 678.403,304.333L 677.625,301.333L 676.181,300.556L 673.625,301.111L 672.847,300.222L 673.514,297.667L 674.736,296.222L 673.292,295.556L 671.736,293.889L 673.069,292.556L 674.736,293.222L 677.736,293.667L 680.181,292.445L 681.736,290.556L 680.958,286.889L 679.625,284.667L 677.403,283.445L 675.958,281L 676.958,279.445L 678.181,277.445L 678.736,275.889L 676.847,272.111 Z "/>
		<state Name="VA" Width="104.667" Height="59.3333" Left="573.681" Top="229.611"      Data="F1 M 644.958,232.889L 643.514,233.333L 637.069,230.111L 636.625,236.111L 629.958,241.778L 629.181,248.111L 626.958,248.778L 624.736,247.222L 622.514,247.333L 620.958,258L 617.292,262.222L 616.736,266L 610.181,269.556L 608.292,272L 603.292,271.556L 600.181,274.222L 597.292,273L 594.181,270.444L 591.181,273.778L 587.625,276L 585.847,279.111L 584.736,282.111L 582.403,282.889L 580.403,285.444L 576.292,285.889L 574.181,288.444L 598.292,285L 600.736,284.667L 628.069,281.889L 647.847,278.111L 660.958,274.889L 676.736,271.778L 677.847,270.667L 677.403,268.889L 675.958,267.333L 672.514,267.444L 671.514,269.111L 668.958,269L 667.514,266.444L 668.403,264.778L 670.847,266L 670.514,264.444L 667.736,261.667L 668.514,259.778L 669.847,258.667L 667.958,257.111L 666.292,257L 663.292,254.778L 663.403,253.333L 665.181,253.333L 668.514,254.444C 668.514,254.444 668.625,252.222 668.625,251.778C 668.625,251.333 662.847,248.222 662.847,248.222L 658.625,248L 656.625,245.556L 653.958,244L 653.625,241.667L 654.847,240.333L 656.069,238.889L 655.181,235.667L 656.847,234L 654.847,232L 652.847,233.778L 649.292,233.556L 648.292,230.778L 645.736,230.222L 644.958,232.889 Z "/>
		<state Name="ME" Width="50.5" Height="77.8333" Left="703.208" Top="68.9445"      Data="F1 M 748.375,101.444L 746.375,101.111L 743.875,98.2778L 743.875,95.2778L 742.875,94.6112L 741.708,95.7778L 739.042,94.7778L 738.375,91.1112L 735.875,81.7778L 733.542,75.9445L 733.208,72.2778L 730.042,70.4445L 725.208,70.2778L 720.875,73.1111L 718.042,73.2778L 716.542,70.6111L 714.875,69.4445L 713.542,72.1111L 712.042,79.6111L 709.542,84.6111L 709.208,90.6112L 707.875,92.6112L 709.708,96.9445L 709.708,100.444L 709.708,102.444L 706.208,105.611L 707.708,108.111L 706.875,111.278L 704.208,112.111L 703.708,113.444L 710.875,134.111L 713.042,142.444L 717.875,146.278L 718.708,143.778L 720.208,141.778L 720.875,136.111L 723.042,132.278L 725.542,130.111L 728.375,131.278L 729.208,128.444C 729.208,128.444 732.042,128.944 732.042,128.278C 732.042,127.611 732.042,118.944 732.042,118.944L 734.042,117.278L 735.708,118.778L 739.542,118.611L 739.875,115.611L 741.708,115.611L 743.542,116.944L 744.708,112.944L 747.542,112.111L 751.542,109.778L 753.208,108.278L 752.542,106.944L 750.875,106.944L 751.375,103.778L 748.375,101.444 Z "/>
		<state Name="NH" Width="22.1667" Height="46.5" Left="695.708" Top="111.944"      Data="F1 M 697.708,157.944L 704.375,157.611L 711.875,155.278L 717.042,150.944L 717.375,145.944L 713.042,142.278L 703.542,112.778L 700.875,112.444L 699.375,115.278L 699.042,118.444L 700.375,118.944L 700.542,121.111L 698.875,121.944L 700.875,124.111L 701.042,126.611L 699.708,128.778L 697.042,130.611C 697.042,130.611 696.375,133.111 696.375,133.778C 696.375,134.444 698.208,135.111 698.208,135.111L 698.042,138.111L 696.208,141.944L 696.208,147.778L 697.375,149.444L 697.708,157.944 Z "/>
		<state Name="VT" Width="23.8333" Height="43.1667" Left="677.542" Top="117.444"      Data="F1 M 678.042,123.611L 679.708,129.944L 681.208,140.611L 683.542,146.278L 685.375,147.944L 686.708,154.278L 687.875,159.611L 692.042,160.111L 697.542,157.611L 697.542,149.444L 695.875,146.944L 696.208,141.611L 698.042,137.778L 698.042,134.778L 696.542,133.778L 696.708,130.278L 699.708,128.444L 700.875,126.278L 700.708,123.778L 699.042,121.444L 700.375,120.778L 700.042,118.778L 698.708,117.944L 688.208,121.278L 678.042,123.611 Z "/>
		<state Name="MA" Width="39" Height="25.1667" Left="687.208" Top="150.778"      Data="F1 M 688.542,159.611L 687.708,171.444L 690.208,172.778L 698.375,171.111L 707.042,167.944L 710.208,168.278L 711.375,166.944L 714.375,167.444L 716.542,171.778L 719.875,175.444L 724.375,170.278L 725.708,167.944L 722.375,163.778L 717.542,162.111L 719.208,156.611L 720.875,154.944L 717.042,152.944L 716.542,151.278L 711.875,154.944L 704.708,157.444L 697.708,157.278L 692.208,159.444L 688.542,159.611 Z "/>
		<state Name="CT" Width="24.8333" Height="24.8333" Left="687.542" Top="167.111"      Data="F1 M 690.875,191.444C 690.875,191.444 689.875,188.944 689.875,188.278C 689.875,187.611 692.542,184.611 692.542,184.611L 688.042,171.944L 690.208,172.278L 698.208,171.278L 706.542,167.611L 710.208,167.778L 710.542,171.944L 711.875,175.278L 711.708,180.111L 700.542,184.778L 695.542,187.278L 690.875,191.444 Z "/>
		<state Name="RI" Width="8" Height="14" Left="710.042" Top="165.778"      Data="F1 M 715.708,177.778L 715.875,174.111L 717.542,171.944L 716.542,171.278L 714.208,167.111L 711.375,166.278L 710.708,167.778L 710.542,170.944L 711.875,175.278L 711.875,179.111L 714.208,179.278L 715.708,177.778 Z "/>
		<state Name="MD" Width="61.6667" Height="31.0833" Left="621.194" Top="218.417"      Data="F1 M 664.944,246.417L 662.528,248.167L 658.611,248L 656.528,245.5L 653.861,243.833L 653.444,241.583L 656.111,238.583L 655.111,235.5L 656.778,233.75L 655.028,231.917L 652.778,233.667L 649.278,233.583L 648.194,230.75L 646.028,230.167L 642.361,226.917L 639.528,225.667L 636.944,226.083L 634.444,228.167L 631.361,227.917L 625.444,234.083L 623.028,234.167L 621.694,227.917L 636.444,224.833L 646.611,222.667L 658.861,220.167L 662.611,219.5L 667.944,218.917L 674.778,238.833L 682.361,238.583L 682.361,243.333L 680.194,245.667L 675.361,249L 673.778,246L 672.694,243.417L 671.611,242.333L 670.611,242.417L 670.361,243.583L 668.611,243.417L 667.278,242L 667.194,237.917L 665.944,236.833L 667.444,234.417L 666.194,232.667L 667.694,229.833L 667.611,228.333L 665.694,228.917L 664.778,227.583L 667.528,225.417L 667.444,223.167L 665.861,222.167L 664.444,223.333L 664.444,225L 662.278,226.083L 662.111,228.25L 658.861,228.083L 662.194,231.417L 662.194,236L 662.611,239.167L 662.861,240.75L 660.611,239.75L 660.778,242L 663.111,244.25L 664.944,246.417 Z "/>
		<state Name="DE" Width="15.5833" Height="24.0833" Left="667.361" Top="215.167"      Data="F1 M 682.444,236.5L 681.611,233.833L 676.444,229.583L 674.778,226L 671.944,222L 672.111,220.25L 672.611,216L 669.944,215.667L 667.861,218.667L 674.778,238.583L 682.278,238.75L 682.444,236.5 Z "/>
		<state Name="NY" Width="83.4445" Height="73.1111" Left="609.68" Top="123.278"      Data="F1 M 690.847,191L 689.736,188.111L 692.625,184.444L 688.403,172.333L 687.625,171.222L 688.18,159.889L 685.18,148L 683.403,146L 680.958,140.667L 679.514,129.444L 677.736,123.778L 660.958,127.333L 658.625,128.667L 651.847,137.667L 650.625,142.667L 646.292,147.556L 647.403,149.333L 649.736,150.667L 648.292,151.444L 648.625,153.444L 650.069,156L 645.736,159L 642.292,162.444L 637.292,162.444L 635.403,164.778L 633.625,164.444L 632.292,162.778L 625.403,162.889L 616.736,167.444L 616.403,169.556L 618.736,172.889L 619.736,175.222L 617.292,178.111L 613.847,182.556L 610.18,185.667L 610.18,188.111L 611.736,189.444L 638.958,184.444L 661.18,179.667L 663.958,179L 666.736,179.889L 671.736,183.667L 673.069,186.444L 674.847,187.889L 680.403,189.222L 686.625,191L 687.292,194.444L 687.958,195.889L 690.958,193.778L 690.847,191 Z "/>
		<state Name="NJ" Width="18.7778" Height="42.8889" Left="671.236" Top="187.167"      Data="F1 M 682.292,229.556L 681.514,225.778L 676.958,225.111L 674.625,223.778L 671.736,221.556L 672.736,216.111L 676.403,212.222L 679.625,209.333L 680.514,208.444L 679.625,206.556L 674.625,203.111L 672.625,201.444L 672.736,199.333L 673.847,197.444L 672.514,195.111L 674.514,190.889L 675.069,187.667L 686.625,191L 688.18,194.556L 686.403,196.333L 684.958,200.667L 685.514,202.444L 688.292,203.111L 689.403,205.444L 689.292,209.556L 688.069,210.667L 688.625,214.667L 689.514,215.778L 688.069,218L 684.958,222.333L 684.625,228.556L 682.292,229.556 Z "/>
		<state Name="PA" Width="79.3333" Height="51.3333" Left="601.347" Top="178.278"      Data="F1 M 601.847,192.778L 608.958,186.667L 609.958,186.778L 610.18,187.778L 611.625,189L 663.625,178.778L 666.625,179.333L 671.625,183.444L 672.625,186.556L 674.625,187.889L 674.736,190.111L 672.292,195.111L 673.847,197.222L 672.736,199.111L 672.403,201.111L 679.514,206.444L 680.18,208.222L 672.736,216L 670.18,215.778L 667.514,218.667L 661.069,219.556L 621.625,228L 608.625,229.111L 605.403,214.444L 601.847,192.778 Z "/>
		<state Name="AK"  Width="139.667" Height="119.667" Left="160.236" Top="405.722"      Data="F1 M 299.403,523.889L 299.403,520.222L 298.069,516.222L 291.736,511.889L 285.069,505.222L 280.069,499.556L 277.069,497.889L 274.403,493.889L 272.403,491.222L 269.736,492.222L 268.736,495.222L 265.736,496.889L 258.736,490.556L 257.403,488.556L 254.403,489.556L 250.736,488.889L 249.736,477.556L 248.069,455.222L 246.403,421.222L 244.069,419.222L 240.736,417.555L 237.403,417.555L 234.403,417.555L 231.736,415.889L 227.736,416.222L 224.069,413.555L 218.403,413.889L 216.069,410.555L 211.403,410.222L 208.069,408.555L 206.736,406.222L 204.069,406.555L 202.069,407.889L 197.736,407.889L 197.403,411.222L 191.069,411.555L 188.069,413.222L 186.069,416.555L 182.736,418.222L 177.736,418.555L 175.403,420.555L 178.069,423.222L 180.069,427.889L 181.069,433.222L 185.736,433.222L 185.736,435.555L 190.069,439.222L 184.403,440.889L 181.069,440.889L 178.403,438.889L 178.069,435.555L 175.069,435.555L 172.069,436.555L 167.069,437.555L 164.736,438.889L 165.403,440.889L 169.069,442.222L 167.736,444.555L 167.736,447.222L 170.736,450.222L 176.069,450.222L 178.403,451.222L 180.403,449.555L 183.736,450.555L 184.403,452.555L 182.403,453.222L 182.403,457.889L 181.069,460.889L 178.736,460.555L 177.403,458.555L 176.069,460.889L 173.403,461.555L 172.403,459.222L 170.069,459.889L 166.736,463.889L 162.736,467.555L 160.736,469.555L 162.403,473.889L 161.403,477.222L 162.069,480.222L 164.069,481.222L 165.403,484.222L 168.736,483.556L 169.517,482.618L 170.403,481.556L 174.403,480.222L 171.736,485.556L 171.736,488.556L 171.069,492.889L 173.069,494.889L 176.069,493.889L 179.403,495.556L 180.403,498.556L 182.069,495.556L 184.069,496.222L 188.736,496.889L 187.069,501.222L 185.736,506.889L 183.069,507.222L 181.069,508.889L 180.736,511.222L 177.069,511.889L 171.736,515.555L 171.736,517.555L 176.736,517.555L 179.736,514.889L 182.069,514.555L 190.736,508.556L 189.736,505.889L 188.403,503.222L 192.069,503.556L 193.069,505.889L 198.069,504.556L 200.736,502.556L 203.069,501.222L 202.736,498.556L 200.069,496.222L 201.069,493.556L 204.403,493.556L 207.736,487.556L 215.736,480.556L 221.069,479.889L 219.736,483.222L 220.069,485.222L 215.069,485.222L 212.736,486.889L 211.403,490.556L 210.069,493.556L 212.403,493.889L 209.736,497.889L 213.403,497.889L 217.403,493.556L 224.403,493.222L 225.403,490.556L 223.069,487.222L 224.403,483.889L 229.403,484.556L 233.069,488.889L 237.069,489.556L 238.736,492.889L 245.403,492.889L 250.069,494.222L 252.069,495.556L 255.736,493.556L 256.736,496.222L 263.069,499.889L 269.736,503.222L 269.736,499.889L 270.069,507.222L 275.069,511.889L 277.736,511.556L 277.403,506.222L 273.736,502.889L 272.403,499.556L 272.403,496.889L 276.403,500.556L 280.736,504.222L 283.069,506.556L 283.069,508.556L 286.736,512.555L 289.403,515.555L 290.736,519.222L 292.403,522.222L 293.736,524.889L 296.403,522.889L 299.403,523.889 Z "/>

		<state Name="MI_1" Width="54" Height="69.5" Left="522.375" Top="135.889"      Data="F1 M 555.042,170.889L 558.375,171.889L 560.208,167.556L 561.208,164.389L 564.042,161.889L 566.875,161.556L 568.875,162.722L 569.708,165.056L 570.875,166.056L 571.375,168.556L 572.208,171.556L 573.208,174.556L 574.042,177.222L 575.875,178.389L 575.208,182.722L 574.208,184.722L 571.542,184.722L 570.375,188.056L 568.875,190.722L 567.875,192.389L 567.875,194.222L 567.375,196.389L 565.208,199.556L 564.542,201.889L 547.875,203.722L 547.042,202.222L 524.042,204.889L 525.708,200.556L 526.375,198.389L 527.875,195.889L 528.208,193.722L 528.708,190.056L 528.708,186.056L 527.208,184.222L 526.375,181.722L 525.208,178.722L 523.708,176.722L 523.208,173.722L 523.542,172.222L 524.375,171.056L 523.708,168.722L 522.875,167.222L 523.208,165.556L 524.208,162.722L 524.708,160.556L 524.875,158.389L 525.542,156.389L 526.542,155.056L 526.708,152.389L 528.042,151.389L 529.375,149.722L 529.542,148.556L 530.542,147.722L 532.375,147.222L 532.375,150.056L 531.875,151.389L 532.542,152.389L 534.042,154.222L 534.375,152.222L 534.208,150.056L 534.708,147.722L 534.875,145.722L 535.875,143.889L 537.042,142.389L 538.542,142.389L 537.875,140.222L 537.542,137.889L 539.542,136.556L 542.375,136.389L 544.042,136.889L 546.375,136.889L 547.542,136.889L 548.708,138.556L 551.042,139.222L 553.708,140.722L 555.375,141.222L 557.375,141.222L 558.542,142.722L 559.042,143.722L 558.708,146.222L 557.708,147.389L 558.042,148.389L 559.542,149.556L 560.875,150.722L 560.375,152.722L 560.375,155.056L 561.208,156.722L 561.208,158.056L 559.708,159.056L 559.042,161.889L 558.208,163.389L 556.542,164.056L 554.542,164.056L 554.375,166.222L 554.042,167.556L 555.042,170.889 Z "/>
		<state Name="MI_2" Width="76.5" Height="41" Left="473.375" Top="109.722"      Data="F1 M 549.375,130.722L 546.208,130.889L 543.708,131.556L 542.042,130.556L 540.875,133.222L 540.542,134.389L 538.542,133.556L 536.708,131.056L 534.042,131.389L 531.375,131.389L 528.708,133.722L 525.708,134.889L 523.708,134.222L 522.042,135.222L 521.208,137.222L 519.542,139.389L 518.542,140.722L 518.542,137.222L 517.042,136.389L 515.375,139.556L 514.042,136.722L 512.375,140.889L 511.208,144.389L 509.875,147.056L 507.875,150.222L 504.708,144.556L 504.042,141.389L 503.708,139.389L 500.708,139.722L 497.708,136.222L 495.708,135.722L 491.542,134.722L 482.875,132.722L 476.875,131.722L 473.875,126.889L 476.875,126.389L 479.708,124.056L 482.708,122.889L 485.042,121.889L 486.875,120.056L 490.208,116.556L 493.375,114.722L 495.042,112.389L 498.208,110.722L 500.542,110.222L 502.042,111.556L 500.042,113.889L 497.708,115.722L 495.042,118.722L 494.375,121.389L 496.542,122.222L 499.208,121.222L 502.375,120.222L 504.375,121.556L 506.042,123.222L 508.708,125.389L 509.875,126.556L 512.208,125.056L 514.042,126.056L 516.708,127.222L 519.375,123.722L 522.375,122.556L 526.708,121.222L 529.542,121.722L 531.875,120.056L 535.708,119.389L 536.708,121.556L 536.708,123.722L 538.042,125.056L 542.042,123.556L 543.542,122.222L 546.875,123.389L 546.875,125.389L 546.875,127.889L 549.375,130.722 Z "/>
		
		<state Name="HI_1" Width="19.2222" Height="21.8889" Left="92.3471" Top="436.861"      Data="F1 M 96.8471,458.25L 99.2916,458.139L 99.9582,456.139L 104.292,453.361L 107.514,453.25L 111.069,450.028L 110.958,448.139L 107.736,445.361L 107.069,443.472L 103.403,440.806L 100.292,439.694L 96.6249,437.472L 94.2916,437.361L 94.4027,439.694L 95.736,439.917L 95.736,441.917L 94.5138,442.583L 92.8471,444.472L 92.8471,447.028L 93.2916,450.361L 94.6249,450.917L 94.0693,456.028L 95.6249,456.139L 96.8471,458.25 Z "/>
		<state Name="HI_2" Width="10.8889" Height="7.77777" Left="81.7916" Top="423.639"      Data="F1 M 92.1804,428.139L 91.0693,429.583L 88.2916,430.917L 86.2916,430.361L 83.736,428.028L 82.2916,425.139L 82.9582,424.139L 85.5138,426.694L 87.6249,425.472L 89.5138,426.361L 92.1804,428.139 Z "/>
		<state Name="HI_3" Width="8.77778" Height="3.22223" Left="71.9027" Top="420.417"      Data="F1 M 78.1804,423.139L 72.4027,422.583L 72.4027,420.917L 80.1804,421.472L 78.1804,423.139 Z "/>
		<state Name="HI_4" Width="4.22221" Height="4.22223" Left="76.3471" Top="424.861"      Data="F1 M 76.8471,425.361L 80.0693,427.806L 77.8471,428.583L 76.8471,425.361 Z "/>
		<state Name="HI_5" Width="8.55555" Height="7.55554" Left="56.1249" Top="412.306"      Data="F1 M 63.9582,419.361L 58.2916,418.806L 56.9582,416.25L 56.6249,414.472L 59.0693,413.583L 60.0693,412.806L 61.5138,413.028L 62.4027,416.139L 64.1804,417.361L 63.9582,419.361 Z "/>
		<state Name="HI_6" Width="7.22222" Height="6" Left="31.9027" Top="403.417"      Data="F1 M 37.1804,408.917L 34.9582,408.806L 32.6249,407.472L 32.4027,405.139L 34.5138,404.694L 37.736,403.917L 38.6249,404.917L 38.6249,408.361L 37.1804,408.917 Z "/>
</map>
</usmaps>


Here is the Source also here

About these ads

14 Responses to "US Map in Listbox – WPF"

Cool stuff. Just a suggestion. Adding

to ListBoxItemStyle will get rid of the dotted dashed border that appears.

Looks like a great sample but the code above is riddled with errors. would you mind posting the code sample zipped?

That’s just plain silly! Great work :-)

Pierre,
I have Uploaded Code in rapidshare

Apparently my XAML code didn’t appear in the comment earlier. What I wanted to say was, setting the FocusVisualStyle to null will prevent the dotted line from appearing.

I also help to clean the code and upload it to

http://cid-7932c9bd97f4e1c6.skydrive.live.com/self.aspx/Public/ListBoxStyle.zip

Cheers!

I can’t seem to get this sample to work. When I click on any state within the map it just pops up a larger JPEG of the US. I am running IE8 and have downloaded latest Silverlight. What is the interaction or effect when it works? thx…

Hey,
I have given only mouseover effect , no other functionality in the State item. Also it is an WPF desktop application not browser dependent

Thanks
Muru

[…] of the XAML in ways that ASP.NET could never even dream of.  Submitted for your approval, see this implementation of the standard listbox. Permalink Write a comment $('#ctl00_cphBody_ucViewBlog_writeReview').click( function() { […]

[…] of the XAML in ways that ASP.NET could never even dream of.  Submitted for your approval, see this implementation of the standard listbox. […]

Hey Thanks for this, but how we use the Map of any of the state(like North Dakota) with there counties.
This is US Map. Now i want US State Map with there counties. Is it possible.

U truly put together a lot of remarkable items in ur posting, “US Map
in Listbox – WPF « Rich Application”. I am going to become returning to ur web page in the near future.
Thx ,Desiree

We’re a bunch of volunteers and opening a brand new scheme in our community. Your web site provided us with helpful info to work on. You’ve performed an impressive job and our whole community might be thankful to you.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


  • monwsh.over-blog.com: I love what you guys tend to be up too. This sort of clever work and reporting! Keep up the amazing works guys I've included you guys to our blogrol
  • incense burner: This is very interesting, You are an excessively professional blogger. I have joined your rss feed and look forward to looking for more of your fanta
  • Online Low cost Hotels scheduling in The capital: We're a bunch of volunteers and opening a brand new scheme in our community. Your web site provided us with helpful info to work on. You've performed
February 2009
M T W T F S S
     
 1
2345678
9101112131415
16171819202122
232425262728  
Follow

Get every new post delivered to your Inbox.

%d bloggers like this: