<ComboBox Name="cboRateTypes" SelectedValue="{Binding rat_type, Mode=Default}" ItemsSource="{Binding Source={StaticResource rateTypes}}"></ComboBox>>>
<Window x:Class="WpfApplication1.MainWindow" > xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" > xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" > xmlns:local ="clr-namespace:WpfApplication1" > xmlns:sys="clr-namespace:System;assembly=mscorlib" > Title="MainWindow" Height="350" Width="525"> ><Window.Resources> > <ObjectDataProvider x:Key="rates" > MethodName="GetValues" > ObjectType="{x:Type sys:Enum}"> > <ObjectDataProvider.MethodParameters> > <x:Type TypeName="local:RateType" /> > </ObjectDataProvider.MethodParameters> > </ObjectDataProvider> > </Window.Resources> ><ComboBox ItemsSource="{Binding Source={StaticResource rates}}" SelectedValue="{Binding SelectedRate}"></ComboBox> ></Window>and
using System.Windows; > >namespace WpfApplication1 >{ > public partial class MainWindow : Window > { > public MainWindow() > { > InitializeComponent(); > DataContext = this; > } > > private RateType _selectedRate; > public RateType SelectedRate > { > get { return _selectedRate; } > set { _selectedRate = value; } > } > } > > public enum RateType : int > { > Standard = 1, > Mail = 2, > ZipX = 3 > } > >}Hmm...