Auto-generate configuration dialog, fix logger names, prepare for async initialization
This commit is contained in:
22
Torch.Server/Views/Resources.xaml
Normal file
22
Torch.Server/Views/Resources.xaml
Normal file
@@ -0,0 +1,22 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:converters="clr-namespace:Torch.Server.Views.Converters"
|
||||
xmlns:system="clr-namespace:System;assembly=mscorlib">
|
||||
<Style x:Key="{x:Type Window}" TargetType="{x:Type Window}" BasedOn="{StaticResource {x:Type Window}}">
|
||||
<Style.Setters>
|
||||
<Setter Property="Background" Value="Black"/>
|
||||
</Style.Setters>
|
||||
</Style>
|
||||
<Style x:Key="ValidatedTextBox" TargetType="{x:Type TextBox}">
|
||||
<Style.Triggers>
|
||||
<Trigger Property="Validation.HasError" Value="True">
|
||||
<Setter Property="ToolTip"
|
||||
Value="{Binding RelativeSource={RelativeSource Self}, Path=(Validation.Errors)[0].ErrorContent}" />
|
||||
<Setter Property="Background" Value="Pink"/>
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
<converters:ListConverter x:Key="ListConverterString" Type="system:String"/>
|
||||
<converters:ListConverter x:Key="ListConverterUInt64" Type="system:UInt64"/>
|
||||
<converters:BooleanAndConverter x:Key="BooleanAndConverter"/>
|
||||
</ResourceDictionary>
|
Reference in New Issue
Block a user