| | |
| | | <!--
|
| | | /****************************************************************************
|
| | | **
|
| | | ** Copyright (C) 2020 The Qt Company Ltd.
|
| | | ** Copyright (C) 2022 The Qt Company Ltd.
|
| | | ** Contact: https://www.qt.io/licensing/
|
| | | **
|
| | | ** This file is part of the Qt VS Tools.
|
| | |
| | | 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:QtVsTools.Options"
|
| | | mc:Ignorable="d"
|
| | | d:DesignHeight="450"
|
| | | d:DesignWidth="800">
|
| | |
| | | Color="Transparent" />
|
| | | <SolidColorBrush x:Key="{x:Static SystemColors.ControlBrushKey}"
|
| | | Color="Transparent" />
|
| | | <BooleanToVisibilityConverter x:Key="b2v" />
|
| | | </DataGrid.Resources>
|
| | | <DataGrid.RowStyle>
|
| | | <Style TargetType="{x:Type DataGridRow}">
|
| | | <Setter Property="Visibility" Value="{Binding RowVisible, Converter={StaticResource b2v}}"/>
|
| | | </Style>
|
| | | </DataGrid.RowStyle>
|
| | | <DataGrid.CellStyle>
|
| | | <Style TargetType="DataGridCell">
|
| | | <Setter Property="BorderThickness"
|
| | |
| | | <CheckBox x:Name="IsDefault"
|
| | | IsChecked="{Binding IsDefault}"
|
| | | Focusable="{Binding DefaultEnabled}"
|
| | | IsHitTestVisible="{Binding DefaultEnabled}"
|
| | | Visibility="{Binding RowVisibility}"
|
| | | Visibility="{Binding RowContentVisibility}"
|
| | | BorderThickness="1"
|
| | | Background="Transparent"
|
| | | VerticalAlignment="Center"
|
| | |
| | | <!--//// Name ////-->
|
| | | <Grid>
|
| | | <Button Cursor="Hand"
|
| | | Visibility="{Binding RowVisibility}"
|
| | | Visibility="{Binding RowContentVisibility}"
|
| | | HorizontalAlignment="Left"
|
| | | VerticalAlignment="Center"
|
| | | Click="Remove_Click">
|
| | |
| | | </Button>
|
| | | <TextBox x:Name="VersionName"
|
| | | Text="{Binding VersionName}"
|
| | | Visibility="{Binding RowVisibility}"
|
| | | Visibility="{Binding RowContentVisibility}"
|
| | | IsEnabled="{Binding NameEnabled}"
|
| | | FontWeight="{Binding FontWeight}"
|
| | | Margin="20,4,2,4"
|
| | |
| | | LostFocus="Control_LostFocus"
|
| | | TextChanged="TextBox_TextChanged"
|
| | | SelectionChanged="TextBox_SelectionChanged"
|
| | | ToolTip="{Binding FieldName.ToolTip}">
|
| | | ToolTip="{Binding FieldVersionName.ToolTip}">
|
| | | <TextBox.Resources>
|
| | | <SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}"
|
| | | Color="LimeGreen" />
|
| | |
| | | <DataTemplate>
|
| | | <!--//// Host ////-->
|
| | | <ComboBox x:Name="Host"
|
| | | Visibility="{Binding RowVisibility}"
|
| | | Visibility="{Binding RowContentVisibility}"
|
| | | IsEditable="True"
|
| | | IsReadOnly="True"
|
| | | BorderThickness="0"
|
| | |
| | | </Button>
|
| | | <TextBox x:Name="Path"
|
| | | Text="{Binding Path}"
|
| | | Visibility="{Binding RowVisibility}"
|
| | | Visibility="{Binding RowContentVisibility}"
|
| | | BorderThickness="0"
|
| | | Background="Transparent"
|
| | | Margin="{Binding PathMargin}"
|
| | |
| | | <!--//// Compiler ////-->
|
| | | <TextBox x:Name="Compiler"
|
| | | Text="{Binding Compiler}"
|
| | | Visibility="{Binding RowVisibility}"
|
| | | Visibility="{Binding RowContentVisibility}"
|
| | | IsEnabled="{Binding CompilerEnabled}"
|
| | | BorderThickness="0"
|
| | | Background="Transparent"
|