ThematicLayerControl.xaml
上传用户:huazai0421
上传日期:2008-05-30
资源大小:405k
文件大小:3k
源码类别:

SilverLight

开发平台:

C#

  1. <UserControl x:Class="ESRI.ArcGIS.Samples.ThematicLayerControl"
  2.     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
  3.     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
  4. xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows">
  5. <UserControl.Resources>
  6. <Style TargetType="ListBoxItem" x:Name="listBoxStyle">
  7. <Setter Property="ContentTemplate">
  8. <Setter.Value>
  9. <DataTemplate>
  10. <TextBlock Text="{Binding}" Foreground="White" />
  11. </DataTemplate>
  12. </Setter.Value>
  13. </Setter>
  14. </Style>
  15. </UserControl.Resources>
  16. <StackPanel>
  17. <StackPanel Orientation="Vertical" >
  18. <TextBlock HorizontalAlignment="Left" Foreground="White" TextAlignment="Center" Text="Theme:" Margin="0,5,0,0"  />
  19. <ComboBox x:Name="FieldCombo" Style="{StaticResource comboBox}" SelectionChanged="OnComboBoxChanged_Render" >
  20. <ComboBox.ItemTemplate>
  21. <DataTemplate><TextBlock Text="{Binding Description}" Foreground="White" /></DataTemplate>
  22. </ComboBox.ItemTemplate>
  23. </ComboBox>
  24. <TextBlock HorizontalAlignment="Left" Foreground="White" TextAlignment="Center" Text="Classes:" Margin="0,5,0,0"  />
  25. <ComboBox Style="{StaticResource comboBox}" x:Name="ClassCountCombo" SelectionChanged="OnComboBoxChanged_Render">
  26. <ComboBox.ItemTemplate>
  27. <DataTemplate><TextBlock Text="{Binding}" Foreground="White" /></DataTemplate>
  28. </ComboBox.ItemTemplate>
  29. </ComboBox>
  30. <TextBlock HorizontalAlignment="Left" Foreground="White" TextAlignment="Center" Text="Classification Type:" Margin="0,5,0,0"  />
  31. <ComboBox x:Name="ClassTypeCombo" Style="{StaticResource comboBox}" SelectionChanged="OnComboBoxChanged_Render">
  32. <ComboBox.ItemTemplate>
  33. <DataTemplate><TextBlock Text="{Binding}" Foreground="White" /></DataTemplate>
  34. </ComboBox.ItemTemplate>
  35. </ComboBox>
  36. <TextBlock HorizontalAlignment="Left" Foreground="White" TextAlignment="Center" Text="Color Theme:" Margin="0,5,0,0"  />
  37. <ComboBox x:Name="ColorBlendCombo" Style="{StaticResource comboBox}" SelectionChanged="OnComboBoxChanged_Render">
  38. <ComboBoxItem Content="Blue" Background="Blue" Style="{StaticResource listBoxStyle}" />
  39. <ComboBoxItem Content="Red" Background="Red" Style="{StaticResource listBoxStyle}" />
  40. <ComboBoxItem Content="Green" Background="Green" Style="{StaticResource listBoxStyle}" />
  41. <ComboBoxItem Content="Yellow" Background="Yellow" Style="{StaticResource listBoxStyle}" />
  42. <ComboBoxItem Content="Magenta" Background="Magenta" Style="{StaticResource listBoxStyle}" />
  43. <ComboBoxItem Content="Cyan" Background="Cyan" Style="{StaticResource listBoxStyle}" />
  44. <ComboBoxItem Content="MultiColor" Style="{StaticResource listBoxStyle}" />
  45. </ComboBox>
  46. <!--<Button x:Name="RenderButton" Style="{StaticResource darkButtonStyle}" 
  47. IsEnabled="False" Content="Render " Click="RenderButton_Click" Margin="0,5,0,0" />-->
  48. </StackPanel>
  49. </StackPanel>
  50. </UserControl>