コード例 #1
0
ファイル: MainWindow.cs プロジェクト: DebugOfTheRoad/BigData
        void FlashMessage(string text, Brush background)
        {
            var label = new FlashLabel {
                Content       = text,
                Background    = background,
                FlashDuration = TimeSpan.FromSeconds(5),
            };

            Grid.SetRow(label, 0);
            Grid.SetColumn(label, 0);
            Grid.SetZIndex(label, int.MaxValue);
            grid.Children.Add(label);

            label.Done += delegate { grid.Children.Remove(label); };
        }
コード例 #2
0
ファイル: MainWindow.cs プロジェクト: DebugOfTheRoad/BigData
        void FlashMessage(string text, Brush background) {
            var label = new FlashLabel {
                Content = text,
                Background = background,
                FlashDuration = TimeSpan.FromSeconds(5),
            };
            Grid.SetRow(label, 0);
            Grid.SetColumn(label, 0);
            Grid.SetZIndex(label, int.MaxValue);
            grid.Children.Add(label);

            label.Done += delegate { grid.Children.Remove(label); };
        }