//******************************************************************************************************
// DetailViewFooterUserControl.xaml.cs - Gbtc
//
// Copyright © 2010, Grid Protection Alliance. All Rights Reserved.
//
// Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreements. See
// the NOTICE file distributed with this work for additional information regarding copyright ownership.
// The GPA licenses this file to you under the MIT License (MIT), the "License"; you may
// not use this file except in compliance with the License. You may obtain a copy of the License at:
//
// http://www.opensource.org/licenses/MIT
//
// Unless agreed to in writing, the subject software distributed under the License is distributed on an
// "AS-IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. Refer to the
// License for the specific language governing permissions and limitations.
//
// Code Modification History:
// ----------------------------------------------------------------------------------------------------
// 04/12/2011 - mthakkar
// Generated original version of source code.
//
//******************************************************************************************************
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
namespace GSF.TimeSeries.UI.UserControls
{
///
/// Interaction logic for DetailViewFooterUserControl.xaml
///
public partial class DetailViewFooterUserControl : UserControl
{
#region [ Properties ]
//Dependency Properties
///
/// for delete operation.
///
public static DependencyProperty DeleteCommandProperty = DependencyProperty.Register("DeleteCommand", typeof(ICommand), typeof(DetailViewFooterUserControl), new PropertyMetadata(null));
///
/// for clear form operation.
///
public static DependencyProperty ClearCommandProperty = DependencyProperty.Register("ClearCommand", typeof(ICommand), typeof(DetailViewFooterUserControl), new PropertyMetadata(null));
///
/// for save operation.
///
public static DependencyProperty SaveCommandProperty = DependencyProperty.Register("SaveCommand", typeof(ICommand), typeof(DetailViewFooterUserControl), new PropertyMetadata(null));
///
/// to determine if Save button is enabled on UI.
///
public static DependencyProperty SaveEnabledProperty = DependencyProperty.Register("SaveEnabled", typeof(bool), typeof(DetailViewFooterUserControl), new PropertyMetadata(false));
///
/// Gets or sets to delete selected object.
///
public ICommand DeleteCommand
{
get
{
return (ICommand)GetValue(DeleteCommandProperty);
}
set
{
SetValue(DeleteCommandProperty, value);
}
}
///
/// Gets or sets to reset selection.
///
public ICommand ClearCommand
{
get
{
return (ICommand)GetValue(ClearCommandProperty);
}
set
{
SetValue(ClearCommandProperty, value);
}
}
///
/// Gets or sets to save selected object information into backend datastore.
///
public ICommand SaveCommand
{
get
{
return (ICommand)GetValue(SaveCommandProperty);
}
set
{
SetValue(SaveCommandProperty, value);
}
}
///
/// Gets or sets boolean value indicating IsEnabled property of Save button.
///
public bool SaveEnabled
{
get
{
return (bool)GetValue(SaveEnabledProperty);
}
set
{
SetValue(SaveEnabledProperty, value);
}
}
#endregion
#region [ Constructor ]
///
/// Creates a new instance of .
///
public DetailViewFooterUserControl()
{
InitializeComponent();
}
#endregion
}
}