39 lines
2.8 KiB
Plaintext
39 lines
2.8 KiB
Plaintext
|
|
<base:BaseView x:Class="DatabaseServices.DatabaseSwitchView"
|
||
|
|
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"
|
||
|
|
mc:Ignorable="d"
|
||
|
|
d:DesignHeight="768" d:DesignWidth="1366"
|
||
|
|
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
|
||
|
|
xmlns:converters="clr-namespace:DTS.Common.Converters;assembly=DTS.Common"
|
||
|
|
x:Name="DatabaseSwitch" Background="White">
|
||
|
|
<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:InverseBooleanConverter x:Key="InverseConverter" />
|
||
|
|
</ResourceDictionary>
|
||
|
|
</base:BaseView.Resources>
|
||
|
|
<WrapPanel Background="White" Orientation="Horizontal">
|
||
|
|
<Button Content="{strings:TranslateExtension SwitchToLocal}" IsEnabled="{Binding RemoteIsActive, UpdateSourceTrigger=PropertyChanged}" AutomationProperties.AutomationId="SwitchToLocalButton" Click="SwitchToLocal_Click" />
|
||
|
|
<Button Content="{strings:TranslateExtension SwitchToRemote}" IsEnabled="{Binding RemoteIsActive, Converter={StaticResource InverseConverter}, UpdateSourceTrigger=PropertyChanged}" AutomationProperties.AutomationId="SwitchToRemoteButton" Click="SwitchToRemote_Click" />
|
||
|
|
</WrapPanel>
|
||
|
|
</base:BaseView>
|