I subclassed ( I think) the FeatureDataGrid, added it in XAML.
The FDG receives the output of my selections perfectly.
I added an Export Selected button named "ExportButton" to the Options Popup Menus. The button appears in the menu when I run the project and click "Options".
Partial XAML of Options popup below:
<Grid Margin="5,0,0,0">
<Button x:Name="OptionsButton" Content=" Options... "/>
<Popup x:Name="PopupMenu" IsOpen="False">
<Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" Background="TemplateBinding Background}" CornerRadius="1.5">
<StackPanel> <Button x:Name="ExportButton" Margin="5,0" Style="{StaticResource MenuButtonStyle}">
<TextBlock Margin="5" Text="Export Selection" VerticalAlignment="Center"/>
</Button>
My question is, inside my subclass, in VB .Net, how do I find my button to assign it's click event?
Thanks for any suggestions.