|
@@ -31,9 +31,6 @@
|
|
|
</Design.DataContext>
|
|
|
|
|
|
<Panel>
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
<DockPanel>
|
|
|
<titlebars:TitleBarWindow
|
|
|
IsSeamless="False"
|
|
@@ -43,7 +40,7 @@
|
|
|
DockPanel.Dock="Top"
|
|
|
ZIndex="997">
|
|
|
</titlebars:TitleBarWindow>
|
|
|
-
|
|
|
+
|
|
|
<Grid DockPanel.Dock="Left">
|
|
|
<Grid.RowDefinitions>
|
|
|
<RowDefinition Height="0"></RowDefinition>
|
|
@@ -147,7 +144,7 @@
|
|
|
Margin="3">
|
|
|
</TextBlock>
|
|
|
<ComboBox
|
|
|
- Items="{Binding DownloadedVersions}"
|
|
|
+ ItemsSource="{Binding DownloadedVersions}"
|
|
|
PlaceholderText="Select version"
|
|
|
SelectedItem="Binding DownloadedVersion"
|
|
|
SelectedIndex="{Binding DownloadedIndex}"
|
|
@@ -167,8 +164,35 @@
|
|
|
HorizontalAlignment="Center">
|
|
|
<TextBox.Styles>
|
|
|
<Style Selector="DataValidationErrors">
|
|
|
- <Setter Property="Template" Value="{DynamicResource TooltipDataValidationContentTemplate}" />
|
|
|
- <Setter Property="ErrorTemplate" Value="{DynamicResource TooltipDataValidationErrorTemplate}" />
|
|
|
+ <Setter Property="Template">
|
|
|
+ <ControlTemplate>
|
|
|
+ <DockPanel LastChildFill="True" MaxWidth="220">
|
|
|
+ <ContentControl DockPanel.Dock="Right"
|
|
|
+ ContentTemplate="{TemplateBinding ErrorTemplate}"
|
|
|
+ DataContext="{TemplateBinding Owner}"
|
|
|
+ Content="{Binding (DataValidationErrors.Errors)}"
|
|
|
+ IsVisible="{Binding (DataValidationErrors.HasErrors)}"/>
|
|
|
+ <ContentPresenter Name="PART_ContentPresenter"
|
|
|
+ Background="{TemplateBinding Background}"
|
|
|
+ BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
+ BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
+ CornerRadius="{TemplateBinding CornerRadius}"
|
|
|
+ ContentTemplate="{TemplateBinding ContentTemplate}"
|
|
|
+ Content="{TemplateBinding Content}"
|
|
|
+ Padding="{TemplateBinding Padding}"/>
|
|
|
+ </DockPanel>
|
|
|
+ </ControlTemplate>
|
|
|
+ </Setter>
|
|
|
+ <Setter Property="ErrorTemplate">
|
|
|
+ <DataTemplate>
|
|
|
+ <Canvas Width="14" Height="14" Margin="4 0 1 0"
|
|
|
+ Background="Transparent">
|
|
|
+ <Path Data="M14,7 A7,7 0 0,0 0,7 M0,7 A7,7 0 1,0 14,7 M7,3l0,5 M7,9l0,2"
|
|
|
+ Stroke="Yellow"
|
|
|
+ StrokeThickness="2"/>
|
|
|
+ </Canvas>
|
|
|
+ </DataTemplate>
|
|
|
+ </Setter>
|
|
|
</Style>
|
|
|
</TextBox.Styles>
|
|
|
</TextBox>
|