49 lines
3.3 KiB
Plaintext
49 lines
3.3 KiB
Plaintext
<base:BaseView x:Class="DatabaseServices.DatabaseStatusBarView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:base="clr-namespace:DTS.Common.Base;assembly=DTS.Common"
|
|
xmlns:controls="clr-namespace:DTS.Common.Controls;assembly=DTS.Common"
|
|
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
|
|
xmlns:strings="clr-namespace:DatabaseServices"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:converters="clr-namespace:DatabaseServices.Converters"
|
|
xmlns:local="clr-namespace:DatabaseServices"
|
|
xmlns:enums="clr-namespace:DTS.Common.Enums.Database;assembly=DTS.Common"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="50" d:DesignWidth="1366"
|
|
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
|
|
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
|
x:Name="DatabaseStatusBar">
|
|
<base:BaseView.Resources>
|
|
<ResourceDictionary>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<ResourceDictionary Source="pack://application:,,,/DTS.Common;component/Themes/CommonStyles.xaml"/>
|
|
<ResourceDictionary Source="pack://application:,,,/DTS.Common;component/Controls/combobox.xaml"/>
|
|
</ResourceDictionary.MergedDictionaries>
|
|
|
|
<Style TargetType="ListView">
|
|
<Setter Property="ItemContainerStyle" Value="{StaticResource TTS_ListViewItemStyle}"/>
|
|
</Style>
|
|
<Style TargetType="TextBox" BasedOn="{StaticResource TTS_TextBoxStyle}"/>
|
|
<Style TargetType="TextBlock" BasedOn="{StaticResource TTS_TextBlockStyle}"/>
|
|
<Style TargetType="CheckBox" BasedOn="{StaticResource PageContentCheckBoxStyle}" />
|
|
<Style TargetType="ComboBox" BasedOn="{StaticResource TTS_ComboBoxStyle}"/>
|
|
<Style TargetType="Button" BasedOn="{StaticResource TTS_ButtonStyle}"/>
|
|
<Style TargetType="GridViewColumnHeader" BasedOn="{StaticResource Gray_GridViewColumnHeaderStyle}"/>
|
|
<converters:DbTypeToVisibilityConverter x:Key="DbTypeConverter" />
|
|
<!--<local:DatabaseStatusBarViewModel x:Key="MainViewModel" />-->
|
|
</ResourceDictionary>
|
|
</base:BaseView.Resources>
|
|
<StackPanel Orientation="Horizontal" Background="Transparent" x:Name="MainStackPanel" VerticalAlignment="Center">
|
|
<TextBlock Foreground="White"
|
|
Text="{strings:TranslateExtension ConnectedTo}"
|
|
Background="{Binding BackgroundBrush,UpdateSourceTrigger=PropertyChanged}"
|
|
FontSize="12" VerticalAlignment="Center" Padding="5,0,5,0"/>
|
|
<TextBlock Foreground="White" AutomationProperties.AutomationId="ServerTextBlock"
|
|
Text="{Binding ActiveDbName,UpdateSourceTrigger=PropertyChanged}"
|
|
Background="{Binding BackgroundBrush,UpdateSourceTrigger=PropertyChanged}"
|
|
FontSize="12" VerticalAlignment="Center" Padding="0,0,5,0"/>
|
|
</StackPanel>
|
|
</base:BaseView>
|