aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Scripting/Tango.Scripting.IDE/Windows/DialogWindow.xaml
blob: 683391afd6f93766d84d26a2332b400e9ced6c3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<mahapps:MetroWindow x:Class="Tango.Scripting.IDE.Windows.DialogWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:mahapps="http://metro.mahapps.com/winfx/xaml/controls"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:Tango.Scripting.IDE.Windows"
        mc:Ignorable="d"
        Title="Some Title" Height="720" Width="1280" 
        SizeToContent="WidthAndHeight" 
        ResizeMode="NoResize" 
        ShowMaxRestoreButton="False" 
        ShowMinButton="False" 
        ShowCloseButton="False" 
        BorderThickness="1" BorderBrush="Gray" TitleCaps="False">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Tango.Scripting.IDE;component/Themes/DarkThemesColors.xaml"/>
                <ResourceDictionary Source="/Tango.Scripting.IDE;component/Themes/ButtonStyle.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>
    
    <Grid>
        
    </Grid>
</mahapps:MetroWindow>
pan>System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; namespace Tango.MachineStudio.UI.Views { /// <summary> /// Interaction logic for MachineLoginView.xaml /// </summary> public partial class MachineLoginView : UserControl { public MachineLoginView() { InitializeComponent(); this.Loaded += MachineLoginView_Loaded; } private void MachineLoginView_Loaded(object sender, RoutedEventArgs e) { txtPass.Focusable = true; txtPass.Focus(); txtPass.Password = String.Empty; Password = String.Empty; } public String Password { get { return (String)GetValue(PasswordProperty); } set { SetValue(PasswordProperty, value); } } public static readonly DependencyProperty PasswordProperty = DependencyProperty.Register("Password", typeof(String), typeof(MachineLoginView), new PropertyMetadata(null)); private void txtPass_PasswordChanged(object sender, RoutedEventArgs e) { Password = txtPass.Password; } } }