public MainWindow() { InitializeComponent(); // Add the Open Command AddCommandBindings(ApplicationCommands.Open, OpenCommandHandler); // Add the Save Command //AddCommandBindings(ApplicationCommands.Save, SaveCommandHandler); AddCommandBindings(ApplicationCommands.Save, SaveCommandHandler); // Add the Exit/Close Command AddCommandBindings(ApplicationCommands.Close, CloseCommandHandler); _documentRollUp = new RollUpDocument(); _documentCache = new Dictionary <string, XpsDocument>(); }
public MainWindow() { InitializeComponent(); // Add the Open Command AddCommandBindings(ApplicationCommands.Open, OpenCommandHandler); // Add the Save Command //AddCommandBindings(ApplicationCommands.Save, SaveCommandHandler); AddCommandBindings(ApplicationCommands.Save, SaveCommandHandler); // Add the Exit/Close Command AddCommandBindings(ApplicationCommands.Close, CloseCommandHandler); _documentRollUp = new RollUpDocument(); _documentCache = new Dictionary<string, XpsDocument>(); }