| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268 |
- <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="1200">
- <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"/>
- <CheckBox Style="{StaticResource Checkbox.Base}"
- Content="Checkbox.Base"/>
- <CheckBox Style="{StaticResource Checkbox.DefaultMargin}"
- Content="Checkbox.Default"/>
- <Label Content="ProgressBar.Base" Foreground="{StaticResource Brush.Text}"/>
- <ProgressBar Style="{StaticResource ProgressBar.Base}"
- Value="50"/>
- <Expander Style="{StaticResource Expander.Base}"
- Header="Expander.Base"
- Foreground="{StaticResource Brush.Text}"/>
- </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>
- <StackPanel Orientation="Horizontal">
- <Label Content="LedControl" Foreground="{StaticResource Brush.Text}"/>
- <u:LedControl IsBlinking="True" Width="20" Height="20"/>
- </StackPanel>
- <u:StatusControl IsActive="True" IsBlinking="True"
- IsSecondStatusActive="True"
- IsSecondStatusBlinking="True"
- Label="StatusControl"
- Height="25"
- Margin="5"
- CornerRadius="3"/>
- <StackPanel Orientation="Horizontal">
- <Label Content="WaitIconControl" Foreground="{StaticResource Brush.Text}"/>
- <u:WaitIconControl ShowWait="True" Margin="3"/>
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <Label Content="IdControl" Foreground="{StaticResource Brush.Text}"/>
- <u:IdControl Id="1" Width="15" Height="15" Foreground="AliceBlue"/>
- <u:IdControl Id="2" Width="15" Height="15" Foreground="AliceBlue"/>
- <u:IdControl Id="3" Width="15" Height="15" Foreground="AliceBlue"/>
- <u:IdControl Id="4" Width="15" Height="15" Foreground="AliceBlue"/>
- </StackPanel>
- <u:ParameterControl ParameterTitle="ParameterControl"
- ParameterValue="50.0"
- ParameterUnit="mm"
- Width="210"
- Height="30"/>
- </StackPanel>
- </StackPanel>
- </Border>
- </Grid>
- </UserControl>
|