Files
controlmymonitormanagement/ControlMyMonitorManagement/MainWindow.xaml
Dave Friedel 0352c6b755 Add brightness/contrast sliders, input source switching, and 9-language localization
- Add VCP commands for brightness (10), contrast (12), input source (60)
- Fix UTF-16 encoding for monitor data parsing
- Add system tray app with monitor controls
- Add localization for en, es, fr, de, zh, ja, pt, it, hi
- Update to .NET 9.0
- Add LICENSE and README

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-03 22:11:35 -05:00

39 lines
1.8 KiB
XML

<Window x:Class="CMM.Management.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:ctrl="clr-namespace:CMM.Management.Control"
xmlns:local="clr-namespace:CMM.Management"
mc:Ignorable="d"
Title="{DynamicResource AppTitle}"
Background="#666C6161"
AllowsTransparency="True"
ResizeMode="CanResizeWithGrip"
WindowStyle="None"
BorderThickness="3"
BorderBrush="Gray"
WindowStartupLocation="CenterScreen"
Loaded="Window_Loaded" Closing="Window_Closing" MaxWidth="800" ScrollViewer.VerticalScrollBarVisibility="Disabled" UseLayoutRounding="False" MinWidth="550" MinHeight="310">
<Grid x:Name="MianGrid">
<Grid.RowDefinitions>
<RowDefinition Height="30"/>
<RowDefinition Height="*"/>
<RowDefinition Height="50"/>
</Grid.RowDefinitions>
<Border Background="#33000000" Grid.Row="2"/>
<Border MouseLeftButtonDown="move" Background="#00000000" Grid.RowSpan="3"/>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="5">
<Button Click="Btn_Click" Tag="Minimized" Style="{StaticResource MinimizedButton}"/>
<Button Click="Btn_Click" Tag="Exit" Style="{StaticResource CancelButton}"/>
</StackPanel>
<ctrl:MonitorsControl Monitors="{Binding Monitors}" Grid.Row="1"/>
<!--最下層Loading頁面阻擋-->
<Border x:Name="loading" Background="#00000000" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.RowSpan="3" Visibility="Hidden">
<ctrl:Loading />
</Border>
</Grid>
</Window>