Browse Source

rename to custom notification view.

pull/2453/head
Dan Walmsley 7 years ago
parent
commit
63da339fba
  1. 2
      samples/ControlCatalog/MainWindow.xaml
  2. 2
      samples/ControlCatalog/Views/CustomNotificationView.xaml
  3. 4
      samples/ControlCatalog/Views/CustomNotificationView.xaml.cs

2
samples/ControlCatalog/MainWindow.xaml

@ -8,7 +8,7 @@
x:Class="ControlCatalog.MainWindow"> x:Class="ControlCatalog.MainWindow">
<Window.DataTemplates> <Window.DataTemplates>
<DataTemplate DataType="vm:NotificationViewModel"> <DataTemplate DataType="vm:NotificationViewModel">
<v:NotificationView /> <v:CustomNotificationView />
</DataTemplate> </DataTemplate>
</Window.DataTemplates> </Window.DataTemplates>
<Panel> <Panel>

2
samples/ControlCatalog/Views/NotificationView.xaml → samples/ControlCatalog/Views/CustomNotificationView.xaml

@ -1,6 +1,6 @@
<UserControl xmlns="https://github.com/avaloniaui" <UserControl xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="ControlCatalog.Views.NotificationView"> x:Class="ControlCatalog.Views.CustomNotificationView">
<Border Padding="12" MinHeight="20" Background="DodgerBlue"> <Border Padding="12" MinHeight="20" Background="DodgerBlue">
<Grid ColumnDefinitions="Auto,*"> <Grid ColumnDefinitions="Auto,*">
<Panel Margin="0,0,12,0" Width="25" Height="25" VerticalAlignment="Top"> <Panel Margin="0,0,12,0" Width="25" Height="25" VerticalAlignment="Top">

4
samples/ControlCatalog/Views/NotificationView.xaml.cs → samples/ControlCatalog/Views/CustomNotificationView.xaml.cs

@ -3,9 +3,9 @@ using Avalonia.Markup.Xaml;
namespace ControlCatalog.Views namespace ControlCatalog.Views
{ {
public class NotificationView : UserControl public class CustomNotificationView : UserControl
{ {
public NotificationView() public CustomNotificationView()
{ {
this.InitializeComponent(); this.InitializeComponent();
} }
Loading…
Cancel
Save