Commit 418fe59f by liulongfei

样式调整

parent 733be6a5

273 Bytes | W: | H:

2.86 KB | W: | H:

VIZ.Package.Module.Resource/Icons/project_24x24.png
VIZ.Package.Module.Resource/Icons/project_24x24.png
VIZ.Package.Module.Resource/Icons/project_24x24.png
VIZ.Package.Module.Resource/Icons/project_24x24.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -4,7 +4,10 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars"
xmlns:dxbt="http://schemas.devexpress.com/winfx/2008/xaml/bars/themekeys"
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
xmlns:dxn="http://schemas.devexpress.com/winfx/2008/xaml/core/internal"
xmlns:dxet="http://schemas.devexpress.com/winfx/2008/xaml/editors/themekeys"
xmlns:dxmvvm="http://schemas.devexpress.com/winfx/2008/xaml/mvvm"
xmlns:fcore="clr-namespace:VIZ.Framework.Core;assembly=VIZ.Framework.Core"
d:DataContext="{d:DesignInstance Type=local:MainTopViewModel}"
......@@ -21,6 +24,7 @@
IsChecked="{Binding Path=IsClosed,Mode=TwoWay,Converter={StaticResource Bool2BoolConverterSimple}}"></dxb:BarCheckItem>
</ContentControl>
</DataTemplate>
</UserControl.Resources>
<dxmvvm:Interaction.Behaviors>
......@@ -28,7 +32,22 @@
</dxmvvm:Interaction.Behaviors>
<StackPanel Orientation="Horizontal">
<dxb:MainMenuControl Caption="MainMenu" VerticalAlignment="Center">
<Image Source="/VIZ.Package;component/logo.ico" Margin="2,5,2,2"
VerticalAlignment="Center"></Image>
<dxb:MainMenuControl Caption="MainMenu" VerticalAlignment="Center" Margin="10,0,0,0">
<dxb:MainMenuControl.Resources>
<Style TargetType="dxb:BarSubItem">
<Setter Property="Margin" Value="0,0,5,0"></Setter>
<Setter Property="ContentTemplate">
<Setter.Value>
<DataTemplate>
<TextBlock Text="{Binding .}" FontSize="15"></TextBlock>
</DataTemplate>
</Setter.Value>
</Setter>
</Style>
</dxb:MainMenuControl.Resources>
<dxb:BarSubItem Content="项目" IsEnabled="{Binding Path=IsVizPreviewReady}">
<dxb:BarButtonItem Content="新建" Glyph="/VIZ.Package.Module.Resource;component/Icons/top_icon_create_20x20.png"
Command="{Binding Path=CreateProjectCommand}" />
......
using System;
using DevExpress.Xpf.Bars;
using DevExpress.Xpf.Core.Native;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
......@@ -24,7 +26,7 @@ namespace VIZ.Package.Module
public MainTopView()
{
InitializeComponent();
WPFHelper.BindingViewModel(this, new MainTopViewModel());
}
}
......
......@@ -248,6 +248,11 @@ namespace VIZ.Package.Module
/// </summary>
private void Loaded()
{
if (!System.IO.Directory.Exists(PROJECT_ROOT_FOLDER))
{
System.IO.Directory.CreateDirectory(PROJECT_ROOT_FOLDER);
}
this.RootFolder = new FolderModel(PROJECT_ROOT_FOLDER);
this.FolderModels = new ObservableCollection<FolderModel> { this.RootFolder };
this.TryLoadFolders(this.RootFolder, true);
......
......@@ -2,14 +2,16 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
xmlns:dxcn="http://schemas.devexpress.com/winfx/2008/xaml/core/internal"
xmlns:module="clr-namespace:VIZ.Package.Module;assembly=VIZ.Package.Module"
Title="魔羯座" Height="1000" Width="1600" ShowTitle="False" Padding="0"
Title="魔羯座" Height="1000" Width="1600" ShowTitle="False" Padding="0" ShowIcon="False"
dxcn:WindowChrome.CaptionHeight="30"
WindowStartupLocation="CenterScreen" WindowState="Maximized">
<dx:ThemedWindow.ToolbarItems>
<!-- 主视图顶部 -->
<module:MainTopView></module:MainTopView>
<module:MainTopView ></module:MainTopView>
</dx:ThemedWindow.ToolbarItems>
<Grid>
<Grid Margin="0,5,0,0">
<Grid.RowDefinitions>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="25"></RowDefinition>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment