so what i am trying to make is a program when minimized will go to system tray, and then apon double clicking the icon in the system try the program will reopen up its window. now the oroblem i am running in to is in the xaml at it says "the name "test" does not exist in the namespace "clr-namespace:alarm.test".
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:tb="http://www.hardcodet.net/taskbar"
xmlns:local="clr-namespace:alarm.test"
x:Class="alarm.MainWindow"
Height="300"
Width="300">
<Grid>
<Grid.Resources>
<local:test
x:Key="MessageCommand" />
</Grid.Resources>
<tb:TaskbarIcon
x:Name="MyNotifyIcon"
IconSource="/Icons/Error.ico"
ToolTipText="Balloon Sample Icon"
PopupActivation="LeftClick"
DoubleClickCommand=""
/>
<Button
x:Name="btnShowStandardBalloon"
Click="btnShowStandardBalloon_Click"
Margin="26,74,29,0"
Content="Show Standard Balloon" Height="29" VerticalAlignment="Top" />
<Button
x:Name="btnHideStandardBalloon"
Click="btnHideStandardBalloon_Click"
Margin="26,113,29,122"
Content="Hide Standard Balloon" />
</Grid>
and this is wear "test" is located
namespace alarm.test
{
public class test : ICommand
{
public void Execute(object parameter)
{
MessageBox.Show(parameter.ToString());
}
public bool CanExecute(object parameter)
{
return true;
}
public event EventHandler CanExecuteChanged;
}
}