From db886e777b3b24742d72b704b694690383eee68b Mon Sep 17 00:00:00 2001 From: sakuraxp Date: Sun, 5 Jun 2022 03:07:05 +0800 Subject: [PATCH 1/4] =?UTF-8?q?feat.=E4=BC=98=E5=8C=96=EF=BC=8C=E5=BD=93?= =?UTF-8?q?=E6=93=8D=E4=BD=9C=E7=B3=BB=E7=BB=9F=E4=B8=8D=E6=94=AF=E6=8C=81?= =?UTF-8?q?Windows=E7=B3=BB=E7=BB=9F=E6=8E=A8=E9=80=81=E9=80=9A=E7=9F=A5?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E9=9A=90=E8=97=8F=E7=9B=B8=E5=BA=94=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E9=80=89=E9=A1=B9=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../UserControl/ToastSettingsUserControl.xaml | 86 +++++++------------ .../ViewModels/SettingsViewModel.cs | 40 +++------ 2 files changed, 43 insertions(+), 83 deletions(-) diff --git a/src/MeoAsstGui/UserControl/ToastSettingsUserControl.xaml b/src/MeoAsstGui/UserControl/ToastSettingsUserControl.xaml index 8efff9a2ff..8da08177c3 100644 --- a/src/MeoAsstGui/UserControl/ToastSettingsUserControl.xaml +++ b/src/MeoAsstGui/UserControl/ToastSettingsUserControl.xaml @@ -6,6 +6,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:s="https://github.com/canton7/Stylet" d:DesignHeight="300" xmlns:vm="clr-namespace:MeoAsstGui;assembly=MeoAsstGui" + xmlns:c="clr-namespace:CalcBinding;assembly=CalcBinding" d:DataContext="{d:DesignInstance {x:Type vm:SettingsViewModel}}" d:DesignWidth="550" mc:Ignorable="d"> @@ -14,18 +15,28 @@ - - - - - - - + + - + + + + + + + @@ -36,74 +47,41 @@ - - - - - - - - - + IsChecked="{Binding ToastPositionTopLeft}"/> + IsChecked="{Binding ToastPositionCenterLeft}"/> - + IsChecked="{Binding ToastPositionBottomLeft}"/> + IsChecked="{Binding ToastPositionTopCenter}"/> - + IsChecked="{Binding ToastPositionBottomCenter}"/> + IsChecked="{Binding ToastPositionTopRight}"/> + IsChecked="{Binding ToastPositionCenterRight}"/> + IsChecked="{Binding ToastPositionBottomRight}"/> - - - + +