i have two assemblies
1. MyProj.GUI
2. MyProj
in MyProj
i define an enum MergeAction {ApplyTarget, ApplyToWorkingCopy, Ignore};
in the MyProj.GUI
, i have a Xaml for Combobox as so:
xmlns:Merge="clr-namespace:Megatec.EB2UDF.Merge;assembly=Megatec.EB2UDF"
<DataTemplate DataType="{x:Type Merge:DifferenceViewModel}">
<ComboBox SelectedValue="{Binding Path=MergeAction}">
<ComboBox.Items>
<Merge:MergeAction>Ignore</Merge:MergeAction>
<Merge:MergeAction>ApplyToWorkingCopy</Merge:MergeAction>
<Merge:MergeAction>ApplyToTarget</Merge:MergeAction>
</ComboBox.Items>
</ComboBox>
</DataTemplate>
when i open the Window, i get the exception System.Resources.MissingManifestResourceException
Could not find any resources appropriate for the specified culture or the neutral culture...
Without having the ComboBox.Items
Tag... everything is cool...
why is that?
what am i doing wrong?
Edit:
The assembly is called several times from the Xaml (even the same object)
Example
<ribbon:Button Label="Send Change" CommandParameter="{x:Static Merge:MergeAction.ApplyToTarget}" Command="{Binding ApplyActionCommand}">
<ribbon:Button.ImageSourceLarge>
<BitmapImage UriSource="/Images/MAIL.png" />
</ribbon:Button.ImageSourceLarge>
</ribbon:Button>
but only the ComboBox is doing the error.