I want to be able to pass an enum parameter upon Loaded=" "
so I can easily identify the section that is loading without having to do string trickery on the name.
My Expander XAML:
<Expander Loaded="ExpanderLoaded" x:Name="Greeting_And_Opening_Expander" ExpandDirection="Down" IsExpanded="True" FontSize="14" FontWeight="Bold" Margin="5" BorderThickness="1" BorderBrush="#FF3E3D3D">
The Method I want it to call:
private void ExpanderLoaded(object sender, RoutedEventArgs e, Sections section)
{
//Do stuff
}
My Enum (It will be significantly larger, this is just a test run):
public enum Sections
{
Default = 0,
Opening = 1,
Verify = 2
}
How do I go about passing the enum as a parameter upon Loading?