Instead of adding static items to combo box you can create a collection for it. for ex. Create class like:
public class KeyValuePair
{
string key;
public string Key
{
get { return key; }
set { key = value; }
}
string value;
public string Value
{
get { return this.value; }
set { this.value = value; }
}
}
Then in your view model add following code:
ObservableCollection<KeyValuePair> applicable_For_KeyValues = new ObservableCollection<KeyValuePair>();
KeyValuePair k1 = new KeyValuePair() { Key = "1", Value = "Parcel" };
KeyValuePair k2 = new KeyValuePair() { Key = "2", Value = "Property" };
applicable_For_KeyValues.Add(k1);
applicable_For_KeyValues.Add(k2);
Then in xaml add following:
<pmControls:pmComboBox Grid.Row="3" Grid.Column="1" Margin="3"
ItemsSource="{Binding Applicable_For_KeyValues}"
SelectedValue="{Binding Applicable_For,Mode=TwoWay}" SelectedValuePath="Value">
<pmControls:pmComboBox.ItemTemplate >
<DataTemplate>
<TextBlock Text="{Binding Value}"></TextBlock>
</DataTemplate>
</pmControls:pmComboBox.ItemTemplate>
</pmControls:pmComboBox>
Hope this solve your problem.