mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-30 05:03:23 +08:00
项目结构调整
This commit is contained in:
@@ -0,0 +1,62 @@
|
||||
<Metro:MetroWindow x:Class="FluentTest.MahMetroWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:Fluent="clr-namespace:Fluent;assembly=Fluent"
|
||||
xmlns:Metro="http://metro.mahapps.com/winfx/xaml/controls"
|
||||
xmlns:fluentTest="clr-namespace:FluentTest"
|
||||
WindowStartupLocation="CenterScreen"
|
||||
Title="{Binding WindowTitle, ElementName=TestContent}"
|
||||
Height="768"
|
||||
Width="1024"
|
||||
x:Name="window"
|
||||
WindowState="Normal"
|
||||
TitleCharacterCasing="Normal"
|
||||
WindowTransitionsEnabled="False"
|
||||
GlowBrush="{DynamicResource MahApps.Brushes.Accent}"
|
||||
ShowIconOnTitleBar="False"
|
||||
ShowTitleBar="True"
|
||||
ShowSystemMenuOnRightClick="False">
|
||||
<Metro:MetroWindow.LayoutTransform>
|
||||
<!-- todo: netcore => was using x:Reference before -->
|
||||
<ScaleTransform ScaleX="{Binding DataContext.Zoom, ElementName=TestContent}"
|
||||
ScaleY="{Binding DataContext.Zoom, ElementName=TestContent}" />
|
||||
</Metro:MetroWindow.LayoutTransform>
|
||||
|
||||
<Metro:MetroWindow.Resources>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
|
||||
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
|
||||
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Themes/Light.Blue.xaml" />
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
|
||||
<Style x:Key="{x:Type Fluent:BackstageTabControl}"
|
||||
TargetType="{x:Type Fluent:BackstageTabControl}"
|
||||
BasedOn="{StaticResource {x:Type Fluent:BackstageTabControl}}">
|
||||
<Setter Property="SelectedContentMargin"
|
||||
Value="0" />
|
||||
</Style>
|
||||
</ResourceDictionary>
|
||||
</Metro:MetroWindow.Resources>
|
||||
|
||||
<Metro:MetroWindow.TitleTemplate>
|
||||
<DataTemplate>
|
||||
<Fluent:RibbonTitleBar x:Name="RibbonTitleBar"
|
||||
Header="{Binding Path=Title, RelativeSource={RelativeSource AncestorType=Window}}"/>
|
||||
</DataTemplate>
|
||||
</Metro:MetroWindow.TitleTemplate>
|
||||
|
||||
<Metro:MetroWindow.LeftWindowCommands>
|
||||
<Metro:WindowCommands>
|
||||
<Button>Left</Button>
|
||||
</Metro:WindowCommands>
|
||||
</Metro:MetroWindow.LeftWindowCommands>
|
||||
|
||||
<Metro:MetroWindow.RightWindowCommands>
|
||||
<Metro:WindowCommands>
|
||||
<Button>Right</Button>
|
||||
</Metro:WindowCommands>
|
||||
</Metro:MetroWindow.RightWindowCommands>
|
||||
|
||||
<fluentTest:TestContent x:Name="TestContent" />
|
||||
</Metro:MetroWindow>
|
||||
Reference in New Issue
Block a user