Mistři v programování na #hovnokod

C# #4710

How to close a window...

        <telerik:Label Margin="-1,-5"
                               HorizontalAlignment="Right"
                               VerticalAlignment="Top"
                               Content="x"
                               Foreground="LightGray"
                               MouseDown="LabelMouseDown" />

        private void LabelMouseDown(object sender, MouseButtonEventArgs e)
        {
            Visibility = Visibility.Collapsed;
        }

Anonymous,