using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Shapes; using System.Collections.ObjectModel; using XAMLFinance.ViewModel; namespace XAMLFinance.View { public partial class HeatMapView : UserControl { public HeatMapView() { InitializeComponent(); } private void Grid_MouseUp(object sender, MouseButtonEventArgs e) { Grid grid = sender as Grid; InstrumentPriceViewModel viewModel = grid.DataContext as InstrumentPriceViewModel; viewModel.ViewInstrumentCommand.Execute(null); } private void Border_MouseEnter(object sender, MouseEventArgs e) { Border border = sender as Border; Storyboard sb = border.Resources["BorderHighlight"] as Storyboard; sb.Begin(); } private void Border_MouseLeave(object sender, MouseEventArgs e) { Border border = sender as Border; Storyboard sb = border.Resources["BorderRemoveHighlight"] as Storyboard; sb.Begin(); } } }
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)