Problem: I'm building a UI for a project. I have an enum built in another namespace and I want to display it as the options for a combobox. I've been reading online and have been getting very lost between questions that are almost a decade old and spots where the language they're using is unclear.
Code
Enum C#
namespace Foo.Bar
public class ExampleEnumClass
{
public enum ExampleEnum
{
Fee,
Fi,
Fo,
Fum,
}
}
UI .XAML
<Grid>
<ComboBox Name="comboBox" IsReadOnly="True" IsEditable="True" Height="23" Width="100" HorizontalContentAlignment="Center" HorizontalAlignment="Right" VerticalAlignment="Center" />
</Grid>