add MvvmAppUi class library
parent
2b6f1a2cdc
commit
ea22a95348
@ -0,0 +1,17 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net6.0-windows</TargetFramework>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
<UseWPF>true</UseWPF>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.1.0" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\MvvmAppCore\MvvmAppCore.csproj" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
||||||
@ -0,0 +1,38 @@
|
|||||||
|
<UserControl x:Class="MvvmAppUi.Views.MotorProfileView"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:local="clr-namespace:MvvmAppUi.Views"
|
||||||
|
mc:Ignorable="d"
|
||||||
|
d:DesignHeight="450"
|
||||||
|
d:DesignWidth="800">
|
||||||
|
<Grid>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition />
|
||||||
|
<ColumnDefinition />
|
||||||
|
<ColumnDefinition />
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition />
|
||||||
|
<RowDefinition />
|
||||||
|
<RowDefinition />
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<!-- Content -->
|
||||||
|
<Grid Grid.Column="1">
|
||||||
|
<TextBlock Text="{Binding MotorName}" />
|
||||||
|
</Grid>
|
||||||
|
<Grid Grid.Column="1"
|
||||||
|
Grid.Row="2"
|
||||||
|
Grid.ColumnSpan="2">
|
||||||
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<Button Content="OK"
|
||||||
|
Margin="5"
|
||||||
|
HorizontalContentAlignment="Stretch" />
|
||||||
|
<Button Content="Cancel"
|
||||||
|
Margin="5"
|
||||||
|
HorizontalContentAlignment="Stretch" />
|
||||||
|
</StackPanel>
|
||||||
|
</Grid>
|
||||||
|
</Grid>
|
||||||
|
</UserControl>
|
||||||
Loading…
Reference in New Issue