using System.Collections.Generic;
using System.Windows;
using Core.Common.Controls.Commands;
using Core.Common.Gui.Forms;
using Fluent;
namespace Ringtoets.Demo
{
///
/// Interaction logic for MapRibbon.xaml
///
public partial class MapRibbon : IRibbonCommandHandler
{
///
/// Creates an instance of
///
public MapRibbon()
{
InitializeComponent();
}
///
/// Sets the command used when open map button is clicked.
///
public ICommand OpenMapViewCommand { private get; set; }
public IEnumerable Commands
{
get
{
if (OpenMapViewCommand != null)
{
yield return OpenMapViewCommand;
}
}
}
public Ribbon GetRibbonControl()
{
return RibbonControl;
}
public void ValidateItems() {}
public bool IsContextualTabVisible(string tabGroupName, string tabName)
{
return false;
}
private void ButtonOpenMapView_Click(object sender, RoutedEventArgs e)
{
OpenMapViewCommand.Execute();
}
}
}