-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
84 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
src/tests/MyNet.Wpf.TestApp/ViewModels/Contents/PerfDialogViewModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Copyright (c) Stéphane ANDRE. All Right Reserved. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
using System.Collections.ObjectModel; | ||
using MyNet.UI.ViewModels.Dialogs; | ||
using MyNet.Utilities.Helpers; | ||
|
||
namespace MyNet.Wpf.TestApp.ViewModels.Contents | ||
{ | ||
internal class PerfDialogViewModel : DialogViewModel | ||
{ | ||
public ObservableCollection<int>? List { get; } = new(EnumerableHelper.Range(1, 1000, 1)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
src/tests/MyNet.Wpf.TestApp/Views/Contents/PerfDialogView.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<my:ContentDialog x:Class="MyNet.Wpf.TestApp.Views.Contents.PerfDialogView" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:contents="clr-namespace:MyNet.Wpf.TestApp.ViewModels.Contents" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:my="http://mynet.com/xaml/themes" | ||
d:DataContext="{d:DesignInstance Type=contents:PerfDialogViewModel}" | ||
d:DesignHeight="450" | ||
Width="800" | ||
Height="800" | ||
d:DesignWidth="800" | ||
Header="{Binding Title}" | ||
ShowCloseButton="True" | ||
mc:Ignorable="d"> | ||
|
||
<ItemsControl ItemsSource="{Binding List}"> | ||
<ItemsControl.ItemsPanel> | ||
<ItemsPanelTemplate> | ||
<WrapPanel IsItemsHost="True" Orientation="Horizontal" /> | ||
</ItemsPanelTemplate> | ||
</ItemsControl.ItemsPanel> | ||
<ItemsControl.ItemTemplate> | ||
<DataTemplate> | ||
<my:SimpleStackPanel Orientation="Horizontal" Margin="{StaticResource MyNet.Margins.Default}"> | ||
<my:NumericUpDown Value="{Binding Mode=OneWay}" /> | ||
<Button Style="{StaticResource MyNet.Styles.Button.Icon.Tool.ClipBoard}" CommandParameter="{Binding}" /> | ||
</my:SimpleStackPanel> | ||
</DataTemplate> | ||
</ItemsControl.ItemTemplate> | ||
</ItemsControl> | ||
|
||
</my:ContentDialog> |
13 changes: 13 additions & 0 deletions
13
src/tests/MyNet.Wpf.TestApp/Views/Contents/PerfDialogView.xaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Copyright (c) Stéphane ANDRE. All Right Reserved. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
using MyNet.UI.Attributes; | ||
|
||
namespace MyNet.Wpf.TestApp.Views.Contents | ||
{ | ||
[IsTransient] | ||
public partial class PerfDialogView | ||
{ | ||
public PerfDialogView() => InitializeComponent(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters