Init
parent
26e793a610
commit
f94e3c2946
Binary file not shown.
@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
|
||||
</startup>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="MySql.Data" publicKeyToken="c5687fc88969c44d" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-8.1.0.0" newVersion="8.1.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Data.SQLite" publicKeyToken="db937bc2d44ff139" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-1.0.116.0" newVersion="1.0.116.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Oracle.ManagedDataAccess" publicKeyToken="89b483f429c47342" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.122.21.1" newVersion="4.122.21.1" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
</configuration>
|
@ -0,0 +1,14 @@
|
||||
<Application x:Class="Aucma.Scada.UI.App"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="clr-namespace:Aucma.Scada.UI"
|
||||
StartupUri="MainWindow.xaml">
|
||||
<Application.Resources>
|
||||
<!--Button样式-->
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="templates/style/resourceStyle.xaml"/>
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</Application.Resources>
|
||||
</Application>
|
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
@ -0,0 +1,12 @@
|
||||
<UserControl x:Class="Aucma.Scada.UI.IndexControl"
|
||||
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:Aucma.Scada.UI"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="450" d:DesignWidth="800" Background="Red">
|
||||
<Grid>
|
||||
|
||||
</Grid>
|
||||
</UserControl>
|
@ -0,0 +1,12 @@
|
||||
<UserControl x:Class="Aucma.Scada.UI.LogInfoControl"
|
||||
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:Aucma.Scada.UI"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="450" d:DesignWidth="800">
|
||||
<Grid>
|
||||
<ListBox x:Name="listBox" ItemsSource="{Binding ListBoxData}" Background="Transparent" BorderBrush="CornflowerBlue"/>
|
||||
</Grid>
|
||||
</UserControl>
|
@ -0,0 +1,180 @@
|
||||
<Window x:Class="Aucma.Scada.UI.MainWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:Aucma.Scada.UI"
|
||||
mc:Ignorable="d"
|
||||
Title="SCADA" Height="1080" Width="1920" Icon="Icon.png"
|
||||
WindowState="Maximized" WindowStyle="None" ResizeMode="NoResize" Topmost="False"
|
||||
>
|
||||
<!--WindowState="Maximized" WindowStyle="None" ResizeMode="NoResize"Topmost="True"-->
|
||||
|
||||
<Border Margin="5" Background="White" CornerRadius="10">
|
||||
<Border.Effect>
|
||||
<DropShadowEffect Color="Gray" ShadowDepth="0" BlurRadius="5" Opacity="0.3" Direction="0"></DropShadowEffect>
|
||||
</Border.Effect>
|
||||
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="1*"/>
|
||||
<RowDefinition Height="7*"/>
|
||||
<RowDefinition Height="0.7*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Border Grid.Row="0" BorderBrush="CadetBlue" BorderThickness="1" CornerRadius="5" Background="Transparent" Margin="2,2">
|
||||
|
||||
</Border>
|
||||
<Border Grid.Row="1" BorderBrush="CadetBlue" BorderThickness="1" CornerRadius="5" Background="Transparent" Margin="2,2">
|
||||
<ContentControl Content="{Binding UserContent}"/>
|
||||
</Border>
|
||||
<Border Grid.Row="2" BorderBrush="CadetBlue" BorderThickness="1" CornerRadius="5" Background="Transparent" Margin="2,2">
|
||||
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<StackPanel Grid.Column="0" VerticalAlignment="Center" HorizontalAlignment="Left" Orientation="Horizontal">
|
||||
<Button Content="首 页" x:Name="inde" Command="{Binding ControlOnClickCommand}" CommandParameter="{Binding Name,ElementName=inde}" Style="{StaticResource BUTTON_AGREE}" Width="100" Height="30" Background="#009999" BorderBrush="#FF36B5C1" Margin="10,0,10,0"/>
|
||||
<Button Content="日 志" x:Name="logInfo" Command="{Binding ControlOnClickCommand}" CommandParameter="{Binding Name,ElementName=logInfo}" Style="{StaticResource BUTTON_AGREE}" Width="100" Height="30" Background="#009999" BorderBrush="#FF36B5C1" Margin="0,0,10,0"/>
|
||||
<Button Content="记 录" x:Name="record" Command="{Binding ControlOnClickCommand}" CommandParameter="{Binding Name,ElementName=record}" Style="{StaticResource BUTTON_AGREE}" Width="100" Height="30" Background="#009999" BorderBrush="#FF36B5C1" Margin="0,0,10,0"/>
|
||||
<Button Content="键 盘" Command="{Binding OpenSystemKeyboardCommand}" Style="{StaticResource BUTTON_AGREE}" Width="100" Height="30" Background="#009999" BorderBrush="#FF36B5C1" Margin="0,0,10,0"/>
|
||||
<Button Content="最小化" x:Name="Minimized" Command="{Binding FormControlCommand}" CommandParameter="{Binding Name,ElementName=Minimized}" Style="{StaticResource BUTTON_AGREE}" Width="100" Height="30" Background="#FF9900" BorderBrush="#FF9900" Margin="0,0,10,0"/>
|
||||
<Button Content="退 出" x:Name="Exit" Command="{Binding FormControlCommand}" CommandParameter="{Binding Name,ElementName=Exit}" Style="{StaticResource BUTTON_AGREE}" Width="100" Height="30" Background="#FF0033" BorderBrush="#FF0033" Margin="0,0,10,0"/>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Right" Orientation="Horizontal">
|
||||
|
||||
<!--多行状态显示-->
|
||||
<!--<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<StackPanel Grid.Row="0" Margin="0,0,0,0" VerticalAlignment="Center">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<StackPanel Grid.Column="0">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<StackPanel Grid.Column="1">
|
||||
<TextBlock Text="连接状态" FontSize="15" Foreground="Black" Margin="2,0,10,0"/>
|
||||
</StackPanel>
|
||||
<StackPanel Grid.Column="0">
|
||||
<Ellipse Width="20" Height="20">
|
||||
<Ellipse.Style>
|
||||
<Style TargetType="Ellipse">
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding PresentColor}" Value="0">
|
||||
<Setter Property="Shape.Fill" Value="Orange"/>
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding PresentColor}" Value="1">
|
||||
<Setter Property="Shape.Fill" Value="Green"/>
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding PresentColor}" Value="2">
|
||||
<Setter Property="Shape.Fill" Value="Red"/>
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</Ellipse.Style>
|
||||
</Ellipse>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Grid.Row="1" Margin="0,10,0,0" VerticalAlignment="Center">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<StackPanel Grid.Column="0">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<StackPanel Grid.Column="1">
|
||||
<TextBlock Text="连接状态" FontSize="15" Foreground="Black" Margin="2,0,10,0"/>
|
||||
</StackPanel>
|
||||
<StackPanel Grid.Column="0">
|
||||
<Ellipse Width="20" Height="20">
|
||||
<Ellipse.Style>
|
||||
<Style TargetType="Ellipse">
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding PresentColor}" Value="0">
|
||||
<Setter Property="Shape.Fill" Value="Orange"/>
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding PresentColor}" Value="1">
|
||||
<Setter Property="Shape.Fill" Value="Green"/>
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding PresentColor}" Value="2">
|
||||
<Setter Property="Shape.Fill" Value="Red"/>
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</Ellipse.Style>
|
||||
</Ellipse>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
</Grid>-->
|
||||
|
||||
<!--单行状态显示-->
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<StackPanel Grid.Column="0">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<StackPanel Grid.Column="0">
|
||||
<Ellipse Width="30" Height="30">
|
||||
<Ellipse.Style>
|
||||
<Style TargetType="Ellipse">
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding PresentColor}" Value="0">
|
||||
<Setter Property="Shape.Fill" Value="Orange"/>
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding PresentColor}" Value="1">
|
||||
<Setter Property="Shape.Fill" Value="Green"/>
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding PresentColor}" Value="2">
|
||||
<Setter Property="Shape.Fill" Value="Red"/>
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</Ellipse.Style>
|
||||
</Ellipse>
|
||||
</StackPanel>
|
||||
<StackPanel Grid.Column="1" VerticalAlignment="Center">
|
||||
<TextBlock Text="设备状态" FontSize="15" Foreground="Black" Margin="2,0,10,0"/>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
|
||||
</Grid>
|
||||
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
|
||||
|
||||
</Border>
|
||||
</Grid>
|
||||
</Border>
|
||||
|
||||
</Window>
|
@ -0,0 +1,117 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
@ -0,0 +1,7 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile xmlns="uri:settings" CurrentProfile="(Default)">
|
||||
<Profiles>
|
||||
<Profile Name="(Default)" />
|
||||
</Profiles>
|
||||
<Settings />
|
||||
</SettingsFile>
|
@ -0,0 +1,60 @@
|
||||
<UserControl x:Class="Aucma.Scada.UI.RecordControl"
|
||||
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:Aucma.Scada.UI"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="450" d:DesignWidth="800" Background="Transparent">
|
||||
|
||||
<Grid Margin="10,10">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="100"/>
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Border Grid.Row="0" BorderBrush="#007DFA" BorderThickness="0" CornerRadius="10" Background="Transparent">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="40"/>
|
||||
<RowDefinition Height="40"/>
|
||||
</Grid.RowDefinitions>
|
||||
<StackPanel Margin="15,0" Grid.Row="0" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left">
|
||||
<TextBlock Text="用户名称" VerticalAlignment="Center" Foreground="Black" FontSize="15"/>
|
||||
<TextBox Width="200" Height="25" Margin="10 0 0 0" Text="{Binding Search}" Foreground="White" VerticalAlignment="Center" FontSize="15"/> <!--resourceStyle 413行修改边框颜色-->
|
||||
|
||||
<Button Content="查询" Command="{Binding QueryCommand}" Background="#007DFA" Foreground="White" Margin="20,0,0,0" Height="30" BorderBrush="DeepSkyBlue" BorderThickness="1" Width="80" />
|
||||
<Button Content="重置" Command="{Binding ResetCommand}" Background="#007DFA" Foreground="White" Margin="20,0,0,0" Height="30" BorderBrush="DeepSkyBlue" BorderThickness="1" Width="80" />
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
|
||||
</Border>
|
||||
|
||||
<Border Grid.Row="1" Margin="0,5,0,0" BorderBrush="#007DFA" BorderThickness="0" CornerRadius="0" Background="Transparent">
|
||||
<DataGrid ItemsSource="{Binding GridModelList}" Background="Transparent"
|
||||
FontSize="15" ColumnHeaderHeight="35"
|
||||
RowHeight="30" AutoGenerateColumns="False" RowHeaderWidth="0"
|
||||
GridLinesVisibility="None" ScrollViewer.HorizontalScrollBarVisibility="Hidden"
|
||||
ScrollViewer.VerticalScrollBarVisibility="Hidden" BorderThickness="0" CanUserAddRows="False"
|
||||
Foreground="Black" ><!--resourceStyle 399行修改选中字体颜色-->
|
||||
|
||||
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Binding="{Binding userId}" Header="用户编号" Width="100" IsReadOnly="True"/>
|
||||
<DataGridTextColumn Binding="{Binding userName}" Header="用户名称" Width="*" IsReadOnly="True"/>
|
||||
<DataGridTextColumn Binding="{Binding password}" Header="用户密码" Width="*" IsReadOnly="True"/>
|
||||
<!--<DataGridTemplateColumn Header="操作" Width="*">
|
||||
<DataGridTemplateColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Button Content="编辑" CommandParameter="{Binding objId}" Background="#007DFA" Foreground="White" Margin="20,0,0,0" Height="25" BorderBrush="DeepSkyBlue" BorderThickness="1" Width="80" Command="{Binding DataContext.EditCommand, RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=DataGrid }}"/>
|
||||
<Button Content="删除" CommandParameter="{Binding objId}" Background="Gray" Foreground="White" Margin="20,0,0,0" Height="25" BorderBrush="DeepSkyBlue" BorderThickness="1" Width="80" Command="{Binding DataContext.DelCommand, RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=DataGrid }}" />
|
||||
</StackPanel>
|
||||
</DataTemplate>
|
||||
</DataGridTemplateColumn.CellTemplate>
|
||||
|
||||
</DataGridTemplateColumn>-->
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
</Border>
|
||||
</Grid>
|
||||
</UserControl>
|
Binary file not shown.
@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
|
||||
</startup>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="MySql.Data" publicKeyToken="c5687fc88969c44d" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-8.1.0.0" newVersion="8.1.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Data.SQLite" publicKeyToken="db937bc2d44ff139" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-1.0.116.0" newVersion="1.0.116.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Oracle.ManagedDataAccess" publicKeyToken="89b483f429c47342" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.122.21.1" newVersion="4.122.21.1" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.2" newVersion="4.0.1.2" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
</configuration>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,465 @@
|
||||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>GalaSoft.MvvmLight.Extras</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="T:GalaSoft.MvvmLight.Helpers.DesignerLibrary">
|
||||
<summary>
|
||||
Helper class for platform detection.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:GalaSoft.MvvmLight.Ioc.ISimpleIoc">
|
||||
<summary>
|
||||
A very simple IOC container with basic functionality needed to register and resolve
|
||||
instances. If needed, this class can be replaced by another more elaborate
|
||||
IOC container implementing the IServiceLocator interface.
|
||||
The inspiration for this class is at https://gist.github.com/716137 but it has
|
||||
been extended with additional features.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Ioc.ISimpleIoc.ContainsCreated``1">
|
||||
<summary>
|
||||
Checks whether at least one instance of a given class is already created in the container.
|
||||
</summary>
|
||||
<typeparam name="TClass">The class that is queried.</typeparam>
|
||||
<returns>True if at least on instance of the class is already created, false otherwise.</returns>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Ioc.ISimpleIoc.ContainsCreated``1(System.String)">
|
||||
<summary>
|
||||
Checks whether the instance with the given key is already created for a given class
|
||||
in the container.
|
||||
</summary>
|
||||
<typeparam name="TClass">The class that is queried.</typeparam>
|
||||
<param name="key">The key that is queried.</param>
|
||||
<returns>True if the instance with the given key is already registered for the given class,
|
||||
false otherwise.</returns>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Ioc.ISimpleIoc.IsRegistered``1">
|
||||
<summary>
|
||||
Gets a value indicating whether a given type T is already registered.
|
||||
</summary>
|
||||
<typeparam name="T">The type that the method checks for.</typeparam>
|
||||
<returns>True if the type is registered, false otherwise.</returns>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Ioc.ISimpleIoc.IsRegistered``1(System.String)">
|
||||
<summary>
|
||||
Gets a value indicating whether a given type T and a give key
|
||||
are already registered.
|
||||
</summary>
|
||||
<typeparam name="T">The type that the method checks for.</typeparam>
|
||||
<param name="key">The key that the method checks for.</param>
|
||||
<returns>True if the type and key are registered, false otherwise.</returns>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Ioc.ISimpleIoc.Register``2">
|
||||
<summary>
|
||||
Registers a given type for a given interface.
|
||||
</summary>
|
||||
<typeparam name="TInterface">The interface for which instances will be resolved.</typeparam>
|
||||
<typeparam name="TClass">The type that must be used to create instances.</typeparam>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Ioc.ISimpleIoc.Register``2(System.Boolean)">
|
||||
<summary>
|
||||
Registers a given type for a given interface with the possibility for immediate
|
||||
creation of the instance.
|
||||
</summary>
|
||||
<typeparam name="TInterface">The interface for which instances will be resolved.</typeparam>
|
||||
<typeparam name="TClass">The type that must be used to create instances.</typeparam>
|
||||
<param name="createInstanceImmediately">If true, forces the creation of the default
|
||||
instance of the provided class.</param>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Ioc.ISimpleIoc.Register``1">
|
||||
<summary>
|
||||
Registers a given type.
|
||||
</summary>
|
||||
<typeparam name="TClass">The type that must be used to create instances.</typeparam>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Ioc.ISimpleIoc.Register``1(System.Boolean)">
|
||||
<summary>
|
||||
Registers a given type with the possibility for immediate
|
||||
creation of the instance.
|
||||
</summary>
|
||||
<typeparam name="TClass">The type that must be used to create instances.</typeparam>
|
||||
<param name="createInstanceImmediately">If true, forces the creation of the default
|
||||
instance of the provided class.</param>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Ioc.ISimpleIoc.Register``1(System.Func{``0})">
|
||||
<summary>
|
||||
Registers a given instance for a given type.
|
||||
</summary>
|
||||
<typeparam name="TClass">The type that is being registered.</typeparam>
|
||||
<param name="factory">The factory method able to create the instance that
|
||||
must be returned when the given type is resolved.</param>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Ioc.ISimpleIoc.Register``1(System.Func{``0},System.Boolean)">
|
||||
<summary>
|
||||
Registers a given instance for a given type with the possibility for immediate
|
||||
creation of the instance.
|
||||
</summary>
|
||||
<typeparam name="TClass">The type that is being registered.</typeparam>
|
||||
<param name="factory">The factory method able to create the instance that
|
||||
must be returned when the given type is resolved.</param>
|
||||
<param name="createInstanceImmediately">If true, forces the creation of the default
|
||||
instance of the provided class.</param>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Ioc.ISimpleIoc.Register``1(System.Func{``0},System.String)">
|
||||
<summary>
|
||||
Registers a given instance for a given type and a given key.
|
||||
</summary>
|
||||
<typeparam name="TClass">The type that is being registered.</typeparam>
|
||||
<param name="factory">The factory method able to create the instance that
|
||||
must be returned when the given type is resolved.</param>
|
||||
<param name="key">The key for which the given instance is registered.</param>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Ioc.ISimpleIoc.Register``1(System.Func{``0},System.String,System.Boolean)">
|
||||
<summary>
|
||||
Registers a given instance for a given type and a given key with the possibility for immediate
|
||||
creation of the instance.
|
||||
</summary>
|
||||
<typeparam name="TClass">The type that is being registered.</typeparam>
|
||||
<param name="factory">The factory method able to create the instance that
|
||||
must be returned when the given type is resolved.</param>
|
||||
<param name="key">The key for which the given instance is registered.</param>
|
||||
<param name="createInstanceImmediately">If true, forces the creation of the default
|
||||
instance of the provided class.</param>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Ioc.ISimpleIoc.Reset">
|
||||
<summary>
|
||||
Resets the instance in its original states. This deletes all the
|
||||
registrations.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Ioc.ISimpleIoc.Unregister``1">
|
||||
<summary>
|
||||
Unregisters a class from the cache and removes all the previously
|
||||
created instances.
|
||||
</summary>
|
||||
<typeparam name="TClass">The class that must be removed.</typeparam>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Ioc.ISimpleIoc.Unregister``1(``0)">
|
||||
<summary>
|
||||
Removes the given instance from the cache. The class itself remains
|
||||
registered and can be used to create other instances.
|
||||
</summary>
|
||||
<typeparam name="TClass">The type of the instance to be removed.</typeparam>
|
||||
<param name="instance">The instance that must be removed.</param>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Ioc.ISimpleIoc.Unregister``1(System.String)">
|
||||
<summary>
|
||||
Removes the instance corresponding to the given key from the cache. The class itself remains
|
||||
registered and can be used to create other instances.
|
||||
</summary>
|
||||
<typeparam name="TClass">The type of the instance to be removed.</typeparam>
|
||||
<param name="key">The key corresponding to the instance that must be removed.</param>
|
||||
</member>
|
||||
<member name="T:GalaSoft.MvvmLight.Ioc.PreferredConstructorAttribute">
|
||||
<summary>
|
||||
When used with the SimpleIoc container, specifies which constructor
|
||||
should be used to instantiate when GetInstance is called.
|
||||
If there is only one constructor in the class, this attribute is
|
||||
not needed.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:GalaSoft.MvvmLight.Ioc.SimpleIoc">
|
||||
<summary>
|
||||
A very simple IOC container with basic functionality needed to register and resolve
|
||||
instances. If needed, this class can be replaced by another more elaborate
|
||||
IOC container implementing the IServiceLocator interface.
|
||||
The inspiration for this class is at https://gist.github.com/716137 but it has
|
||||
been extended with additional features.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:GalaSoft.MvvmLight.Ioc.SimpleIoc.Default">
|
||||
<summary>
|
||||
This class' default instance.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Ioc.SimpleIoc.ContainsCreated``1">
|
||||
<summary>
|
||||
Checks whether at least one instance of a given class is already created in the container.
|
||||
</summary>
|
||||
<typeparam name="TClass">The class that is queried.</typeparam>
|
||||
<returns>True if at least on instance of the class is already created, false otherwise.</returns>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Ioc.SimpleIoc.ContainsCreated``1(System.String)">
|
||||
<summary>
|
||||
Checks whether the instance with the given key is already created for a given class
|
||||
in the container.
|
||||
</summary>
|
||||
<typeparam name="TClass">The class that is queried.</typeparam>
|
||||
<param name="key">The key that is queried.</param>
|
||||
<returns>True if the instance with the given key is already registered for the given class,
|
||||
false otherwise.</returns>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Ioc.SimpleIoc.IsRegistered``1">
|
||||
<summary>
|
||||
Gets a value indicating whether a given type T is already registered.
|
||||
</summary>
|
||||
<typeparam name="T">The type that the method checks for.</typeparam>
|
||||
<returns>True if the type is registered, false otherwise.</returns>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Ioc.SimpleIoc.IsRegistered``1(System.String)">
|
||||
<summary>
|
||||
Gets a value indicating whether a given type T and a give key
|
||||
are already registered.
|
||||
</summary>
|
||||
<typeparam name="T">The type that the method checks for.</typeparam>
|
||||
<param name="key">The key that the method checks for.</param>
|
||||
<returns>True if the type and key are registered, false otherwise.</returns>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Ioc.SimpleIoc.Register``2">
|
||||
<summary>
|
||||
Registers a given type for a given interface.
|
||||
</summary>
|
||||
<typeparam name="TInterface">The interface for which instances will be resolved.</typeparam>
|
||||
<typeparam name="TClass">The type that must be used to create instances.</typeparam>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Ioc.SimpleIoc.Register``2(System.Boolean)">
|
||||
<summary>
|
||||
Registers a given type for a given interface with the possibility for immediate
|
||||
creation of the instance.
|
||||
</summary>
|
||||
<typeparam name="TInterface">The interface for which instances will be resolved.</typeparam>
|
||||
<typeparam name="TClass">The type that must be used to create instances.</typeparam>
|
||||
<param name="createInstanceImmediately">If true, forces the creation of the default
|
||||
instance of the provided class.</param>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Ioc.SimpleIoc.Register``1">
|
||||
<summary>
|
||||
Registers a given type.
|
||||
</summary>
|
||||
<typeparam name="TClass">The type that must be used to create instances.</typeparam>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Ioc.SimpleIoc.Register``1(System.Boolean)">
|
||||
<summary>
|
||||
Registers a given type with the possibility for immediate
|
||||
creation of the instance.
|
||||
</summary>
|
||||
<typeparam name="TClass">The type that must be used to create instances.</typeparam>
|
||||
<param name="createInstanceImmediately">If true, forces the creation of the default
|
||||
instance of the provided class.</param>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Ioc.SimpleIoc.Register``1(System.Func{``0})">
|
||||
<summary>
|
||||
Registers a given instance for a given type.
|
||||
</summary>
|
||||
<typeparam name="TClass">The type that is being registered.</typeparam>
|
||||
<param name="factory">The factory method able to create the instance that
|
||||
must be returned when the given type is resolved.</param>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Ioc.SimpleIoc.Register``1(System.Func{``0},System.Boolean)">
|
||||
<summary>
|
||||
Registers a given instance for a given type with the possibility for immediate
|
||||
creation of the instance.
|
||||
</summary>
|
||||
<typeparam name="TClass">The type that is being registered.</typeparam>
|
||||
<param name="factory">The factory method able to create the instance that
|
||||
must be returned when the given type is resolved.</param>
|
||||
<param name="createInstanceImmediately">If true, forces the creation of the default
|
||||
instance of the provided class.</param>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Ioc.SimpleIoc.Register``1(System.Func{``0},System.String)">
|
||||
<summary>
|
||||
Registers a given instance for a given type and a given key.
|
||||
</summary>
|
||||
<typeparam name="TClass">The type that is being registered.</typeparam>
|
||||
<param name="factory">The factory method able to create the instance that
|
||||
must be returned when the given type is resolved.</param>
|
||||
<param name="key">The key for which the given instance is registered.</param>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Ioc.SimpleIoc.Register``1(System.Func{``0},System.String,System.Boolean)">
|
||||
<summary>
|
||||
Registers a given instance for a given type and a given key with the possibility for immediate
|
||||
creation of the instance.
|
||||
</summary>
|
||||
<typeparam name="TClass">The type that is being registered.</typeparam>
|
||||
<param name="factory">The factory method able to create the instance that
|
||||
must be returned when the given type is resolved.</param>
|
||||
<param name="key">The key for which the given instance is registered.</param>
|
||||
<param name="createInstanceImmediately">If true, forces the creation of the default
|
||||
instance of the provided class.</param>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Ioc.SimpleIoc.Reset">
|
||||
<summary>
|
||||
Resets the instance in its original states. This deletes all the
|
||||
registrations.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Ioc.SimpleIoc.Unregister``1">
|
||||
<summary>
|
||||
Unregisters a class from the cache and removes all the previously
|
||||
created instances.
|
||||
</summary>
|
||||
<typeparam name="TClass">The class that must be removed.</typeparam>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Ioc.SimpleIoc.Unregister``1(``0)">
|
||||
<summary>
|
||||
Removes the given instance from the cache. The class itself remains
|
||||
registered and can be used to create other instances.
|
||||
</summary>
|
||||
<typeparam name="TClass">The type of the instance to be removed.</typeparam>
|
||||
<param name="instance">The instance that must be removed.</param>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Ioc.SimpleIoc.Unregister``1(System.String)">
|
||||
<summary>
|
||||
Removes the instance corresponding to the given key from the cache. The class itself remains
|
||||
registered and can be used to create other instances.
|
||||
</summary>
|
||||
<typeparam name="TClass">The type of the instance to be removed.</typeparam>
|
||||
<param name="key">The key corresponding to the instance that must be removed.</param>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Ioc.SimpleIoc.GetAllCreatedInstances(System.Type)">
|
||||
<summary>
|
||||
Provides a way to get all the created instances of a given type available in the
|
||||
cache. Registering a class or a factory does not automatically
|
||||
create the corresponding instance! To create an instance, either register
|
||||
the class or the factory with createInstanceImmediately set to true,
|
||||
or call the GetInstance method before calling GetAllCreatedInstances.
|
||||
Alternatively, use the GetAllInstances method, which auto-creates default
|
||||
instances for all registered classes.
|
||||
</summary>
|
||||
<param name="serviceType">The class of which all instances
|
||||
must be returned.</param>
|
||||
<returns>All the already created instances of the given type.</returns>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Ioc.SimpleIoc.GetAllCreatedInstances``1">
|
||||
<summary>
|
||||
Provides a way to get all the created instances of a given type available in the
|
||||
cache. Registering a class or a factory does not automatically
|
||||
create the corresponding instance! To create an instance, either register
|
||||
the class or the factory with createInstanceImmediately set to true,
|
||||
or call the GetInstance method before calling GetAllCreatedInstances.
|
||||
Alternatively, use the GetAllInstances method, which auto-creates default
|
||||
instances for all registered classes.
|
||||
</summary>
|
||||
<typeparam name="TService">The class of which all instances
|
||||
must be returned.</typeparam>
|
||||
<returns>All the already created instances of the given type.</returns>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Ioc.SimpleIoc.GetService(System.Type)">
|
||||
<summary>
|
||||
Gets the service object of the specified type.
|
||||
</summary>
|
||||
<exception cref="T:CommonServiceLocator.ActivationException">If the type serviceType has not
|
||||
been registered before calling this method.</exception>
|
||||
<returns>
|
||||
A service object of type <paramref name="serviceType" />.
|
||||
</returns>
|
||||
<param name="serviceType">An object that specifies the type of service object to get.</param>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Ioc.SimpleIoc.GetAllInstances(System.Type)">
|
||||
<summary>
|
||||
Provides a way to get all the created instances of a given type available in the
|
||||
cache. Calling this method auto-creates default
|
||||
instances for all registered classes.
|
||||
</summary>
|
||||
<param name="serviceType">The class of which all instances
|
||||
must be returned.</param>
|
||||
<returns>All the instances of the given type.</returns>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Ioc.SimpleIoc.GetAllInstances``1">
|
||||
<summary>
|
||||
Provides a way to get all the created instances of a given type available in the
|
||||
cache. Calling this method auto-creates default
|
||||
instances for all registered classes.
|
||||
</summary>
|
||||
<typeparam name="TService">The class of which all instances
|
||||
must be returned.</typeparam>
|
||||
<returns>All the instances of the given type.</returns>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Ioc.SimpleIoc.GetInstance(System.Type)">
|
||||
<summary>
|
||||
Provides a way to get an instance of a given type. If no instance had been instantiated
|
||||
before, a new instance will be created. If an instance had already
|
||||
been created, that same instance will be returned.
|
||||
</summary>
|
||||
<exception cref="T:CommonServiceLocator.ActivationException">If the type serviceType has not
|
||||
been registered before calling this method.</exception>
|
||||
<param name="serviceType">The class of which an instance
|
||||
must be returned.</param>
|
||||
<returns>An instance of the given type.</returns>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Ioc.SimpleIoc.GetInstanceWithoutCaching(System.Type)">
|
||||
<summary>
|
||||
Provides a way to get an instance of a given type. This method
|
||||
always returns a new instance and doesn't cache it in the IOC container.
|
||||
</summary>
|
||||
<exception cref="T:CommonServiceLocator.ActivationException">If the type serviceType has not
|
||||
been registered before calling this method.</exception>
|
||||
<param name="serviceType">The class of which an instance
|
||||
must be returned.</param>
|
||||
<returns>An instance of the given type.</returns>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Ioc.SimpleIoc.GetInstance(System.Type,System.String)">
|
||||
<summary>
|
||||
Provides a way to get an instance of a given type corresponding
|
||||
to a given key. If no instance had been instantiated with this
|
||||
key before, a new instance will be created. If an instance had already
|
||||
been created with the same key, that same instance will be returned.
|
||||
</summary>
|
||||
<exception cref="T:CommonServiceLocator.ActivationException">If the type serviceType has not
|
||||
been registered before calling this method.</exception>
|
||||
<param name="serviceType">The class of which an instance must be returned.</param>
|
||||
<param name="key">The key uniquely identifying this instance.</param>
|
||||
<returns>An instance corresponding to the given type and key.</returns>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Ioc.SimpleIoc.GetInstanceWithoutCaching(System.Type,System.String)">
|
||||
<summary>
|
||||
Provides a way to get an instance of a given type. This method
|
||||
always returns a new instance and doesn't cache it in the IOC container.
|
||||
</summary>
|
||||
<exception cref="T:CommonServiceLocator.ActivationException">If the type serviceType has not
|
||||
been registered before calling this method.</exception>
|
||||
<param name="serviceType">The class of which an instance must be returned.</param>
|
||||
<param name="key">The key uniquely identifying this instance.</param>
|
||||
<returns>An instance corresponding to the given type and key.</returns>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Ioc.SimpleIoc.GetInstance``1">
|
||||
<summary>
|
||||
Provides a way to get an instance of a given type. If no instance had been instantiated
|
||||
before, a new instance will be created. If an instance had already
|
||||
been created, that same instance will be returned.
|
||||
</summary>
|
||||
<exception cref="T:CommonServiceLocator.ActivationException">If the type TService has not
|
||||
been registered before calling this method.</exception>
|
||||
<typeparam name="TService">The class of which an instance
|
||||
must be returned.</typeparam>
|
||||
<returns>An instance of the given type.</returns>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Ioc.SimpleIoc.GetInstanceWithoutCaching``1">
|
||||
<summary>
|
||||
Provides a way to get an instance of a given type. This method
|
||||
always returns a new instance and doesn't cache it in the IOC container.
|
||||
</summary>
|
||||
<exception cref="T:CommonServiceLocator.ActivationException">If the type TService has not
|
||||
been registered before calling this method.</exception>
|
||||
<typeparam name="TService">The class of which an instance
|
||||
must be returned.</typeparam>
|
||||
<returns>An instance of the given type.</returns>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Ioc.SimpleIoc.GetInstance``1(System.String)">
|
||||
<summary>
|
||||
Provides a way to get an instance of a given type corresponding
|
||||
to a given key. If no instance had been instantiated with this
|
||||
key before, a new instance will be created. If an instance had already
|
||||
been created with the same key, that same instance will be returned.
|
||||
</summary>
|
||||
<exception cref="T:CommonServiceLocator.ActivationException">If the type TService has not
|
||||
been registered before calling this method.</exception>
|
||||
<typeparam name="TService">The class of which an instance must be returned.</typeparam>
|
||||
<param name="key">The key uniquely identifying this instance.</param>
|
||||
<returns>An instance corresponding to the given type and key.</returns>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Ioc.SimpleIoc.GetInstanceWithoutCaching``1(System.String)">
|
||||
<summary>
|
||||
Provides a way to get an instance of a given type. This method
|
||||
always returns a new instance and doesn't cache it in the IOC container.
|
||||
</summary>
|
||||
<exception cref="T:CommonServiceLocator.ActivationException">If the type TService has not
|
||||
been registered before calling this method.</exception>
|
||||
<typeparam name="TService">The class of which an instance must be returned.</typeparam>
|
||||
<param name="key">The key uniquely identifying this instance.</param>
|
||||
<returns>An instance corresponding to the given type and key.</returns>
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,350 @@
|
||||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>GalaSoft.MvvmLight.Platform</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="T:GalaSoft.MvvmLight.CommandWpf.RelayCommand">
|
||||
<summary>
|
||||
A command whose sole purpose is to relay its functionality to other
|
||||
objects by invoking delegates. The default return value for the CanExecute
|
||||
method is 'true'. This class does not allow you to accept command parameters in the
|
||||
Execute and CanExecute callback methods.
|
||||
</summary>
|
||||
<remarks>If you are using this class in WPF4.5 or above, you need to use the
|
||||
GalaSoft.MvvmLight.CommandWpf namespace (instead of GalaSoft.MvvmLight.Command).
|
||||
This will enable (or restore) the CommandManager class which handles
|
||||
automatic enabling/disabling of controls based on the CanExecute delegate.</remarks>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.CommandWpf.RelayCommand.#ctor(System.Action,System.Boolean)">
|
||||
<summary>
|
||||
Initializes a new instance of the RelayCommand class that
|
||||
can always execute.
|
||||
</summary>
|
||||
<param name="execute">The execution logic. IMPORTANT: If the action causes a closure,
|
||||
you must set keepTargetAlive to true to avoid side effects. </param>
|
||||
<param name="keepTargetAlive">If true, the target of the Action will
|
||||
be kept as a hard reference, which might cause a memory leak. You should only set this
|
||||
parameter to true if the action is causing a closure. See
|
||||
http://galasoft.ch/s/mvvmweakaction. </param>
|
||||
<exception cref="T:System.ArgumentNullException">If the execute argument is null.</exception>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.CommandWpf.RelayCommand.#ctor(System.Action,System.Func{System.Boolean},System.Boolean)">
|
||||
<summary>
|
||||
Initializes a new instance of the RelayCommand class.
|
||||
</summary>
|
||||
<param name="execute">The execution logic. IMPORTANT: If the action causes a closure,
|
||||
you must set keepTargetAlive to true to avoid side effects. </param>
|
||||
<param name="canExecute">The execution status logic. IMPORTANT: If the func causes a closure,
|
||||
you must set keepTargetAlive to true to avoid side effects. </param>
|
||||
<param name="keepTargetAlive">If true, the target of the Action will
|
||||
be kept as a hard reference, which might cause a memory leak. You should only set this
|
||||
parameter to true if the action is causing a closures. See
|
||||
http://galasoft.ch/s/mvvmweakaction. </param>
|
||||
<exception cref="T:System.ArgumentNullException">If the execute argument is null.</exception>
|
||||
</member>
|
||||
<member name="E:GalaSoft.MvvmLight.CommandWpf.RelayCommand.CanExecuteChanged">
|
||||
<summary>
|
||||
Occurs when changes occur that affect whether the command should execute.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.CommandWpf.RelayCommand.RaiseCanExecuteChanged">
|
||||
<summary>
|
||||
Raises the <see cref="E:GalaSoft.MvvmLight.CommandWpf.RelayCommand.CanExecuteChanged" /> event.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.CommandWpf.RelayCommand.CanExecute(System.Object)">
|
||||
<summary>
|
||||
Defines the method that determines whether the command can execute in its current state.
|
||||
</summary>
|
||||
<param name="parameter">This parameter will always be ignored.</param>
|
||||
<returns>true if this command can be executed; otherwise, false.</returns>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.CommandWpf.RelayCommand.Execute(System.Object)">
|
||||
<summary>
|
||||
Defines the method to be called when the command is invoked.
|
||||
</summary>
|
||||
<param name="parameter">This parameter will always be ignored.</param>
|
||||
</member>
|
||||
<member name="T:GalaSoft.MvvmLight.CommandWpf.RelayCommand`1">
|
||||
<summary>
|
||||
A generic command whose sole purpose is to relay its functionality to other
|
||||
objects by invoking delegates. The default return value for the CanExecute
|
||||
method is 'true'. This class allows you to accept command parameters in the
|
||||
Execute and CanExecute callback methods.
|
||||
</summary>
|
||||
<typeparam name="T">The type of the command parameter.</typeparam>
|
||||
<remarks>If you are using this class in WPF4.5 or above, you need to use the
|
||||
GalaSoft.MvvmLight.CommandWpf namespace (instead of GalaSoft.MvvmLight.Command).
|
||||
This will enable (or restore) the CommandManager class which handles
|
||||
automatic enabling/disabling of controls based on the CanExecute delegate.</remarks>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.CommandWpf.RelayCommand`1.#ctor(System.Action{`0},System.Boolean)">
|
||||
<summary>
|
||||
Initializes a new instance of the RelayCommand class that
|
||||
can always execute.
|
||||
</summary>
|
||||
<param name="execute">The execution logic. IMPORTANT: If the action causes a closure,
|
||||
you must set keepTargetAlive to true to avoid side effects. </param>
|
||||
<param name="keepTargetAlive">If true, the target of the Action will
|
||||
be kept as a hard reference, which might cause a memory leak. You should only set this
|
||||
parameter to true if the action is causing a closure. See
|
||||
http://galasoft.ch/s/mvvmweakaction. </param>
|
||||
<exception cref="T:System.ArgumentNullException">If the execute argument is null.</exception>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.CommandWpf.RelayCommand`1.#ctor(System.Action{`0},System.Func{`0,System.Boolean},System.Boolean)">
|
||||
<summary>
|
||||
Initializes a new instance of the RelayCommand class.
|
||||
</summary>
|
||||
<param name="execute">The execution logic. IMPORTANT: If the action causes a closure,
|
||||
you must set keepTargetAlive to true to avoid side effects. </param>
|
||||
<param name="canExecute">The execution status logic. IMPORTANT: If the func causes a closure,
|
||||
you must set keepTargetAlive to true to avoid side effects. </param>
|
||||
<param name="keepTargetAlive">If true, the target of the Action will
|
||||
be kept as a hard reference, which might cause a memory leak. You should only set this
|
||||
parameter to true if the action is causing a closure. See
|
||||
http://galasoft.ch/s/mvvmweakaction. </param>
|
||||
<exception cref="T:System.ArgumentNullException">If the execute argument is null.</exception>
|
||||
</member>
|
||||
<member name="E:GalaSoft.MvvmLight.CommandWpf.RelayCommand`1.CanExecuteChanged">
|
||||
<summary>
|
||||
Occurs when changes occur that affect whether the command should execute.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.CommandWpf.RelayCommand`1.RaiseCanExecuteChanged">
|
||||
<summary>
|
||||
Raises the <see cref="E:GalaSoft.MvvmLight.CommandWpf.RelayCommand`1.CanExecuteChanged" /> event.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.CommandWpf.RelayCommand`1.CanExecute(System.Object)">
|
||||
<summary>
|
||||
Defines the method that determines whether the command can execute in its current state.
|
||||
</summary>
|
||||
<param name="parameter">Data used by the command. If the command does not require data
|
||||
to be passed, this object can be set to a null reference</param>
|
||||
<returns>true if this command can be executed; otherwise, false.</returns>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.CommandWpf.RelayCommand`1.Execute(System.Object)">
|
||||
<summary>
|
||||
Defines the method to be called when the command is invoked.
|
||||
</summary>
|
||||
<param name="parameter">Data used by the command. If the command does not require data
|
||||
to be passed, this object can be set to a null reference</param>
|
||||
</member>
|
||||
<member name="T:GalaSoft.MvvmLight.Command.EventToCommand">
|
||||
<summary>
|
||||
This <see cref="T:System.Windows.Interactivity.TriggerAction`1" /> can be
|
||||
used to bind any event on any FrameworkElement to an <see cref="T:System.Windows.Input.ICommand" />.
|
||||
Typically, this element is used in XAML to connect the attached element
|
||||
to a command located in a ViewModel. This trigger can only be attached
|
||||
to a FrameworkElement or a class deriving from FrameworkElement.
|
||||
<para>To access the EventArgs of the fired event, use a RelayCommand<EventArgs>
|
||||
and leave the CommandParameter and CommandParameterValue empty!</para>
|
||||
</summary>
|
||||
</member>
|
||||
<member name="F:GalaSoft.MvvmLight.Command.EventToCommand.CommandParameterProperty">
|
||||
<summary>
|
||||
Identifies the <see cref="P:GalaSoft.MvvmLight.Command.EventToCommand.CommandParameter" /> dependency property
|
||||
</summary>
|
||||
</member>
|
||||
<member name="F:GalaSoft.MvvmLight.Command.EventToCommand.CommandProperty">
|
||||
<summary>
|
||||
Identifies the <see cref="P:GalaSoft.MvvmLight.Command.EventToCommand.Command" /> dependency property
|
||||
</summary>
|
||||
</member>
|
||||
<member name="F:GalaSoft.MvvmLight.Command.EventToCommand.MustToggleIsEnabledProperty">
|
||||
<summary>
|
||||
Identifies the <see cref="P:GalaSoft.MvvmLight.Command.EventToCommand.MustToggleIsEnabled" /> dependency property
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:GalaSoft.MvvmLight.Command.EventToCommand.Command">
|
||||
<summary>
|
||||
Gets or sets the ICommand that this trigger is bound to. This
|
||||
is a DependencyProperty.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:GalaSoft.MvvmLight.Command.EventToCommand.CommandParameter">
|
||||
<summary>
|
||||
Gets or sets an object that will be passed to the <see cref="P:GalaSoft.MvvmLight.Command.EventToCommand.Command" />
|
||||
attached to this trigger. This is a DependencyProperty.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:GalaSoft.MvvmLight.Command.EventToCommand.CommandParameterValue">
|
||||
<summary>
|
||||
Gets or sets an object that will be passed to the <see cref="P:GalaSoft.MvvmLight.Command.EventToCommand.Command" />
|
||||
attached to this trigger. This property is here for compatibility
|
||||
with the Silverlight version. This is NOT a DependencyProperty.
|
||||
For databinding, use the <see cref="P:GalaSoft.MvvmLight.Command.EventToCommand.CommandParameter" /> property.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:GalaSoft.MvvmLight.Command.EventToCommand.MustToggleIsEnabled">
|
||||
<summary>
|
||||
Gets or sets a value indicating whether the attached element must be
|
||||
disabled when the <see cref="P:GalaSoft.MvvmLight.Command.EventToCommand.Command" /> property's CanExecuteChanged
|
||||
event fires. If this property is true, and the command's CanExecute
|
||||
method returns false, the element will be disabled. If this property
|
||||
is false, the element will not be disabled when the command's
|
||||
CanExecute method changes. This is a DependencyProperty.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:GalaSoft.MvvmLight.Command.EventToCommand.MustToggleIsEnabledValue">
|
||||
<summary>
|
||||
Gets or sets a value indicating whether the attached element must be
|
||||
disabled when the <see cref="P:GalaSoft.MvvmLight.Command.EventToCommand.Command" /> property's CanExecuteChanged
|
||||
event fires. If this property is true, and the command's CanExecute
|
||||
method returns false, the element will be disabled. This property is here for
|
||||
compatibility with the Silverlight version. This is NOT a DependencyProperty.
|
||||
For databinding, use the <see cref="P:GalaSoft.MvvmLight.Command.EventToCommand.MustToggleIsEnabled" /> property.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Command.EventToCommand.OnAttached">
|
||||
<summary>
|
||||
Called when this trigger is attached to a FrameworkElement.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Command.EventToCommand.GetAssociatedObject">
|
||||
<summary>
|
||||
This method is here for compatibility
|
||||
with the Silverlight version.
|
||||
</summary>
|
||||
<returns>The FrameworkElement to which this trigger
|
||||
is attached.</returns>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Command.EventToCommand.GetCommand">
|
||||
<summary>
|
||||
This method is here for compatibility
|
||||
with the Silverlight 3 version.
|
||||
</summary>
|
||||
<returns>The command that must be executed when
|
||||
this trigger is invoked.</returns>
|
||||
</member>
|
||||
<member name="P:GalaSoft.MvvmLight.Command.EventToCommand.PassEventArgsToCommand">
|
||||
<summary>
|
||||
Specifies whether the EventArgs of the event that triggered this
|
||||
action should be passed to the bound RelayCommand. If this is true,
|
||||
the command should accept arguments of the corresponding
|
||||
type (for example RelayCommand<MouseButtonEventArgs>).
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:GalaSoft.MvvmLight.Command.EventToCommand.EventArgsConverter">
|
||||
<summary>
|
||||
Gets or sets a converter used to convert the EventArgs when using
|
||||
<see cref="P:GalaSoft.MvvmLight.Command.EventToCommand.PassEventArgsToCommand"/>. If PassEventArgsToCommand is false,
|
||||
this property is never used.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="F:GalaSoft.MvvmLight.Command.EventToCommand.EventArgsConverterParameterPropertyName">
|
||||
<summary>
|
||||
The <see cref="P:GalaSoft.MvvmLight.Command.EventToCommand.EventArgsConverterParameter" /> dependency property's name.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:GalaSoft.MvvmLight.Command.EventToCommand.EventArgsConverterParameter">
|
||||
<summary>
|
||||
Gets or sets a parameters for the converter used to convert the EventArgs when using
|
||||
<see cref="P:GalaSoft.MvvmLight.Command.EventToCommand.PassEventArgsToCommand"/>. If PassEventArgsToCommand is false,
|
||||
this property is never used. This is a dependency property.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="F:GalaSoft.MvvmLight.Command.EventToCommand.EventArgsConverterParameterProperty">
|
||||
<summary>
|
||||
Identifies the <see cref="P:GalaSoft.MvvmLight.Command.EventToCommand.EventArgsConverterParameter" /> dependency property.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="F:GalaSoft.MvvmLight.Command.EventToCommand.AlwaysInvokeCommandPropertyName">
|
||||
<summary>
|
||||
The <see cref="P:GalaSoft.MvvmLight.Command.EventToCommand.AlwaysInvokeCommand" /> dependency property's name.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:GalaSoft.MvvmLight.Command.EventToCommand.AlwaysInvokeCommand">
|
||||
<summary>
|
||||
Gets or sets a value indicating if the command should be invoked even
|
||||
if the attached control is disabled. This is a dependency property.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="F:GalaSoft.MvvmLight.Command.EventToCommand.AlwaysInvokeCommandProperty">
|
||||
<summary>
|
||||
Identifies the <see cref="P:GalaSoft.MvvmLight.Command.EventToCommand.AlwaysInvokeCommand" /> dependency property.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Command.EventToCommand.Invoke">
|
||||
<summary>
|
||||
Provides a simple way to invoke this trigger programatically
|
||||
without any EventArgs.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Command.EventToCommand.Invoke(System.Object)">
|
||||
<summary>
|
||||
Executes the trigger.
|
||||
<para>To access the EventArgs of the fired event, use a RelayCommand<EventArgs>
|
||||
and leave the CommandParameter and CommandParameterValue empty!</para>
|
||||
</summary>
|
||||
<param name="parameter">The EventArgs of the fired event.</param>
|
||||
</member>
|
||||
<member name="T:GalaSoft.MvvmLight.Command.IEventArgsConverter">
|
||||
<summary>
|
||||
The definition of the converter used to convert an EventArgs
|
||||
in the <see cref="T:GalaSoft.MvvmLight.Command.EventToCommand"/> class, if the
|
||||
<see cref="P:GalaSoft.MvvmLight.Command.EventToCommand.PassEventArgsToCommand"/> property is true.
|
||||
Set an instance of this class to the <see cref="P:GalaSoft.MvvmLight.Command.EventToCommand.EventArgsConverter"/>
|
||||
property of the EventToCommand instance.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Command.IEventArgsConverter.Convert(System.Object,System.Object)">
|
||||
<summary>
|
||||
The method used to convert the EventArgs instance.
|
||||
</summary>
|
||||
<param name="value">An instance of EventArgs passed by the
|
||||
event that the EventToCommand instance is handling.</param>
|
||||
<param name="parameter">An optional parameter used for the conversion. Use
|
||||
the <see cref="P:GalaSoft.MvvmLight.Command.EventToCommand.EventArgsConverterParameter"/> property
|
||||
to set this value. This may be null.</param>
|
||||
<returns>The converted value.</returns>
|
||||
</member>
|
||||
<member name="T:GalaSoft.MvvmLight.Threading.DispatcherHelper">
|
||||
<summary>
|
||||
Helper class for dispatcher operations on the UI thread.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:GalaSoft.MvvmLight.Threading.DispatcherHelper.UIDispatcher">
|
||||
<summary>
|
||||
Gets a reference to the UI thread's dispatcher, after the
|
||||
<see cref="M:GalaSoft.MvvmLight.Threading.DispatcherHelper.Initialize" /> method has been called on the UI thread.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Threading.DispatcherHelper.CheckBeginInvokeOnUI(System.Action)">
|
||||
<summary>
|
||||
Executes an action on the UI thread. If this method is called
|
||||
from the UI thread, the action is executed immendiately. If the
|
||||
method is called from another thread, the action will be enqueued
|
||||
on the UI thread's dispatcher and executed asynchronously.
|
||||
<para>For additional operations on the UI thread, you can get a
|
||||
reference to the UI thread's dispatcher thanks to the property
|
||||
<see cref="P:GalaSoft.MvvmLight.Threading.DispatcherHelper.UIDispatcher" /></para>.
|
||||
</summary>
|
||||
<param name="action">The action that will be executed on the UI
|
||||
thread.</param>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Threading.DispatcherHelper.RunAsync(System.Action)">
|
||||
<summary>
|
||||
Invokes an action asynchronously on the UI thread.
|
||||
</summary>
|
||||
<param name="action">The action that must be executed.</param>
|
||||
<returns>An object, which is returned immediately after BeginInvoke is called, that can be used to interact
|
||||
with the delegate as it is pending execution in the event queue.</returns>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Threading.DispatcherHelper.Initialize">
|
||||
<summary>
|
||||
This method should be called once on the UI thread to ensure that
|
||||
the <see cref="P:GalaSoft.MvvmLight.Threading.DispatcherHelper.UIDispatcher" /> property is initialized.
|
||||
<para>In a Silverlight application, call this method in the
|
||||
Application_Startup event handler, after the MainPage is constructed.</para>
|
||||
<para>In WPF, call this method on the static App() constructor.</para>
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:GalaSoft.MvvmLight.Threading.DispatcherHelper.Reset">
|
||||
<summary>
|
||||
Resets the class by deleting the <see cref="P:GalaSoft.MvvmLight.Threading.DispatcherHelper.UIDispatcher"/>
|
||||
</summary>
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="MySql.Data" publicKeyToken="c5687fc88969c44d" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-8.1.0.0" newVersion="8.1.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Data.SQLite" publicKeyToken="db937bc2d44ff139" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-1.0.116.0" newVersion="1.0.116.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.2" newVersion="4.0.1.2" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
</configuration>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1 @@
|
||||
2f8a87be1b190a202195a93475a72dddedef6d3f
|
@ -0,0 +1,50 @@
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\obj\Debug\Aucma.Scada.UI.csproj.AssemblyReference.cache
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\obj\Debug\Aucma.Scada.UI.exe.config
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\obj\Debug\IndexControl.g.cs
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\obj\Debug\LogInfoControl.g.cs
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\obj\Debug\MainWindow.g.cs
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\obj\Debug\RecordControl.g.cs
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\obj\Debug\App.g.cs
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\obj\Debug\Aucma.Scada.UI_MarkupCompile.cache
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\obj\Debug\Aucma.Scada.UI_MarkupCompile.lref
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\bin\Debug\Aucma.Scada.UI.exe.config
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\bin\Debug\Aucma.Scada.UI.exe
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\bin\Debug\Aucma.Scada.UI.pdb
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\bin\Debug\CommonServiceLocator.dll
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\bin\Debug\GalaSoft.MvvmLight.dll
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\bin\Debug\GalaSoft.MvvmLight.Extras.dll
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\bin\Debug\GalaSoft.MvvmLight.Platform.dll
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\bin\Debug\HighWayIot.Log4net.dll
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\bin\Debug\HighWayIot.Repository.dll
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\bin\Debug\Lierda.WPFHelper.dll
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\bin\Debug\MySql.Data.dll
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\bin\Debug\Oracle.ManagedDataAccess.dll
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\bin\Debug\SqlSugar.dll
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\bin\Debug\System.Data.SQLite.dll
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\bin\Debug\System.Windows.Interactivity.dll
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\bin\Debug\log4net.dll
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\bin\Debug\HighWayIot.Common.dll
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\bin\Debug\Newtonsoft.Json.dll
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\bin\Debug\HighWayIot.Log4net.pdb
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\bin\Debug\HighWayIot.Repository.pdb
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\bin\Debug\HighWayIot.Repository.dll.config
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\bin\Debug\GalaSoft.MvvmLight.pdb
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\bin\Debug\GalaSoft.MvvmLight.xml
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\bin\Debug\GalaSoft.MvvmLight.Extras.pdb
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\bin\Debug\GalaSoft.MvvmLight.Extras.xml
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\bin\Debug\GalaSoft.MvvmLight.Platform.pdb
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\bin\Debug\GalaSoft.MvvmLight.Platform.xml
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\bin\Debug\HighWayIot.Common.pdb
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\obj\Debug\App.baml
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\obj\Debug\IndexControl.baml
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\obj\Debug\LogInfoControl.baml
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\obj\Debug\MainWindow.baml
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\obj\Debug\RecordControl.baml
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\obj\Debug\templates\style\resourceStyle.baml
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\obj\Debug\Aucma.Scada.UI.g.resources
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\obj\Debug\Aucma.Scada.UI.Properties.Resources.resources
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\obj\Debug\Aucma.Scada.UI.csproj.GenerateResource.cache
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\obj\Debug\Aucma.Scada.UI.csproj.CoreCompileInputs.cache
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\obj\Debug\Aucma.Scada.UI.csproj.CopyComplete
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\obj\Debug\Aucma.Scada.UI.exe
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\obj\Debug\Aucma.Scada.UI.pdb
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
|
||||
</startup>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="MySql.Data" publicKeyToken="c5687fc88969c44d" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-8.1.0.0" newVersion="8.1.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Data.SQLite" publicKeyToken="db937bc2d44ff139" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-1.0.116.0" newVersion="1.0.116.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Oracle.ManagedDataAccess" publicKeyToken="89b483f429c47342" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.122.21.1" newVersion="4.122.21.1" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.2" newVersion="4.0.1.2" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
</configuration>
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,20 @@
|
||||
Aucma.Scada.UI
|
||||
|
||||
|
||||
winexe
|
||||
C#
|
||||
.cs
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\obj\Debug\
|
||||
Aucma.Scada.UI
|
||||
none
|
||||
false
|
||||
DEBUG;TRACE
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\App.xaml
|
||||
5-641925663
|
||||
|
||||
11489784142
|
||||
129248000128
|
||||
IndexControl.xaml;LogInfoControl.xaml;MainWindow.xaml;RecordControl.xaml;templates\style\resourceStyle.xaml;
|
||||
|
||||
False
|
||||
|
@ -0,0 +1,20 @@
|
||||
Aucma.Scada.UI
|
||||
|
||||
|
||||
winexe
|
||||
C#
|
||||
.cs
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\obj\Debug\
|
||||
Aucma.Scada.UI
|
||||
none
|
||||
false
|
||||
DEBUG;TRACE
|
||||
C:\项目代码\澳柯玛MES项目\HighWayIot\Aucma.Scada.UI\App.xaml
|
||||
5-641925663
|
||||
|
||||
12-264785642
|
||||
129248000128
|
||||
IndexControl.xaml;LogInfoControl.xaml;MainWindow.xaml;RecordControl.xaml;templates\style\resourceStyle.xaml;
|
||||
|
||||
False
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="CommonServiceLocator" version="2.0.2" targetFramework="net48" />
|
||||
<package id="MvvmLightLibs" version="5.4.1.1" targetFramework="net48" />
|
||||
</packages>
|
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
@ -0,0 +1,424 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="clr-namespace:Aucma.Scada.UI">
|
||||
<Style x:Key="Window" TargetType="Window">
|
||||
<Setter Property="WindowStyle" Value="None"/>
|
||||
<Setter Property="AllowsTransparency" Value="True"/>
|
||||
<Setter Property="Background" Value="Transparent"/>
|
||||
</Style>
|
||||
<Style x:Key="BUTTON_MENUBAR" TargetType="Button">
|
||||
<Setter Property="VerticalAlignment" Value="Top"/>
|
||||
<Setter Property="HorizontalAlignment" Value="Right"/>
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type Button}">
|
||||
<Grid Width="{TemplateBinding Width}" Height="{TemplateBinding Height}">
|
||||
<Grid Name="g" Opacity="0" Background="LightGray"/>
|
||||
<Grid Name="grd" RenderTransformOrigin="0.5,0.5" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" Background="{TemplateBinding Background}" VerticalAlignment="Center" HorizontalAlignment="Center" >
|
||||
<Grid.RenderTransform>
|
||||
<TransformGroup>
|
||||
<!--<RotateTransform x:Name="rotate" Angle="0"-->
|
||||
<ScaleTransform x:Name="scale" ScaleX="0.8" ScaleY="0.8"/>
|
||||
</TransformGroup>
|
||||
</Grid.RenderTransform>
|
||||
</Grid>
|
||||
<ContentPresenter HorizontalAlignment="Left" VerticalAlignment="Center" />
|
||||
</Grid>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsMouseOver" Value="True">
|
||||
<Trigger.EnterActions>
|
||||
<BeginStoryboard >
|
||||
<Storyboard>
|
||||
<DoubleAnimation To="0.2" Duration="0:0:0.2" Storyboard.TargetName="g" Storyboard.TargetProperty="Opacity" />
|
||||
<DoubleAnimation To="1" Duration="0:0:0.2" Storyboard.TargetName="scale" Storyboard.TargetProperty="ScaleX" />
|
||||
<DoubleAnimation To="1" Duration="0:0:0.2" Storyboard.TargetName="scale" Storyboard.TargetProperty="ScaleY" />
|
||||
</Storyboard>
|
||||
</BeginStoryboard>
|
||||
</Trigger.EnterActions>
|
||||
<Trigger.ExitActions>
|
||||
<BeginStoryboard >
|
||||
<Storyboard>
|
||||
<DoubleAnimation To="0" Duration="0:0:0.2" Storyboard.TargetName="g" Storyboard.TargetProperty="Opacity" />
|
||||
<DoubleAnimation To="0.8" Duration="0:0:0.2" Storyboard.TargetName="scale" Storyboard.TargetProperty="ScaleX" />
|
||||
<DoubleAnimation To="0.8" Duration="0:0:0.2" Storyboard.TargetName="scale" Storyboard.TargetProperty="ScaleY" />
|
||||
</Storyboard>
|
||||
</BeginStoryboard>
|
||||
</Trigger.ExitActions>
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
<Style x:Key="BUTTON_MENUBAR_PATH" TargetType="Button">
|
||||
<Setter Property="VerticalAlignment" Value="Top"/>
|
||||
<Setter Property="HorizontalAlignment" Value="Left"/>
|
||||
<Setter Property="Foreground" Value="Gray" />
|
||||
<Setter Property="Height" Value="30"/>
|
||||
<Setter Property="Width" Value="Auto"/>
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type Button}">
|
||||
<Grid Width="{TemplateBinding Width}" Height="{TemplateBinding Height}">
|
||||
<Grid Name="g" Background="LightGray" Opacity="0" />
|
||||
<Grid Name="grd" Width="22" Height="22" Background="{TemplateBinding Background}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
||||
<ContentPresenter VerticalAlignment="Center" HorizontalAlignment="Center" />
|
||||
<Path Width="10" Height="30" HorizontalAlignment="Right" VerticalAlignment="Center" Data="M3,10 L7,15 L3,20" Stroke="Gray" StrokeThickness="1"/>
|
||||
</Grid>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsMouseOver" Value="True">
|
||||
<Trigger.EnterActions>
|
||||
<BeginStoryboard >
|
||||
<Storyboard>
|
||||
<DoubleAnimation To="0.4" Duration="0:0:0.2" Storyboard.TargetName="g" Storyboard.TargetProperty="Opacity" />
|
||||
</Storyboard>
|
||||
</BeginStoryboard>
|
||||
</Trigger.EnterActions>
|
||||
<Trigger.ExitActions>
|
||||
<BeginStoryboard >
|
||||
<Storyboard>
|
||||
<DoubleAnimation Duration="0:0:0.2" Storyboard.TargetName="g" Storyboard.TargetProperty="Opacity" />
|
||||
</Storyboard>
|
||||
</BeginStoryboard>
|
||||
|
||||
</Trigger.ExitActions>
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
<Style x:Key="BUTTON_MENUBAR_MINI" TargetType="Button">
|
||||
<Setter Property="VerticalAlignment" Value="Top"/>
|
||||
<Setter Property="HorizontalAlignment" Value="Right"/>
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type Button}">
|
||||
<Grid Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" ClipToBounds="True">
|
||||
<Border Name="bdr" BorderBrush="LightGray" BorderThickness="2" Opacity="0">
|
||||
<Border.Effect>
|
||||
<DropShadowEffect x:Name="effect" BlurRadius="20" Opacity="0.8" ShadowDepth="0" Color="LightGray"/>
|
||||
</Border.Effect>
|
||||
</Border>
|
||||
<Grid Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" Background="{TemplateBinding Background}" VerticalAlignment="Center" HorizontalAlignment="Center" >
|
||||
|
||||
</Grid>
|
||||
</Grid>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsMouseOver" Value="True">
|
||||
<Trigger.EnterActions>
|
||||
<BeginStoryboard >
|
||||
<Storyboard>
|
||||
<DoubleAnimation To="1" Duration="0:0:0.3" Storyboard.TargetName="bdr" Storyboard.TargetProperty="Opacity" />
|
||||
</Storyboard>
|
||||
</BeginStoryboard>
|
||||
</Trigger.EnterActions>
|
||||
<Trigger.ExitActions>
|
||||
<BeginStoryboard >
|
||||
<Storyboard>
|
||||
<DoubleAnimation To="0" Duration="0:0:0.3" Storyboard.TargetName="bdr" Storyboard.TargetProperty="Opacity" />
|
||||
</Storyboard>
|
||||
</BeginStoryboard>
|
||||
</Trigger.ExitActions>
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
|
||||
<Style x:Key="BUTTON_AGREE" TargetType="{x:Type Button}">
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="Button">
|
||||
<Border Name="bdr" CornerRadius="3" Opacity="0.5" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1">
|
||||
<!--可使用ContentPresenter代替-->
|
||||
<!--Foreground的值White可以替换为{TemplateBinding Foreground}-->
|
||||
<Label VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Foreground="White" Content="{TemplateBinding Content}"/>
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsMouseOver" Value="True">
|
||||
<Trigger.EnterActions>
|
||||
<BeginStoryboard >
|
||||
<Storyboard>
|
||||
<DoubleAnimation To="0.7" Duration="0:0:0.2" Storyboard.TargetName="bdr" Storyboard.TargetProperty="Opacity" />
|
||||
</Storyboard>
|
||||
</BeginStoryboard>
|
||||
</Trigger.EnterActions>
|
||||
<Trigger.ExitActions>
|
||||
<BeginStoryboard >
|
||||
<Storyboard>
|
||||
<DoubleAnimation To="0.5" Duration="0:0:0.2" Storyboard.TargetName="bdr" Storyboard.TargetProperty="Opacity" />
|
||||
</Storyboard>
|
||||
</BeginStoryboard>
|
||||
</Trigger.ExitActions>
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
<Style x:Key="BUTTON_DISAGREE" TargetType="{x:Type Button}">
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="Button">
|
||||
<Border CornerRadius="3" BorderBrush="#FFEBEBEB" BorderThickness="1">
|
||||
<Grid>
|
||||
<Border Name="bdr" CornerRadius="3" Background="Gray" Opacity="0"/>
|
||||
<Label VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Foreground="{TemplateBinding Foreground}" Content="{TemplateBinding Content}"/>
|
||||
</Grid>
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsMouseOver" Value="True">
|
||||
<Trigger.EnterActions>
|
||||
<BeginStoryboard >
|
||||
<Storyboard>
|
||||
<DoubleAnimation To="0.2" Duration="0:0:0.2" Storyboard.TargetName="bdr" Storyboard.TargetProperty="Opacity" />
|
||||
</Storyboard>
|
||||
</BeginStoryboard>
|
||||
</Trigger.EnterActions>
|
||||
<Trigger.ExitActions>
|
||||
<BeginStoryboard >
|
||||
<Storyboard>
|
||||
<DoubleAnimation To="0" Duration="0:0:0.2" Storyboard.TargetName="bdr" Storyboard.TargetProperty="Opacity" />
|
||||
</Storyboard>
|
||||
</BeginStoryboard>
|
||||
|
||||
</Trigger.ExitActions>
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
|
||||
<SolidColorBrush x:Key="SOLIDCOLORBRUSH_LIGHT" Color="#FF6FD1FF"/>
|
||||
<Color x:Key="COLOR_LIGHT" R="111" G="209" B="255" A="255" />
|
||||
|
||||
|
||||
<Style x:Key="BUTTON_ELLIPSE" TargetType="{x:Type Button}">
|
||||
<Setter Property="Cursor" Value="Hand"/>
|
||||
<Setter Property="ToolTip" Value="下一步"/>
|
||||
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="Button">
|
||||
<Border CornerRadius="15" Width="30" Height="30" Background="{DynamicResource SOLIDCOLORBRUSH_LIGHT}">
|
||||
<Border.Effect>
|
||||
<DropShadowEffect x:Name="effect" BlurRadius="7" Opacity="0.6" ShadowDepth="0" Color="{DynamicResource COLOR_LIGHT}"/>
|
||||
</Border.Effect>
|
||||
<Grid>
|
||||
<Path Name="path" HorizontalAlignment="Left" Margin="0,0,0,0" Data="M5,15 L 15,23 L24,9" Stroke="White" StrokeThickness="1"/>
|
||||
<Path Name="path2" HorizontalAlignment="Left" Opacity="0" Margin="0,0,0,0" Data="M5,15 H25 L17,7 M25,15 L17,22 " Stroke="White" StrokeThickness="1"/>
|
||||
</Grid>
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsMouseOver" Value="True">
|
||||
<Trigger.EnterActions>
|
||||
<BeginStoryboard >
|
||||
<Storyboard>
|
||||
<DoubleAnimation To="0.9" Duration="0:0:0.3" Storyboard.TargetName="effect" Storyboard.TargetProperty="Opacity" />
|
||||
<DoubleAnimation To="15" Duration="0:0:0.3" Storyboard.TargetName="effect" Storyboard.TargetProperty="BlurRadius" />
|
||||
<DoubleAnimation To="0" Duration="0:0:0.5" Storyboard.TargetName="path" Storyboard.TargetProperty="Opacity" />
|
||||
<DoubleAnimation To="1" Duration="0:0:0.5" BeginTime="0:0:0.3" Storyboard.TargetName="path2" Storyboard.TargetProperty="Opacity" />
|
||||
|
||||
</Storyboard>
|
||||
</BeginStoryboard>
|
||||
</Trigger.EnterActions>
|
||||
<Trigger.ExitActions>
|
||||
<BeginStoryboard >
|
||||
<Storyboard>
|
||||
<DoubleAnimation Duration="0:0:0.3" Storyboard.TargetName="effect" Storyboard.TargetProperty="Opacity" />
|
||||
<DoubleAnimation Duration="0:0:0.3" Storyboard.TargetName="effect" Storyboard.TargetProperty="BlurRadius" />
|
||||
<DoubleAnimation Duration="0:0:0.5" BeginTime="0:0:0.3" Storyboard.TargetName="path" Storyboard.TargetProperty="Opacity" />
|
||||
<DoubleAnimation Duration="0:0:0.5" Storyboard.TargetName="path2" Storyboard.TargetProperty="Opacity" />
|
||||
|
||||
</Storyboard>
|
||||
</BeginStoryboard>
|
||||
|
||||
</Trigger.ExitActions>
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
|
||||
</Style>
|
||||
|
||||
|
||||
<!--DataGrid样式-->
|
||||
<Style TargetType="{x:Type DataGrid}">
|
||||
<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
|
||||
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
|
||||
<Setter Property="BorderBrush" Value="#FF688CAF"/>
|
||||
<Setter Property="BorderThickness" Value="1"/>
|
||||
<Setter Property="RowDetailsVisibilityMode" Value="VisibleWhenSelected"/>
|
||||
<Setter Property="ScrollViewer.CanContentScroll" Value="true"/>
|
||||
<Setter Property="ScrollViewer.PanningMode" Value="Both"/>
|
||||
<Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
|
||||
<Setter Property="AutoGenerateColumns" Value="False"/>
|
||||
<Setter Property="ColumnHeaderHeight" Value="50"/>
|
||||
<Setter Property="FontSize" Value="20"/>
|
||||
<Setter Property="RowHeight" Value="50"/>
|
||||
<Setter Property="AlternationCount" Value="1"/>
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type DataGrid}">
|
||||
<Grid>
|
||||
<Border Background="Transparent" CornerRadius="0">
|
||||
<Border.Effect>
|
||||
<DropShadowEffect ShadowDepth="0" Direction="0" Color="#FFDADADA"/>
|
||||
</Border.Effect>
|
||||
</Border>
|
||||
<Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}" SnapsToDevicePixels="True">
|
||||
<ScrollViewer x:Name="DG_ScrollViewer" Focusable="false">
|
||||
<ScrollViewer.Template>
|
||||
<ControlTemplate TargetType="{x:Type ScrollViewer}">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid Background="Transparent" Grid.Column="1">
|
||||
<Grid.Effect>
|
||||
<DropShadowEffect Direction="270" Color="#FFF3F3F3"/>
|
||||
</Grid.Effect>
|
||||
</Grid>
|
||||
<Button Command="{x:Static DataGrid.SelectAllCommand}" Focusable="false" Style="{DynamicResource {ComponentResourceKey ResourceId=DataGridSelectAllButtonStyle, TypeInTargetAssembly={x:Type DataGrid}}}" Visibility="{Binding HeadersVisibility, ConverterParameter={x:Static DataGridHeadersVisibility.All}, Converter={x:Static DataGrid.HeadersVisibilityConverter}, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}" Width="{Binding CellsPanelHorizontalOffset, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
|
||||
<DataGridColumnHeadersPresenter x:Name="PART_ColumnHeadersPresenter" Grid.Column="1" Visibility="{Binding HeadersVisibility, ConverterParameter={x:Static DataGridHeadersVisibility.Column}, Converter={x:Static DataGrid.HeadersVisibilityConverter}, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
|
||||
<ScrollContentPresenter x:Name="PART_ScrollContentPresenter" CanContentScroll="{TemplateBinding CanContentScroll}" Grid.ColumnSpan="2" Grid.Row="1"/>
|
||||
|
||||
<ScrollBar x:Name="PART_VerticalScrollBar" Grid.Column="2" Maximum="{TemplateBinding ScrollableHeight}" Orientation="Vertical" Grid.Row="1" Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}" Value="{Binding VerticalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" ViewportSize="{TemplateBinding ViewportHeight}"/>
|
||||
<Grid Grid.Column="1" Grid.Row="2">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="{Binding NonFrozenColumnsViewportHorizontalOffset, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<ScrollBar x:Name="PART_HorizontalScrollBar" Grid.Column="1" Maximum="{TemplateBinding ScrollableWidth}" Orientation="Horizontal" Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}" Value="{Binding HorizontalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" ViewportSize="{TemplateBinding ViewportWidth}"/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</ControlTemplate>
|
||||
</ScrollViewer.Template>
|
||||
<ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
|
||||
</ScrollViewer>
|
||||
</Border>
|
||||
</Grid>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
<Style.Triggers>
|
||||
<MultiTrigger>
|
||||
<MultiTrigger.Conditions>
|
||||
<Condition Property="IsGrouping" Value="true"/>
|
||||
<Condition Property="VirtualizingPanel.IsVirtualizingWhenGrouping" Value="false"/>
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="ScrollViewer.CanContentScroll" Value="false"/>
|
||||
</MultiTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
<Style TargetType="DataGridColumnHeader">
|
||||
<Setter Property="Background" Value="Transparent"/>
|
||||
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
||||
<Setter Property="HorizontalContentAlignment" Value="Center"/>
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="DataGridColumnHeader">
|
||||
<Grid Background="{TemplateBinding Background}">
|
||||
<!--<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition Width="20"/>
|
||||
</Grid.ColumnDefinitions>-->
|
||||
<ContentPresenter Margin="20 0 0 0" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"/>
|
||||
<!--<TextBlock Grid.Column="1" x:Name="SortArrow" Visibility="Visible" VerticalAlignment="Center" FontFamily="/DataGrid;component/Fonts/#FontAwesome"/>-->
|
||||
</Grid>
|
||||
<!--<ControlTemplate.Triggers>
|
||||
<Trigger Property="SortDirection" Value="Ascending">
|
||||
<Setter TargetName="SortArrow" Property="Visibility" Value="Visible" />
|
||||
<Setter TargetName="SortArrow" Property="Text" Value="" />
|
||||
</Trigger>
|
||||
<Trigger Property="SortDirection" Value="Descending">
|
||||
<Setter TargetName="SortArrow" Property="Visibility" Value="Visible" />
|
||||
<Setter TargetName="SortArrow" Property="Text" Value="" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>-->
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
<Style TargetType="DataGridRow">
|
||||
<Setter Property="Cursor" Value="Hand"/>
|
||||
<Setter Property="Template" >
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="DataGridRow">
|
||||
<Grid >
|
||||
<Border x:Name="border" Background="{TemplateBinding Background}" BorderThickness="1" BorderBrush="Transparent"/>
|
||||
<DataGridCellsPresenter />
|
||||
</Grid>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsMouseOver" Value="True">
|
||||
<Setter Property="BorderBrush" TargetName="border" Value="#00BCD4"/>
|
||||
</Trigger>
|
||||
<Trigger Property="IsSelected" Value="true">
|
||||
<Setter Property="BorderBrush" TargetName="border" Value="#00BCD4"/>
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
<Style.Triggers>
|
||||
<Trigger Property="ItemsControl.AlternationIndex"
|
||||
Value="0">
|
||||
<Setter Property="Background" Value="Transparent" />
|
||||
</Trigger>
|
||||
<Trigger Property="ItemsControl.AlternationIndex"
|
||||
Value="1">
|
||||
<Setter Property="Background" Value="Transparent" />
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
<Style TargetType="DataGridCell">
|
||||
<Setter Property="Background" Value="Transparent"/>
|
||||
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
||||
<Setter Property="HorizontalContentAlignment" Value="Center"/>
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="DataGridCell">
|
||||
<Grid Background="{TemplateBinding Background}">
|
||||
<ContentPresenter VerticalAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"/>
|
||||
</Grid>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsSelected" Value="true">
|
||||
<Setter Property="Foreground" Value="Gray" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
|
||||
<!--TextBox样式-->
|
||||
<Style TargetType="{x:Type TextBox}">
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type TextBox}">
|
||||
<Border BorderThickness="1" Width="auto" Height="auto" BorderBrush="Black">
|
||||
<Grid x:Name="grid" Background="White">
|
||||
<ScrollViewer x:Name="PART_ContentHost" VerticalAlignment="Center" VerticalContentAlignment="Center" HorizontalAlignment="Center"/>
|
||||
</Grid>
|
||||
</Border>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
|
||||
</ResourceDictionary>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue