mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
107 lines
8.7 KiB
XML
107 lines
8.7 KiB
XML
<Window x:Class="Remotely.Desktop.Win.MainWindow"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:local="clr-namespace:Remotely.Desktop.Win"
|
|
xmlns:ViewModels="clr-namespace:Remotely.Desktop.Win.ViewModels"
|
|
mc:Ignorable="d"
|
|
Title="Remotely" Height="250" Width="350"
|
|
WindowStyle="None"
|
|
ResizeMode="NoResize"
|
|
MouseLeftButtonDown="Window_MouseLeftButtonDown"
|
|
Loaded="Window_Loaded" Icon="Remotely_Icon.png" >
|
|
<Window.Resources>
|
|
<DrawingBrush x:Key="GearBrush">
|
|
<DrawingBrush.Drawing>
|
|
<DrawingGroup>
|
|
<DrawingGroup.Children>
|
|
<GeometryDrawing Brush="#00FFFFFF" Geometry="F1M16,16L0,16 0,0 16,0z" />
|
|
<GeometryDrawing Brush="#FFF6F6F6" Geometry="F1M5.6385,-0.000199999999999534L5.3645,1.6368 4.0145,0.671800000000001 0.672499999999999,4.0128 1.6375,5.3648 -0.000500000000000611,5.6378 -0.000500000000000611,10.3628 1.6375,10.6358 0.6735,11.9858 4.0145,15.3268 5.3645,14.3628 5.6375,15.9998 10.3625,15.9998 10.6355,14.3618 11.9875,15.3278 15.3265,11.9858 14.3635,10.6358 16.0005,10.3628 16.0005,5.6378 14.3635,5.3648 15.3265,4.0138 11.9875,0.672800000000001 10.6355,1.6378 10.3625,-0.000199999999999534z" />
|
|
<GeometryDrawing Brush="#FF424242" Geometry="F1M8.0005,6.4623C7.1525,6.4623 6.4625,7.1523 6.4625,8.0003 6.4625,8.8483 7.1525,9.5373 8.0005,9.5373 8.8485,9.5373 9.5385,8.8483 9.5385,8.0003 9.5385,7.1523 8.8485,6.4623 8.0005,6.4623 M8.0005,10.5633C6.5875,10.5633 5.4375,9.4133 5.4375,8.0003 5.4375,6.5873 6.5875,5.4373 8.0005,5.4373 9.4135,5.4373 10.5635,6.5873 10.5635,8.0003 10.5635,9.4133 9.4135,10.5633 8.0005,10.5633 M7.3535,13.9753L8.6475,13.9753 8.9555,12.1263 9.2565,12.0323C9.5005,11.9563,9.7375,11.8583,9.9635,11.7393L10.2425,11.5933 11.7675,12.6823 12.6825,11.7673 11.5915,10.2403 11.7385,9.9613C11.7675,9.9043 11.7975,9.8543 11.8265,9.8053 11.8655,9.7373 11.8995,9.6783 11.9225,9.6243 11.9445,9.5703 11.9615,9.5043 11.9815,9.4283 11.9965,9.3743 12.0115,9.3173 12.0305,9.2573L12.1235,8.9553 13.9755,8.6473 13.9755,7.3533 12.1265,7.0453 12.0325,6.7443C11.9565,6.5003,11.8585,6.2633,11.7395,6.0373L11.5935,5.7583 12.6825,4.2333 11.7675,3.3183 10.2405,4.4083 9.9615,4.2623C9.9045,4.2323 9.8545,4.2033 9.8055,4.1743 9.7375,4.1353 9.6785,4.1003 9.6245,4.0783L9.6245,4.0783C9.5705,4.0563 9.5045,4.0383 9.4285,4.0183 9.3745,4.0043 9.3175,3.9893 9.2575,3.9703L8.9565,3.8763 8.6475,2.0253 7.3535,2.0253 7.0455,3.8743 6.7445,3.9683C6.5005,4.0443,6.2635,4.1423,6.0375,4.2603L5.7585,4.4073 4.2335,3.3173 3.3185,4.2323 4.4085,5.7593 4.2625,6.0393C4.2325,6.0953 4.2035,6.1463 4.1745,6.1953 4.1355,6.2633 4.1015,6.3213 4.0785,6.3753 4.0565,6.4303 4.0385,6.4953 4.0185,6.5723 4.0045,6.6263 3.9895,6.6823 3.9705,6.7433L3.8775,7.0443 2.0255,7.3533 2.0255,8.6473 3.8745,8.9553 3.9685,9.2563C4.0445,9.5003,4.1425,9.7363,4.2615,9.9633L4.4075,10.2423 3.3175,11.7673 4.2325,12.6823 5.7605,11.5913 6.0395,11.7383C6.0955,11.7673 6.1465,11.7973 6.1955,11.8253 6.2635,11.8653 6.3215,11.8993 6.3755,11.9213 6.4295,11.9443 6.4955,11.9613 6.5715,11.9813 6.6265,11.9963 6.6825,12.0103 6.7435,12.0293L7.0445,12.1233 7.3535,13.9753z M9.5155,15.0003L6.4845,15.0003 6.1385,12.9243C6.0865,12.9083 6.0345,12.8903 5.9835,12.8693 5.9325,12.8473 5.8835,12.8243 5.8345,12.7983L4.1225,14.0213 1.9795,11.8783 3.2135,10.1503C3.1705,10.0563,3.1315,9.9613,3.0945,9.8643L1.0005,9.5153 1.0005,6.4843 3.0755,6.1383C3.0925,6.0863 3.1105,6.0343 3.1315,5.9833 3.1525,5.9323 3.1765,5.8823 3.2025,5.8343L1.9795,4.1213 4.1225,1.9783 5.8505,3.2123C5.9445,3.1703,6.0395,3.1313,6.1365,3.0943L6.4855,1.0003 9.5165,1.0003 9.8615,3.0753C9.9115,3.0913 9.9635,3.1093 10.0175,3.1313 10.0685,3.1523 10.1175,3.1763 10.1665,3.2013L11.8785,1.9793 14.0215,4.1223 12.7875,5.8493C12.8305,5.9433,12.8695,6.0393,12.9065,6.1353L15.0005,6.4853 15.0005,9.5153 12.9255,9.8613C12.9085,9.9143 12.8905,9.9663 12.8695,10.0163 12.8485,10.0673 12.8245,10.1173 12.7985,10.1663L14.0215,11.8783 11.8785,14.0213 10.1505,12.7873C10.0565,12.8293,9.9615,12.8693,9.8645,12.9063L9.5155,15.0003z" />
|
|
</DrawingGroup.Children>
|
|
</DrawingGroup>
|
|
</DrawingBrush.Drawing>
|
|
</DrawingBrush>
|
|
</Window.Resources>
|
|
<Window.DataContext>
|
|
<ViewModels:MainWindowViewModel/>
|
|
</Window.DataContext>
|
|
<Grid>
|
|
<StackPanel>
|
|
<Border Height="50" Background="#FF464646">
|
|
<DockPanel Margin="10,0,0,0">
|
|
<StackPanel>
|
|
<TextBlock Foreground="DeepSkyBlue" FontWeight="Bold" FontSize="20" Margin="0,2,0,0">Remotely</TextBlock>
|
|
<TextBlock Foreground="White" FontSize="10"><Run Text="Do IT Remotely"/></TextBlock>
|
|
</StackPanel>
|
|
<Button Style="{StaticResource TitlebarButton}" Click="CloseButton_Click" Content="X" />
|
|
<Button Style="{StaticResource TitlebarButton}" Click="MinimizeButton_Click" Content="_"/>
|
|
</DockPanel>
|
|
</Border>
|
|
<Grid Margin="10,15,10,0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
<StackPanel Grid.Column="0" Margin="0,0,15,0">
|
|
<TextBlock Style="{StaticResource SectionHeader}"><Run Text="Share Screen"/></TextBlock>
|
|
<TextBlock FontSize="16" Margin="0,10,0,5"><Run Text="Your Session ID:"/></TextBlock>
|
|
<TextBox FontSize="16" Text="{Binding SessionID}" IsReadOnly="True"/>
|
|
<Grid Margin="0,10,0,0">
|
|
<TextBlock VerticalAlignment="Center">
|
|
Invite Link:
|
|
</TextBlock>
|
|
<Button HorizontalAlignment="Right" Style="{StaticResource NormalButton}" Click="CopyLinkButton_Click">
|
|
Copy
|
|
</Button>
|
|
</Grid>
|
|
</StackPanel>
|
|
<StackPanel Grid.Column="1" Margin="15,0,0,0">
|
|
<TextBlock Style="{StaticResource SectionHeader}"><Run Text="Viewers"/></TextBlock>
|
|
<Grid Margin="0,5,0,0">
|
|
<TextBlock FontSize="8" Margin="5,0,0,0">Name</TextBlock>
|
|
<TextBlock FontSize="8" Margin="0,0,5,0" HorizontalAlignment="Right">Has Control</TextBlock>
|
|
</Grid>
|
|
<ListBox x:Name="ViewerListBox" Height="90" HorizontalContentAlignment="Stretch" ItemsSource="{Binding Viewers}" SelectionMode="Extended">
|
|
<ListBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<DockPanel>
|
|
<TextBlock Text="{Binding Name}"></TextBlock>
|
|
<CheckBox IsChecked="{Binding HasControl}" HorizontalAlignment="Right"></CheckBox>
|
|
</DockPanel>
|
|
</DataTemplate>
|
|
</ListBox.ItemTemplate>
|
|
</ListBox>
|
|
<Button Style="{StaticResource NormalButton}"
|
|
HorizontalAlignment="Right"
|
|
Command="{Binding RemoveViewersCommand}"
|
|
CommandParameter="{Binding ElementName=ViewerListBox, Path=SelectedItems}"
|
|
Margin="0,5,0,0"
|
|
Content="Remove">
|
|
</Button>
|
|
</StackPanel>
|
|
</Grid>
|
|
</StackPanel>
|
|
<Button BorderThickness="0"
|
|
Background="Transparent"
|
|
VerticalAlignment="Bottom"
|
|
HorizontalAlignment="Left"
|
|
Cursor="Hand"
|
|
Height="20"
|
|
Width="20"
|
|
VerticalContentAlignment="Stretch"
|
|
HorizontalContentAlignment="Stretch"
|
|
Margin="10,5"
|
|
Click="OptionsButton_Click">
|
|
<Button.ContextMenu>
|
|
<ContextMenu>
|
|
<MenuItem Header="Change Server" Command="{Binding Path=ChangeServerCommand, Source={x:Static ViewModels:MainWindowViewModel.Current}}"></MenuItem>
|
|
<MenuItem Header="Restart as Admin" Command="{Binding Path=RestartAsAdminCommand, Source={x:Static ViewModels:MainWindowViewModel.Current}}"></MenuItem>
|
|
</ContextMenu>
|
|
</Button.ContextMenu>
|
|
<Rectangle Fill="{StaticResource GearBrush}"></Rectangle>
|
|
</Button>
|
|
</Grid>
|
|
</Window>
|