public static SplitButton initDebugLabels()
{
SplitButton btn = new SplitButton
{
Width = 125,
Height = 20,
HorizontalAlignment = HorizontalAlignment.Left,
VerticalAlignment = VerticalAlignment.Top,
Margin = new Thickness(425, 10, 0, 0),
IsEnabled = true,
Content = "Funky",
Name = "Funky",
};
btn.Click += lblFunky_Click;
lblDebug_OpenLog = new Label
{
Content = "Open DB LogFile",
Width = 100,
Height = 25,
HorizontalAlignment = HorizontalAlignment.Stretch,
};
lblDebug_OpenLog.MouseDown += lblDebug_OpenDBLog;
lblDebug_FunkyLog = new Label
{
Content = "Open Funky LogFile",
Width = 100,
Height = 25,
HorizontalAlignment = HorizontalAlignment.Stretch,
};
lblDebug_FunkyLog.MouseDown += lblDebug_OpenFunkyLog;
Label OpenTrinityFolder = new Label
{
Content = "Open Funky Folder",
Width = 100,
Height = 25,
HorizontalAlignment = HorizontalAlignment.Stretch,
};
OpenTrinityFolder.MouseDown += lblDebug_OpenTrinityFolder;
Label Recompile = new Label
{
Content = "Recompile Funky",
Width = 100,
Height = 25,
HorizontalAlignment = HorizontalAlignment.Stretch,
};
Recompile.MouseDown += lblCompile_Click;
menuItem_Debug = new MenuItem
{
Header = "Debuging",
Width = 125
};
menuItem_Debug.Items.Add(lblDebug_OpenLog);
menuItem_Debug.Items.Add(lblDebug_FunkyLog);
menuItem_Debug.Items.Add(OpenTrinityFolder);
menuItem_Debug.Items.Add(Recompile);
btn.ButtonMenuItemsSource.Add(menuItem_Debug);
return btn;
}