src/Carnac/UI/PreferencesView.xaml
(开头部分) 11KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<controls:MetroWindow xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ui="clr-namespace:Carnac.UI"
xmlns:utilities="clr-namespace:Carnac.Utilities"
xmlns:carnac="clr-namespace:Carnac"
x:Class="Carnac.UI.PreferencesView"
Width="610" Height="420" Icon="../icon.ico"
Foreground="{DynamicResource BlackBrush}"
d:DataContext="{d:DesignInstance ui:PreferencesViewModel}" mc:Ignorable="d"
ShowTitleBar="False" ShowMinButton="False" ShowMaxRestoreButton="False"
SaveWindowPosition="True" utilities:DesignTimeHelper.Background="Black">
<Window.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colors.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
<ResourceDictionary
Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.AnimatedSingleRowTabControl.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/Blue.xaml" />
<ResourceDictionary
Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseDark.xaml" />
</ResourceDictionary.MergedDictionaries>
<DataTemplate x:Key="ColourPickerTemplate">
<StackPanel Orientation="Horizontal" VerticalAlignment="Stretch"
d:DataContext="{d:DesignInstance ui:AvailableColor}">
<TextBlock Width="20"
Height="20"
Margin="2"
VerticalAlignment="Stretch"
Background="{Binding Brush}" />
<TextBlock Margin="2"
VerticalAlignment="Stretch"
Text="{Binding Name}" />
</StackPanel>
</DataTemplate>
</ResourceDictionary>
</Window.Resources>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<TabControl>
<TabItem Header="General">
<Grid>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<StackPanel Margin="10,0,0,0" Orientation="Vertical">
<carnac:PositionOnMonitorSelector />
<ui:PreferencesField Header="Top Offset">
<Slider Value="{Binding Settings.TopOffset}" IsSnapToTickEnabled="True"
LargeChange="10"
Maximum="{Binding SelectedScreen.Height}" Minimum="0" SmallChange="1" TickFrequency="20" />
后面还有 120 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。