|
@@ -0,0 +1,229 @@
|
|
|
|
|
+<UserControl x:Class="SKMC.UI.DesignApp.Views.BasicControlsView"
|
|
|
|
|
+ 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:SKMC.UI.DesignApp.Views"
|
|
|
|
|
+ xmlns:c="clr-namespace:SKMC.UI.CustomControls;assembly=SKMC.UI"
|
|
|
|
|
+ xmlns:u="clr-namespace:SKMC.UI.UserControls;assembly=SKMC.UI"
|
|
|
|
|
+ xmlns:prism="http://prismlibrary.com/"
|
|
|
|
|
+ prism:ViewModelLocator.AutoWireViewModel="True"
|
|
|
|
|
+ mc:Ignorable="d"
|
|
|
|
|
+ d:DesignHeight="800" d:DesignWidth="1000">
|
|
|
|
|
+ <Grid>
|
|
|
|
|
+ <Border Style="{StaticResource Border.Base}"
|
|
|
|
|
+ Background="Transparent">
|
|
|
|
|
+ <StackPanel Orientation="Horizontal" Margin="3">
|
|
|
|
|
+ <StackPanel HorizontalAlignment="Left">
|
|
|
|
|
+ <Button Style="{StaticResource Button.Base}"
|
|
|
|
|
+ Content="Button.Base"/>
|
|
|
|
|
+ <Button Style="{StaticResource Button.Primary}"
|
|
|
|
|
+ Content="Button.Primary"/>
|
|
|
|
|
+ <Button Style="{StaticResource Button.Secondary}"
|
|
|
|
|
+ Content="Button.Secondary"/>
|
|
|
|
|
+ <Button Style="{StaticResource Button.Debug}"
|
|
|
|
|
+ Content="Button.Debug"/>
|
|
|
|
|
+ <Button Style="{StaticResource Button.WindowControl}"
|
|
|
|
|
+ Content="{StaticResource Icon.Minimize}"
|
|
|
|
|
+ ToolTip="Button.WindowControl Content = Icon.Minimize"/>
|
|
|
|
|
+ <Button Style="{StaticResource Button.WindowControl}"
|
|
|
|
|
+ Content="{StaticResource Icon.Maximize}"
|
|
|
|
|
+ ToolTip="Button.WindowControl Content = Icon.Maximize"/>
|
|
|
|
|
+ <Button Style="{StaticResource Button.WindowControl}"
|
|
|
|
|
+ Content="{StaticResource Icon.Restore}"
|
|
|
|
|
+ ToolTip="Button.WindowControl Content = Icon.Restore"/>
|
|
|
|
|
+ <Button Style="{StaticResource Button.WindowControl}"
|
|
|
|
|
+ Content="{StaticResource Icon.Close}"
|
|
|
|
|
+ ToolTip="Button.WindowControl Content = Icon.Close"/>
|
|
|
|
|
+ <Button Style="{StaticResource Button.SimpleIcon}"
|
|
|
|
|
+ Content="{StaticResource Icon.Home}"
|
|
|
|
|
+ ToolTip="Button.SimpleIcon Content = Icon.Home FontSize = 45"
|
|
|
|
|
+ Height="50"
|
|
|
|
|
+ Width="50"
|
|
|
|
|
+ FontSize="35"/>
|
|
|
|
|
+ <c:SKButton Style="{StaticResource Button.WithIcon}"
|
|
|
|
|
+ Content="Button.WithIcon" Width="160"
|
|
|
|
|
+ Icon="{StaticResource Icon.HomePosition}"
|
|
|
|
|
+ FontSize="15"
|
|
|
|
|
+ ToolTip="SKMC.UI.CustomControls.SKButton"/>
|
|
|
|
|
+ <ToggleButton Style="{StaticResource ToggleButton.Base}" Margin="5"
|
|
|
|
|
+ Content="ToggleButton.Base" Width="180"/>
|
|
|
|
|
+ <ToggleButton Style="{StaticResource ToggleButton.Primary}" Margin="5"
|
|
|
|
|
+ Content="ToggleButton.Primary" Width="180"/>
|
|
|
|
|
+ <ToggleButton Style="{StaticResource ToggleButton.SimpleLamp}" Margin="5"
|
|
|
|
|
+ Content="ToggleButton.SimpleLamp" Width="180"
|
|
|
|
|
+ Height="40"
|
|
|
|
|
+ FontSize="12"/>
|
|
|
|
|
+ <ToggleButton Style="{StaticResource ToggleButton.SimpleLocker}" Margin="5"
|
|
|
|
|
+ Content="ToggleButton.SimpleLocker" Width="60" Height="60"
|
|
|
|
|
+ FontSize="45"/>
|
|
|
|
|
+ <ToggleButton Style="{StaticResource ToggleButton.ThemeSwitch}" Margin="5"
|
|
|
|
|
+ Content="ToggleButton.ThemeSwitch" Width="60" Height="60"
|
|
|
|
|
+ FontSize="45"/>
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+ <StackPanel Margin="3">
|
|
|
|
|
+ <ComboBox Style="{StaticResource ComboBox.Primary}"
|
|
|
|
|
+ Height="30" Width="180" Text="ComboBox.Primary">
|
|
|
|
|
+ <ComboBoxItem>ComboBox.Primary</ComboBoxItem>
|
|
|
|
|
+ <ComboBoxItem>ComboBox.Primary</ComboBoxItem>
|
|
|
|
|
+ <ComboBoxItem>ComboBox.Primary</ComboBoxItem>
|
|
|
|
|
+ </ComboBox>
|
|
|
|
|
+ <DatePicker Style="{StaticResource DatePicker.Primary}"
|
|
|
|
|
+ ToolTip="DatePicker.Primary"
|
|
|
|
|
+ Margin="5"
|
|
|
|
|
+ Width="150"/>
|
|
|
|
|
+ <PasswordBox Style="{StaticResource PasswordBox.Base}"
|
|
|
|
|
+ ToolTip="PasswordBox.Base"/>
|
|
|
|
|
+ <RadioButton Style="{StaticResource RadioButton.Base}"
|
|
|
|
|
+ Content="RadioButton.Base"
|
|
|
|
|
+ Margin="5"/>
|
|
|
|
|
+ <RadioButton Style="{StaticResource RadioButton.Base}"
|
|
|
|
|
+ Content="RadioButton.Base"
|
|
|
|
|
+ Margin="5"/>
|
|
|
|
|
+ <RadioButton Style="{StaticResource RadioButton.Primary}"
|
|
|
|
|
+ Content="RadioButton.Base"
|
|
|
|
|
+ Margin="5"
|
|
|
|
|
+ Width="150"
|
|
|
|
|
+ FontSize="15"/>
|
|
|
|
|
+ <c:SKRadioButton Style="{StaticResource RadioButton.SystemMenu}"
|
|
|
|
|
+ Content="RadioButton.SystemMenu"
|
|
|
|
|
+ Margin="5"
|
|
|
|
|
+ Icon="{StaticResource Icon.Home}"
|
|
|
|
|
+ FontSize="13"/>
|
|
|
|
|
+ <c:SKTextBox Icon="{StaticResource Icon.MagnifyingGlass}"
|
|
|
|
|
+ Text="TextBox.Primary"
|
|
|
|
|
+ Style="{StaticResource TextBox.Primary}"
|
|
|
|
|
+ Margin="5"
|
|
|
|
|
+ Height="40"
|
|
|
|
|
+ Width="180"
|
|
|
|
|
+ ToolTip="SKTextBox"/>
|
|
|
|
|
+ <c:SKTextBox Text="TextBox.Primary"
|
|
|
|
|
+ Style="{StaticResource TextBox.Primary}"
|
|
|
|
|
+ Margin="5"
|
|
|
|
|
+ Height="40"
|
|
|
|
|
+ ToolTip="SKTextBox"
|
|
|
|
|
+ Unit="mm/s²"
|
|
|
|
|
+ Width="180"/>
|
|
|
|
|
+ <c:SKTextBox Text="TextBox.Primary"
|
|
|
|
|
+ Style="{StaticResource TextBox.Primary}"
|
|
|
|
|
+ Margin="5"
|
|
|
|
|
+ Height="40"
|
|
|
|
|
+ Width="180"
|
|
|
|
|
+ ToolTip="SKTextBox"
|
|
|
|
|
+ Unit="mm/s²"
|
|
|
|
|
+ NumpadActivity="True"/>
|
|
|
|
|
+ <TextBox Style="{StaticResource TextBox.SimpleWatermark}"
|
|
|
|
|
+ Height="40"
|
|
|
|
|
+ Margin="5"
|
|
|
|
|
+ Width="180"
|
|
|
|
|
+ Tag="TextBox.SimpleWatermark"/>
|
|
|
|
|
+ <TextBox Style="{StaticResource TextBox.Base}"
|
|
|
|
|
+ Height="40"
|
|
|
|
|
+ Margin="5"
|
|
|
|
|
+ Width="180"/>
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+ <StackPanel>
|
|
|
|
|
+ <DataGrid Style="{StaticResource DataGrid.Primary}"
|
|
|
|
|
+ Width="500"
|
|
|
|
|
+ Height="400"
|
|
|
|
|
+ CanUserResizeColumns="True"
|
|
|
|
|
+ ScrollViewer.HorizontalScrollBarVisibility="Visible"
|
|
|
|
|
+ ScrollViewer.VerticalScrollBarVisibility="Visible">
|
|
|
|
|
+ <DataGrid.Columns>
|
|
|
|
|
+ <DataGridTextColumn
|
|
|
|
|
+ Width="0.2*"
|
|
|
|
|
+ Header="Id"
|
|
|
|
|
+ IsReadOnly="True"/>
|
|
|
|
|
+ <DataGridTextColumn
|
|
|
|
|
+ Width="0.5*"
|
|
|
|
|
+ Header="Name"
|
|
|
|
|
+ IsReadOnly="True"/>
|
|
|
|
|
+ <DataGridTextColumn
|
|
|
|
|
+ Width="0.3*"
|
|
|
|
|
+ Header="Time"
|
|
|
|
|
+ IsReadOnly="True"/>
|
|
|
|
|
+ <DataGridTextColumn
|
|
|
|
|
+ Width="0.3*"
|
|
|
|
|
+ Header="Level"
|
|
|
|
|
+ IsReadOnly="True"/>
|
|
|
|
|
+ <DataGridTextColumn
|
|
|
|
|
+ Width="*"
|
|
|
|
|
+ Header="Message"
|
|
|
|
|
+ IsReadOnly="True"/>
|
|
|
|
|
+ </DataGrid.Columns>
|
|
|
|
|
+ </DataGrid>
|
|
|
|
|
+ <ListView
|
|
|
|
|
+ Grid.Row="0"
|
|
|
|
|
+ Grid.ColumnSpan="2"
|
|
|
|
|
+ Margin="0,5,0,0"
|
|
|
|
|
+ BorderThickness="1"
|
|
|
|
|
+ Style="{StaticResource ListView.Primary}"
|
|
|
|
|
+ Width="500"
|
|
|
|
|
+ Height="400"
|
|
|
|
|
+ ScrollViewer.VerticalScrollBarVisibility="Visible"
|
|
|
|
|
+ ScrollViewer.HorizontalScrollBarVisibility="Visible">
|
|
|
|
|
+ <ListView.View>
|
|
|
|
|
+ <GridView ColumnHeaderContainerStyle="{StaticResource ListView.ColumnHeader}">
|
|
|
|
|
+ <GridViewColumn Width="70" Header="Id">
|
|
|
|
|
+ <GridViewColumn.CellTemplate>
|
|
|
|
|
+ <DataTemplate>
|
|
|
|
|
+ <Border HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
|
|
|
|
+ <TextBlock
|
|
|
|
|
+ HorizontalAlignment="Center"
|
|
|
|
|
+ VerticalAlignment="Center"/>
|
|
|
|
|
+ </Border>
|
|
|
|
|
+ </DataTemplate>
|
|
|
|
|
+ </GridViewColumn.CellTemplate>
|
|
|
|
|
+ </GridViewColumn>
|
|
|
|
|
+
|
|
|
|
|
+ <GridViewColumn Width="70" Header="Name">
|
|
|
|
|
+ <GridViewColumn.CellTemplate>
|
|
|
|
|
+ <DataTemplate>
|
|
|
|
|
+ <Border HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
|
|
|
|
+ <TextBlock
|
|
|
|
|
+ HorizontalAlignment="Center"
|
|
|
|
|
+ VerticalAlignment="Center"/>
|
|
|
|
|
+ </Border>
|
|
|
|
|
+ </DataTemplate>
|
|
|
|
|
+ </GridViewColumn.CellTemplate>
|
|
|
|
|
+ </GridViewColumn>
|
|
|
|
|
+ <GridViewColumn Width="200" Header="Catalog">
|
|
|
|
|
+ <GridViewColumn.CellTemplate>
|
|
|
|
|
+ <DataTemplate>
|
|
|
|
|
+ <Border HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
|
|
|
|
+ <TextBlock
|
|
|
|
|
+ HorizontalAlignment="Center"
|
|
|
|
|
+ VerticalAlignment="Center"/>
|
|
|
|
|
+ </Border>
|
|
|
|
|
+ </DataTemplate>
|
|
|
|
|
+ </GridViewColumn.CellTemplate>
|
|
|
|
|
+ </GridViewColumn>
|
|
|
|
|
+ <GridViewColumn Width="120" Header="Value">
|
|
|
|
|
+ <GridViewColumn.CellTemplate>
|
|
|
|
|
+ <DataTemplate>
|
|
|
|
|
+ <Border HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
|
|
|
|
+ <TextBox Foreground="Blue"/>
|
|
|
|
|
+ </Border>
|
|
|
|
|
+ </DataTemplate>
|
|
|
|
|
+ </GridViewColumn.CellTemplate>
|
|
|
|
|
+ </GridViewColumn>
|
|
|
|
|
+ <GridViewColumn Width="120" Header="Commet">
|
|
|
|
|
+ <GridViewColumn.CellTemplate>
|
|
|
|
|
+ <DataTemplate>
|
|
|
|
|
+ <Border HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
|
|
|
|
+ <TextBlock
|
|
|
|
|
+ HorizontalAlignment="Center"
|
|
|
|
|
+ VerticalAlignment="Center"
|
|
|
|
|
+ Foreground="Green" />
|
|
|
|
|
+ </Border>
|
|
|
|
|
+ </DataTemplate>
|
|
|
|
|
+ </GridViewColumn.CellTemplate>
|
|
|
|
|
+ </GridViewColumn>
|
|
|
|
|
+ </GridView>
|
|
|
|
|
+ </ListView.View>
|
|
|
|
|
+ </ListView>
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+ </Border>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+</UserControl>
|