mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix Binding error
This commit is contained in:
parent
77ffafc582
commit
3c49d8e730
4 changed files with 32 additions and 25 deletions
|
|
@ -2,6 +2,7 @@
|
|||
x:Class="Flow.Launcher.Resources.Controls.InfoBar"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:cc="clr-namespace:Flow.Launcher.Resources.Controls"
|
||||
xmlns:converters="clr-namespace:Flow.Launcher.Converters"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
|
|
@ -26,21 +27,22 @@
|
|||
<ColumnDefinition Width="Auto" MinWidth="24" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<StackPanel Grid.Column="0" Orientation="Horizontal">
|
||||
<Border
|
||||
x:Name="Part_IconBorder"
|
||||
Width="16" VerticalAlignment="Top"
|
||||
Height="16"
|
||||
Margin="0 0 12 0"
|
||||
CornerRadius="10">
|
||||
<ui:FontIcon
|
||||
x:Name="PART_Icon"
|
||||
Margin="1 0 0 1"
|
||||
VerticalAlignment="Center"
|
||||
FontFamily="Segoe MDL2 Assets"
|
||||
FontSize="13"
|
||||
Foreground="{DynamicResource Color01B}"
|
||||
Visibility="Visible" />
|
||||
</Border>
|
||||
<Border
|
||||
x:Name="Part_IconBorder"
|
||||
Width="16"
|
||||
Height="16"
|
||||
Margin="0 0 12 0"
|
||||
VerticalAlignment="Top"
|
||||
CornerRadius="10">
|
||||
<ui:FontIcon
|
||||
x:Name="PART_Icon"
|
||||
Margin="1 0 0 1"
|
||||
VerticalAlignment="Center"
|
||||
FontFamily="Segoe MDL2 Assets"
|
||||
FontSize="13"
|
||||
Foreground="{DynamicResource Color01B}"
|
||||
Visibility="Visible" />
|
||||
</Border>
|
||||
|
||||
</StackPanel>
|
||||
<StackPanel
|
||||
|
|
@ -53,11 +55,11 @@
|
|||
Margin="0 0 12 0"
|
||||
FontWeight="SemiBold"
|
||||
Foreground="{DynamicResource Color05B}"
|
||||
Text="{Binding Title}" />
|
||||
Text="{Binding RelativeSource={RelativeSource AncestorType=cc:InfoBar}, Path=Title}" />
|
||||
<TextBlock
|
||||
x:Name="PART_Message"
|
||||
Foreground="{DynamicResource Color05B}"
|
||||
Text="{Binding Message}"
|
||||
Text="{Binding RelativeSource={RelativeSource AncestorType=cc:InfoBar}, Path=Message}"
|
||||
TextWrapping="Wrap" />
|
||||
</StackPanel>
|
||||
|
||||
|
|
|
|||
|
|
@ -19,9 +19,7 @@ namespace Flow.Launcher.Resources.Controls
|
|||
UpdateMessageVisibility();
|
||||
UpdateOrientation();
|
||||
UpdateIconAlignmentAndMargin();
|
||||
|
||||
// DataContext 설정 (예시)
|
||||
this.DataContext = this; // InfoBar 자체를 DataContext로 사용
|
||||
//this.DataContext = this;
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty TypeProperty =
|
||||
|
|
|
|||
|
|
@ -188,15 +188,21 @@ public partial class SettingsPaneGeneralViewModel : BaseModel
|
|||
UpdateEnumDropdownLocalizations();
|
||||
}
|
||||
}
|
||||
|
||||
public bool LegacyKoreanIMEEnabled
|
||||
public bool LegacyKoreanIMEEnabled
|
||||
{
|
||||
get => IsLegacyKoreanIMEEnabled();
|
||||
set
|
||||
{
|
||||
SetLegacyKoreanIMEEnabled(value);
|
||||
OnPropertyChanged(nameof(LegacyKoreanIMEEnabled));
|
||||
OnPropertyChanged(nameof(KoreanIMERegistryValueIsZero));
|
||||
Debug.WriteLine($"[DEBUG] LegacyKoreanIMEEnabled 변경: {value}");
|
||||
if (SetLegacyKoreanIMEEnabled(value))
|
||||
{
|
||||
OnPropertyChanged(nameof(LegacyKoreanIMEEnabled));
|
||||
OnPropertyChanged(nameof(KoreanIMERegistryValueIsZero));
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.WriteLine("[DEBUG] LegacyKoreanIMEEnabled 설정 실패");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -322,6 +322,7 @@
|
|||
Title="{DynamicResource KoreanImeTitle}"
|
||||
Margin="0 12 0 0"
|
||||
Closable="False"
|
||||
DataContext="{Binding RelativeSource={RelativeSource AncestorType=Border}, Path=DataContext}"
|
||||
IsIconVisible="True"
|
||||
Length="Long"
|
||||
Message="{DynamicResource KoreanImeGuide}"
|
||||
|
|
|
|||
Loading…
Reference in a new issue