Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
UI/UX Tools
Debugging
Free Tools
Support and Learning
Productivity and Design Tools
<
Window
x:Class
=
"Capture.Manager.Modules.EngineListing.Editor.AddEngineWindow"
xmlns
"http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x
"http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:telerik
"http://schemas.telerik.com/2008/xaml/presentation"
Height
"300"
Width
>
Window.Resources
RoutedCommand
x:Key
"CommitCommand"
/>
"CancelCommand"
</
Window.CommandBindings
CommandBinding
CanExecute
"CommandBinding_CanExecute"
Executed
"CommandBinding_CommitExecuted"
Command
"{StaticResource CommitCommand}"
"CommandBinding_CancelExecuted"
"{StaticResource CancelCommand}"
Grid
telerik:RadDataForm
CurrentItem
"{Binding}"
x:Name
"dataForm"
CommandButtonsVisibility
"All"
telerik:RadDataForm.CommitButtonStyle
Style
TargetType
"telerik:RadButton"
Setter
Property
"Command"
Value
<!--do not work-->
telerik:RadDataForm.CancelButtonStyle
<!--<Button Command="{StaticResource CommitCommand}"/>-->
<!--works-->
using
System;
System.Collections.Generic;
System.Linq;
System.Text;
System.Windows;
System.Windows.Controls;
System.Windows.Data;
System.Windows.Documents;
System.Windows.Input;
System.Windows.Media;
System.Windows.Media.Imaging;
System.Windows.Shapes;
namespace
Capture.Manager.Modules.EngineListing.Editor
{
/// <summary>
/// Interaction logic for AddEngineWindow.xaml
/// </summary>
public
partial
class
AddEngineWindow : Window
static
RoutedCommand CommitCommand =
new
RoutedCommand();
AddEngineWindow()
InitializeComponent();
}
private
void
CommandBinding_CanExecute(
object
sender, CanExecuteRoutedEventArgs e)
e.CanExecute =
true
;
CommandBinding_CommitExecuted(
sender, ExecutedRoutedEventArgs e)
CommandBinding_CancelExecuted(
System.Runtime.Serialization.Formatters.Binary;
System.IO;
Capture.Manager.Infrastructure.Objects
[Serializable]
EngineMeta : ICloneable
string
Name {
get
set
; }
Clone()
MemoryStream stream =
MemoryStream();
BinaryFormatter f =
BinaryFormatter();
f.Serialize(stream, f);
return
f.Deserialize(stream);