mirror of
https://github.com/openziti/desktop-edge-win.git
synced 2026-09-22 02:43:31 +00:00
2f7e53f02c
* feat: bump dependencies (NuGet 8 -> 10, NLog 5 -> 6) * feat: shared IPC data structures for policy state * feat: registry policy reader with WMI watcher * feat: monitor service policy enforcement, maintenance window, deferred install * feat: UI policy state propagation, locks, deferred-install + sentinel UX fix * feat: ADMX/ADML templates, admin guide, helper script, test runbook * chore: build tooling, MSI SHA256, version bump, release notes * more reworking around the adml/admx/md * build and upload ADMX/ADML admin templates zip * updates from looking at / testing GPO UI * missed the prepare-for-tests ps1 * add boms to all ps1's just in case * update test-run for more vebosity to allow humans to understand * more updates to release notes * Fix alignment on "from" label for maintenance window * Remove arrow pointing to task bar * Remove unused selection changed stub * Ensure logical hour value is passed to maintenance window start/end * Fix invalid URL error not showing - ensure maintenance start/end time errors return correctly Change variable names * reworking new-upcoming-releasenotes * publish admin templates zip + sha256 sidecar to GitHub release, update release note * add tatooing words * reword clamping words --------- Co-authored-by: Christopher Britton <christopher.l.britton@outlook.com>
150 lines
7.6 KiB
XML
150 lines
7.6 KiB
XML
<!--
|
|
Copyright NetFoundry Inc.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
https://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
<UserControl x:Class="ZitiDesktopEdge.AddIdentityCA"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
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:ZitiDesktopEdge"
|
|
mc:Ignorable="d">
|
|
<UserControl.Resources>
|
|
<!-- Style for the RadioButton Toggle -->
|
|
<Style x:Key="ToggleSwitchStyle" TargetType="RadioButton">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="RadioButton">
|
|
<Border x:Name="Border"
|
|
Background="Gray"
|
|
BorderBrush="DarkGray"
|
|
BorderThickness="3">
|
|
<ContentPresenter x:Name="ContentPresenter"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
TextElement.Foreground="Black" />
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<!-- When checked, change background and text color -->
|
|
<Trigger Property="IsChecked" Value="True">
|
|
<Setter TargetName="Border" Property="Background" Value="{StaticResource ButtonBrush}" />
|
|
<Setter TargetName="Border" Property="BorderBrush" Value="Gray" />
|
|
<Setter TargetName="ContentPresenter" Property="TextElement.Foreground" Value="{StaticResource ButtonColorDarkBrush}" />
|
|
</Trigger>
|
|
<!-- Hover effect - Red background -->
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="Border" Property="Background" Value="{StaticResource ButtonColorBrush}" />
|
|
<Setter TargetName="Border" Property="BorderBrush" Value="{StaticResource ButtonColorBrush}" />
|
|
<Setter TargetName="ContentPresenter" Property="TextElement.Foreground" Value="White" />
|
|
</Trigger>
|
|
<!-- Focus effect -->
|
|
<Trigger Property="IsFocused" Value="True">
|
|
<Setter TargetName="Border" Property="BorderBrush" Value="{StaticResource ButtonColorBrush}" />
|
|
<Setter TargetName="Border" Property="BorderThickness" Value="2" />
|
|
</Trigger>
|
|
<DataTrigger Binding="{Binding IsFocused, RelativeSource={RelativeSource Self}}" Value="False">
|
|
<Setter TargetName="Border" Property="BorderBrush" Value="Gray" />
|
|
<Setter TargetName="Border" Property="BorderThickness" Value="1" />
|
|
</DataTrigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
<Setter Property="Height" Value="30" />
|
|
<Setter Property="HorizontalAlignment" Value="Center" />
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
</Style>
|
|
</UserControl.Resources>
|
|
|
|
<Grid Margin="0" Height="Auto" VerticalAlignment="Center">
|
|
<Border Background="{StaticResource DarkBackgroundBrush}"
|
|
BorderBrush="Gray"
|
|
BorderThickness="2"
|
|
CornerRadius="10"
|
|
Padding="10">
|
|
</Border>
|
|
|
|
<StackPanel x:Name="MFAAuthArea" Margin="5,10,5,10">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Label Grid.Column="1"
|
|
Content="3rd Party Certificate"
|
|
Foreground="White" FontSize="16"
|
|
HorizontalAlignment="Stretch"
|
|
FontWeight="Bold" />
|
|
<Image Name="CloseThirdPartyDialog"
|
|
Grid.Column="2"
|
|
Cursor="Hand"
|
|
Source="/Assets/Images/x.png"
|
|
Width="20" Height="20"
|
|
HorizontalAlignment="Right"
|
|
Margin="0,0,10,0"
|
|
MouseUp="ExecuteClose"
|
|
/>
|
|
</Grid>
|
|
<!-- Certificate File -->
|
|
<Label Content="Certificate File" Foreground="White" Opacity="0.7" FontSize="12" HorizontalAlignment="Left" />
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,0,0,0">
|
|
<TextBox x:Name="CertificateFile"
|
|
FontSize="14"
|
|
Width="250"
|
|
IsReadOnly="True"
|
|
Text="<Choose Certificate File>"
|
|
IsTabStop="True"
|
|
/>
|
|
<Button Content="Browse"
|
|
Margin="10,0,0,0"
|
|
Click="BrowseCertificateFile_Click"
|
|
IsTabStop="True"/>
|
|
</StackPanel>
|
|
|
|
<!-- Key File -->
|
|
<Label Content="Key File" Foreground="White" Opacity="0.7" FontSize="12" HorizontalAlignment="Left" />
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,0,0,0">
|
|
<TextBox x:Name="KeyFile"
|
|
FontSize="14"
|
|
Width="250"
|
|
IsReadOnly="True"
|
|
Text="<Choose Key File>"
|
|
IsTabStop="True"/>
|
|
<Button x:Name="BrowseKeyBtn"
|
|
Content="Browse"
|
|
Margin="10,0,0,0"
|
|
Click="BrowseKeyFile_Click"
|
|
IsTabStop="True"/>
|
|
</StackPanel>
|
|
|
|
<!-- Alias >
|
|
<Label Content="Alias" Foreground="White" Opacity="0.7" FontSize="12" HorizontalAlignment="Left" />
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,0,0,0">
|
|
<TextBox x:Name="Alias"
|
|
FontSize="14"
|
|
Width="250"
|
|
IsTabStop="True" />
|
|
<Label Margin="10,0,0,0"
|
|
Width="{Binding ElementName=BrowseKeyBtn, Path=ActualWidth}"/>
|
|
</StackPanel-->
|
|
<local:StyledButton x:Name="JoinNetworkBtn"
|
|
OnClick="JoinNetworkCA"
|
|
Label="Join Network"
|
|
IsTabStop="True"
|
|
Margin="{StaticResource MarginTop10}" />
|
|
</StackPanel>
|
|
</Grid>
|
|
</UserControl>
|