Skip to content

Commit

Permalink
Demo App Code Cleanup (#2104)
Browse files Browse the repository at this point in the history
* Cleanup & reformat Cards section

* Cleanup & reformat Buttons section

* Cleanup & reformat Chips section
  • Loading branch information
AmRo045 authored Oct 3, 2020
1 parent f800cbe commit 7fc12fe
Show file tree
Hide file tree
Showing 6 changed files with 1,062 additions and 462 deletions.
696 changes: 500 additions & 196 deletions MainDemo.Wpf/Buttons.xaml

Large diffs are not rendered by default.

20 changes: 4 additions & 16 deletions MainDemo.Wpf/Buttons.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using MaterialDesignColors.WpfExample.Domain;

namespace MaterialDesignColors.WpfExample
{
/// <summary>
/// Interaction logic for Buttons.xaml
/// </summary>
public partial class Buttons : UserControl
{
public Buttons()
Expand All @@ -21,24 +17,16 @@ public Buttons()
public ICommand FloatingActionDemoCommand { get; }

private void Execute(object o)
{
Console.WriteLine("Floating action button command. - " + (o ?? "NULL").ToString());
}
=> Console.WriteLine("Floating action button command. - " + (o ?? "NULL").ToString());

private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
{
Console.WriteLine("Just checking we haven't suppressed the button.");
}
=> Console.WriteLine("Just checking we haven't suppressed the button.");

private void PopupBox_OnOpened(object sender, RoutedEventArgs e)
{
Console.WriteLine("Just making sure the popup has opened.");
}
=> Console.WriteLine("Just making sure the popup has opened.");

private void PopupBox_OnClosed(object sender, RoutedEventArgs e)
{
Console.WriteLine("Just making sure the popup has closed.");
}
=> Console.WriteLine("Just making sure the popup has closed.");

private void CountingButton_OnClick(object sender, RoutedEventArgs e)
{
Expand Down
Loading

0 comments on commit 7fc12fe

Please sign in to comment.