mirror of
https://github.com/2dust/v2rayN.git
synced 2026-09-28 17:58:06 +03:00
* Interaction * Remove view action * ViewModel-first * MainGirdOrientation Hot Reload * Fix avalonia preview * Remove CloseWindowInteraction * Fix * Avoid threading issues * Fix * ProfilesSelect * Try fix previewer * Remove AppEvents.ProfilesRefreshRequested * Remove AppEvents.SubscriptionsRefreshRequested * Remove AppEvents.ProxiesReloadRequested * Remove AppEvents.AdjustMainLvColWidthRequested * Remove AppEvents.SetDefaultServerRequested * Remove AppEvents.RoutingsMenuRefreshRequested * Remove AppEvents.TestServerRequested * Remove AppEvents.InboundDisplayRequested * Remove AppEvents.SubscriptionsUpdateRequested * Remove AppEvents.ShowHideWindowRequested * Remove AppEvents.ReloadRequested * Remove AppEvents.AddServerRequested * Fix
83 lines
3.6 KiB
XML
83 lines
3.6 KiB
XML
<UserControl
|
|
x:Class="v2rayN.Desktop.Views.StatusBarView"
|
|
xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:dd="clr-namespace:v2rayN.Desktop.DesignData"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:resx="clr-namespace:ServiceLib.Resx;assembly=ServiceLib"
|
|
xmlns:vms="clr-namespace:ServiceLib.ViewModels;assembly=ServiceLib"
|
|
x:DataType="vms:StatusBarViewModel"
|
|
Design.DataContext="{x:Static dd:DesignData.StatusBar}"
|
|
mc:Ignorable="d">
|
|
<Grid>
|
|
<DockPanel Margin="{StaticResource Margin8}">
|
|
<StackPanel
|
|
Margin="{StaticResource MarginLr8}"
|
|
VerticalAlignment="Center"
|
|
DockPanel.Dock="Right">
|
|
<TextBlock x:Name="txtSpeedProxyDisplay" HorizontalAlignment="Right" />
|
|
<Border Margin="1" />
|
|
<TextBlock x:Name="txtSpeedDirectDisplay" HorizontalAlignment="Right" />
|
|
</StackPanel>
|
|
|
|
<StackPanel
|
|
Margin="{StaticResource MarginLr8}"
|
|
VerticalAlignment="Center"
|
|
DockPanel.Dock="Left">
|
|
<TextBlock x:Name="txtInboundDisplay" />
|
|
<Border Margin="1" />
|
|
<TextBlock x:Name="txtInboundLanDisplay" />
|
|
</StackPanel>
|
|
|
|
<StackPanel
|
|
x:Name="spEnableTun"
|
|
Margin="{StaticResource MarginLr8}"
|
|
VerticalAlignment="Center"
|
|
DockPanel.Dock="Left"
|
|
Orientation="Horizontal">
|
|
<TextBlock
|
|
Margin="{StaticResource MarginLr8}"
|
|
VerticalAlignment="Center"
|
|
Text="{x:Static resx:ResUI.TbEnableTunAs}" />
|
|
<ToggleSwitch
|
|
x:Name="togEnableTun"
|
|
Margin="{StaticResource Margin4}"
|
|
HorizontalAlignment="Center"
|
|
Theme="{DynamicResource SimpleToggleSwitch}" />
|
|
</StackPanel>
|
|
|
|
<StackPanel
|
|
Margin="{StaticResource MarginLr8}"
|
|
VerticalAlignment="Center"
|
|
DockPanel.Dock="Left"
|
|
Orientation="Horizontal">
|
|
<ComboBox
|
|
x:Name="cmbSystemProxy"
|
|
Width="160"
|
|
Margin="{StaticResource MarginLr8}"
|
|
ToolTip.Tip="{x:Static resx:ResUI.menuSystemproxy}">
|
|
<ComboBoxItem Content="{x:Static resx:ResUI.menuSystemProxyClear}" />
|
|
<ComboBoxItem Content="{x:Static resx:ResUI.menuSystemProxySet}" />
|
|
<ComboBoxItem Content="{x:Static resx:ResUI.menuSystemProxyNothing}" />
|
|
<ComboBoxItem Content="{x:Static resx:ResUI.menuSystemProxyPac}" />
|
|
</ComboBox>
|
|
|
|
<ComboBox
|
|
x:Name="cmbRoutings2"
|
|
Width="160"
|
|
Margin="{StaticResource MarginLr8}"
|
|
DisplayMemberBinding="{Binding Remarks}"
|
|
ItemsSource="{Binding RoutingItems}"
|
|
ToolTip.Tip="{x:Static resx:ResUI.menuRouting}" />
|
|
</StackPanel>
|
|
|
|
<StackPanel Margin="{StaticResource MarginLr8}" VerticalAlignment="Center">
|
|
<TextBlock x:Name="txtRunningServerDisplay" />
|
|
<Border Margin="1" />
|
|
<TextBlock x:Name="txtRunningInfoDisplay" />
|
|
</StackPanel>
|
|
</DockPanel>
|
|
</Grid>
|
|
</UserControl>
|