Skip to content

Commit cf97cb5

Browse files
committed
Upgraded XamlDisplayerPanel
- now the step to use XamlDisplayerPanel is even simplified - the CS code only need to be touch once when using the XamlDisplayerPanel
1 parent 1955833 commit cf97cb5

25 files changed

+41
-34
lines changed

MainDemo.Wpf/Buttons.xaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
<materialDesignConverters:BooleanToVisibilityConverter x:Key="InvertedBooleanToVisibilityConverter" TrueValue="Collapsed" FalseValue="Visible" />
2727
</ResourceDictionary>
2828
</UserControl.Resources>
29-
<codeDisplayer:XamlDisplayerPanel x:Name="XamlDisplayerPanel">
29+
<codeDisplayer:XamlDisplayerPanel x:Name="XamlDisplayerPanel" >
30+
3031

3132
<Button Style="{StaticResource MaterialDesignRaisedLightButton}" Width="100"
3233
ToolTip="Resource name: MaterialDesignRaisedLightButton">

MainDemo.Wpf/Buttons.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public Buttons()
2929
{
3030
InitializeComponent();
3131
FloatingActionDemoCommand = new AnotherCommandImplementation(Execute);
32-
XamlDisplayerPanel.Initialize(new SourceRouter(this.GetType().Name).GetSource());
32+
3333
}
3434

3535
public ICommand FloatingActionDemoCommand { get; }

MainDemo.Wpf/Cards.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public partial class Cards : UserControl
2727
public Cards()
2828
{
2929
InitializeComponent();
30-
XamlDisplayerPanel.Initialize(new SourceRouter(this.GetType().Name).GetSource());
30+
3131
}
3232

3333

MainDemo.Wpf/Chips.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public partial class Chips : UserControl
2525
public Chips()
2626
{
2727
InitializeComponent();
28-
XamlDisplayerPanel.Initialize(new SourceRouter(this.GetType().Name).GetSource());
28+
2929
}
3030

3131
private void ButtonsDemoChip_OnClick(object sender, RoutedEventArgs e)

MainDemo.Wpf/ColorZones.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public partial class ColorZones : UserControl
2525
public ColorZones()
2626
{
2727
InitializeComponent();
28-
XamlDisplayerPanel.Initialize(new SourceRouter(this.GetType().Name).GetSource());
28+
2929
}
3030
}
3131
}

MainDemo.Wpf/Dialogs.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public partial class Dialogs : UserControl
2525
public Dialogs()
2626
{
2727
InitializeComponent();
28-
XamlDisplayerPanel.Initialize(new SourceRouter(this.GetType().Name).GetSource());
28+
2929
}
3030

3131
private void Sample1_DialogHost_OnDialogClosing(object sender, DialogClosingEventArgs eventArgs)

MainDemo.Wpf/Drawers.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public partial class Drawers : UserControl
2525
public Drawers()
2626
{
2727
InitializeComponent();
28-
XamlDisplayerPanel.Initialize(new SourceRouter(this.GetType().Name).GetSource());
28+
2929
}
3030
}
3131
}

MainDemo.Wpf/Expander.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public partial class Expander : UserControl
2525
public Expander()
2626
{
2727
InitializeComponent();
28-
XamlDisplayerPanel.Initialize(new SourceRouter(this.GetType().Name).GetSource());
28+
2929
}
3030
}
3131
}
Binary file not shown.

MainDemo.Wpf/Grids.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public partial class Grids : UserControl
2525
public Grids()
2626
{
2727
InitializeComponent();
28-
XamlDisplayerPanel.Initialize(new SourceRouter(this.GetType().Name).GetSource());
28+
2929
}
3030
}
3131
}

0 commit comments

Comments
 (0)