mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-13 04:36:37 +08:00
项目结构调整
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
<fluent:RibbonWindow x:Class="FluentTest.MinimalWindowSample"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:fluent="urn:fluent-ribbon"
|
||||
x:Name="window"
|
||||
Title="{Binding WindowTitle, ElementName=TestContent}"
|
||||
FlowDirection="LeftToRight"
|
||||
Height="768"
|
||||
Width="1024"
|
||||
MinWidth="80"
|
||||
MinHeight="60"
|
||||
mc:Ignorable="d"
|
||||
WindowState="Normal">
|
||||
<fluent:RibbonWindow.Resources>
|
||||
<Style TargetType="{x:Type fluent:QuickAccessToolBar}"
|
||||
BasedOn="{StaticResource {x:Type fluent:QuickAccessToolBar}}">
|
||||
<Setter Property="MinWidth"
|
||||
Value="35" />
|
||||
</Style>
|
||||
</fluent:RibbonWindow.Resources>
|
||||
|
||||
<fluent:Ribbon>
|
||||
<fluent:Ribbon.QuickAccessItems>
|
||||
<!-- todo: netcore => was using x:Reference before -->
|
||||
<fluent:QuickAccessMenuItem Target="{Binding ElementName=button}"
|
||||
IsChecked="True" />
|
||||
</fluent:Ribbon.QuickAccessItems>
|
||||
|
||||
<fluent:Ribbon.ContextualGroups>
|
||||
<fluent:RibbonContextualTabGroup x:Name="contextGroup1"
|
||||
BorderBrush="Magenta"
|
||||
Background="Magenta"
|
||||
Foreground="Purple"
|
||||
Header="Generic context"
|
||||
Visibility="Visible" />
|
||||
</fluent:Ribbon.ContextualGroups>
|
||||
|
||||
<!-- todo: netcore => was using x:Reference before -->
|
||||
<fluent:RibbonTabItem Header="Generic tab header"
|
||||
Group="{Binding ElementName=contextGroup1}">
|
||||
<fluent:RibbonGroupBox Header="First group">
|
||||
<fluent:Button x:Name="button"
|
||||
Header="button"
|
||||
Icon="Images\Green.png"
|
||||
LargeIcon="Images\GreenLarge.png" />
|
||||
</fluent:RibbonGroupBox>
|
||||
</fluent:RibbonTabItem>
|
||||
</fluent:Ribbon>
|
||||
</fluent:RibbonWindow>
|
||||
Reference in New Issue
Block a user