Пример #1
0
        //EwavFilterControl filterControl;
        /// <summary>
        /// Default Constructor
        /// </summary>
        public DataFilterControl()
        {
            InitializeComponent();
            SlideOut.Children.Add(CreateSlidingAnim("Slider", 644));
            LayoutRoot.Resources.Add("SlideOut", SlideOut);

            SlideIn.Children.Add(CreateSlidingAnim("Slider", 0));
            LayoutRoot.Resources.Add("SlideIn", SlideIn);
            //ND:Commented Slider.MouseEnter Line so that the tab only slides on MouseLeftButtonDown.Added the Slider.MouseLeftButtonDown
            //Slider.MouseEnter += new MouseEventHandler(Slider_MouseEnter);
            Slider.MouseLeftButtonDown += new MouseButtonEventHandler(Slider_MouseEnter);
            Slider.MouseLeave          += new MouseEventHandler(Slider_MouseLeave);
            //btnClear.IsEnabled = false;

            this.Loaded += new RoutedEventHandler(DataFilterControl_Loaded);

            //applicationViewModel.UnloadedEvent += new Client.Application.UnloadedEventHandler(applicationViewModel_UnloadedEvent);

            //this.Unloaded += new RoutedEventHandler(DataFilterControl_Unloaded);

            UnWireEvents();

            WireEvents();

            FilterControl.FilterType = FilterControlType.DataFilter;
            FilterControl.InitializeDataFilter();
        }