-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
98 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<TabItem x:Class="WindowDebugger.Views.DWMTab" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:local="clr-namespace:WindowDebugger.Views" | ||
xmlns:win32Enums="clr-namespace:Lsj.Util.Win32.Enums;assembly=Lsj.Util.Win32" | ||
xmlns:converters="clr-namespace:WindowDebugger.Converters" | ||
xmlns:utilconverters="clr-namespace:Lsj.Util.WPF.Converters;assembly=Lsj.Util.WPF" | ||
xmlns:markupExtensions="clr-namespace:Lsj.Util.WPF.MarkupExtensions;assembly=Lsj.Util.WPF" | ||
xmlns:viewmodels="clr-namespace:WindowDebugger.ViewModels" | ||
mc:Ignorable="d" | ||
d:DesignHeight="500" d:DesignWidth="500" d:DataContext="{d:DesignInstance Type=viewmodels:WindowItem}" Header="{Binding Content, RelativeSource={RelativeSource Self}, Mode=OneWay}"> | ||
<Border Padding="10,10,10,0"> | ||
<Grid> | ||
<Grid.Resources> | ||
<Style TargetType="TextBlock"> | ||
<Style.Setters> | ||
<Setter Property="VerticalAlignment" Value="Center"/> | ||
</Style.Setters> | ||
</Style> | ||
<Style TargetType="TextBox"> | ||
<Style.Setters> | ||
<Setter Property="VerticalAlignment" Value="Center"/> | ||
<Setter Property="Height" Value="20"/> | ||
</Style.Setters> | ||
</Style> | ||
<Style TargetType="Button" BasedOn="{StaticResource {x:Type Button}}"> | ||
<Style.Setters> | ||
<Setter Property="VerticalAlignment" Value="Center"/> | ||
<Setter Property="Height" Value="20"/> | ||
<Setter Property="Margin" Value="10,0,0,0"/> | ||
<Setter Property="Padding" Value="8 0" /> | ||
</Style.Setters> | ||
</Style> | ||
<Style TargetType="ComboBox"> | ||
<Style.Setters> | ||
<Setter Property="VerticalAlignment" Value="Center"/> | ||
<Setter Property="VerticalContentAlignment" Value="Center"/> | ||
<Setter Property="Height" Value="22"/> | ||
</Style.Setters> | ||
</Style> | ||
<Style TargetType="CheckBox"> | ||
<Setter Property="VerticalAlignment" Value="Center"/> | ||
</Style> | ||
</Grid.Resources> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="20"/> | ||
<RowDefinition Height="*"/> | ||
</Grid.RowDefinitions> | ||
<CheckBox Grid.Row="0" Grid.Column="0" Content="DwmIsCompositionEnabled" IsChecked="{Binding DwmIsCompositionEnabled, Source={x:Static viewmodels:ViewModel.Instance}, Mode=OneWay}" IsEnabled="False"/> | ||
<Grid Grid.Row="1" IsEnabled="{Binding DwmIsCompositionEnabled, Source={x:Static viewmodels:ViewModel.Instance}, Mode=OneWay}"> | ||
<GroupBox Header=""> | ||
|
||
</GroupBox> | ||
</Grid> | ||
</Grid> | ||
</Border> | ||
</TabItem> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using Lsj.Util.Win32.Extensions; | ||
using Lsj.Util.WPF; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel; | ||
using System.Text; | ||
using System.Windows; | ||
using System.Windows.Controls; | ||
using System.Windows.Data; | ||
using System.Windows.Documents; | ||
using System.Windows.Input; | ||
using System.Windows.Media; | ||
using System.Windows.Media.Imaging; | ||
using System.Windows.Navigation; | ||
using System.Windows.Shapes; | ||
using WindowDebugger.ViewModels; | ||
|
||
namespace WindowDebugger.Views | ||
{ | ||
/// <summary> | ||
/// DWMTab.xaml 的交互逻辑 | ||
/// </summary> | ||
public partial class DWMTab : TabItem | ||
{ | ||
public DWMTab() | ||
{ | ||
InitializeComponent(); | ||
} | ||
} | ||
} |