C
C#7mo ago
OoogaBooga

Trying to Bind command WinUI But Error

private ICommand _buttonClickedCommand;

public ICommand Button_ClickedCommand
{
get
{
if (_buttonClickedCommand == null)
{
_buttonClickedCommand = new RelayCommand(
param => startPage()
);
}
return _buttonClickedCommand;
}
}

private void startPage()
{
var pathToFolder = "C:\\Program Files\\Internet Explorer\\iexplore.exe";

Process.Start(Environment.GetEnvironmentVariable("WINDIR") + @"\explorer.exe", pathToFolder);
}
private ICommand _buttonClickedCommand;

public ICommand Button_ClickedCommand
{
get
{
if (_buttonClickedCommand == null)
{
_buttonClickedCommand = new RelayCommand(
param => startPage()
);
}
return _buttonClickedCommand;
}
}

private void startPage()
{
var pathToFolder = "C:\\Program Files\\Internet Explorer\\iexplore.exe";

Process.Start(Environment.GetEnvironmentVariable("WINDIR") + @"\explorer.exe", pathToFolder);
}
No description
1 Reply
OoogaBooga
OoogaBooga7mo ago
The error