mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-29 12:43:24 +08:00
项目结构调整
This commit is contained in:
30
Others/Fluent.Ribbon/Fluent.Ribbon.Showcase/TestWindow.xaml
Normal file
30
Others/Fluent.Ribbon/Fluent.Ribbon.Showcase/TestWindow.xaml
Normal file
@@ -0,0 +1,30 @@
|
||||
<Fluent:RibbonWindow 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:FluentTest="clr-namespace:FluentTest"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d"
|
||||
x:Name="window"
|
||||
x:Class="FluentTest.TestWindow"
|
||||
Title="{Binding WindowTitle, ElementName=TestContent}"
|
||||
FlowDirection="LeftToRight"
|
||||
Height="768"
|
||||
Width="1024"
|
||||
MinWidth="80"
|
||||
MinHeight="60"
|
||||
WindowState="Normal"
|
||||
Style="{StaticResource RibbonWindowStyle}"
|
||||
DataContext="{Binding DataContext, ElementName=TestContent}">
|
||||
<Fluent:RibbonWindow.LayoutTransform>
|
||||
<!-- todo: netcore => was using x:Reference before -->
|
||||
<ScaleTransform ScaleX="{Binding DataContext.Zoom, ElementName=TestContent}"
|
||||
ScaleY="{Binding DataContext.Zoom, ElementName=TestContent}" />
|
||||
</Fluent:RibbonWindow.LayoutTransform>
|
||||
<Fluent:RibbonWindow.WindowCommands>
|
||||
<Fluent:WindowCommands>
|
||||
<Button Content="Test" Style="{DynamicResource Fluent.Ribbon.Styles.WindowCommands.Button}" />
|
||||
</Fluent:WindowCommands>
|
||||
</Fluent:RibbonWindow.WindowCommands>
|
||||
<FluentTest:TestContent x:Name="TestContent" />
|
||||
</Fluent:RibbonWindow>
|
||||
Reference in New Issue
Block a user