Commit d4978ecd by liulongfei

bug修复

parent a74e1ca0
......@@ -44,7 +44,7 @@ namespace VIZ.Package.Domain
#region IsEnabled -- 是否启用
private bool isEnabled;
private bool isEnabled = true;
/// <summary>
/// 是否启用
/// </summary>
......
......@@ -99,7 +99,7 @@ namespace VIZ.Package.Domain
#region IsEnabled -- 是否启用
private bool isEnabled;
private bool isEnabled = true;
/// <summary>
/// 是否启用
/// </summary>
......
......@@ -87,5 +87,19 @@ namespace VIZ.Package.Domain
}
#endregion
#region IsColumnChooserVisible -- 列选择器是否显示
private bool isColumnChooserVisible;
/// <summary>
/// 列选择器是否显示
/// </summary>
public bool IsColumnChooserVisible
{
get { return isColumnChooserVisible; }
set { isColumnChooserVisible = value; this.RaisePropertyChanged(nameof(IsColumnChooserVisible)); }
}
#endregion
}
}
......@@ -21,7 +21,7 @@
<!-- 系统版本 -->
<TextBlock Text="系统版本:" VerticalAlignment="Center" HorizontalAlignment="Right"
Grid.Row="1" Grid.Column="0" Margin="0,0,10,0"></TextBlock>
<TextBlock Text="V1.0.0.0" VerticalAlignment="Center" HorizontalAlignment="Left"
<TextBlock Text="V1.0.0.02172045_beta" VerticalAlignment="Center" HorizontalAlignment="Left"
Grid.Row="1" Grid.Column="1"></TextBlock>
</Grid>
</dx:ThemedWindow>
......@@ -46,7 +46,7 @@
<Style TargetType="dxdove:CaptionImage">
<Setter Property="Width" Value="16"/>
<Setter Property="Height" Value="16"/>
<Setter Property="Stretch" Value="Fill"/>
<Setter Property="Stretch" Value="Fill"/>
</Style>
</Setter.Value>
</Setter>
......@@ -78,7 +78,7 @@
</dxmvvm:Interaction.Behaviors>
<dxdo:DockLayoutManager x:Name="dockLayoutManager" FloatingMode="Desktop" EnableWin32Compatibility="True"
ViewStyle="Light"
ViewStyle="Default"
AutoHideExpandMode="MouseDown">
<dxdo:LayoutGroup ItemsSource="{Binding ItemsSource}"></dxdo:LayoutGroup>
</dxdo:DockLayoutManager>
......
......@@ -65,6 +65,8 @@
<MenuItem Header="新建分组" Command="{Binding Path=PlacementTarget.DataContext.AddGroupCommand, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ContextMenu}}"/>
<MenuItem Header="重命名分组" Command="{Binding Path=PlacementTarget.DataContext.RenameGroupCommand, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ContextMenu}}"/>
<Separator></Separator>
<MenuItem Header="显示列" Command="{Binding Path=PlacementTarget.DataContext.ColumnChoiceCommand, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ContextMenu}}"/>
<Separator></Separator>
<MenuItem Header="更新页" Command="{Binding Path=PlacementTarget.DataContext.UpdateCommand, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ContextMenu}}"/>
<MenuItem Header="初始化页" Command="{Binding Path=PlacementTarget.DataContext.TakeInitCommand, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ContextMenu}}"/>
<Separator></Separator>
......@@ -155,7 +157,8 @@
<dxg:GridColumn Header="插件" FieldName="PluginName" ReadOnly="True" AllowSorting="False" AllowColumnFiltering="False"></dxg:GridColumn>
</dxg:GridControl.Columns>
<dxg:GridControl.View>
<dxg:TableView IsColumnMenuEnabled="False"
<dxg:TableView IsColumnMenuEnabled="False"
IsColumnChooserVisible="{Binding Path=IsColumnChooserVisible,Mode=TwoWay}"
AllowEditing="True" ShowIndicator="False" RowMinHeight="69.5"
NavigationStyle="Cell" ShowVerticalLines="False"
ShowGroupPanel="False" EditorShowMode="MouseDown"
......
......@@ -51,6 +51,7 @@ namespace VIZ.Package.Module
this.TakeClearCommand = new VCommand(this.TakeClear);
this.TakeInitCommand = new VCommand(this.TakeInit);
this.TakeInitAllCommand = new VCommand(this.TakeInitAll);
this.ColumnChoiceCommand = new VCommand(this.ColumnChoice);
}
/// <summary>
......@@ -444,6 +445,26 @@ namespace VIZ.Package.Module
#endregion
#region ColumnChoiceCommand -- 列选择命令
/// <summary>
/// 列选择命令
/// </summary>
public VCommand ColumnChoiceCommand { get; set; }
/// <summary>
/// 列选择
/// </summary>
private void ColumnChoice()
{
if (this.SelectedPageGroupModel == null)
return;
this.SelectedPageGroupModel.IsColumnChooserVisible = true;
}
#endregion
// ======================================================================================
// Message
// ======================================================================================
......@@ -474,11 +495,17 @@ namespace VIZ.Package.Module
this.IsLoading = false;
});
if (this.SelectedPageGroupModel == null)
return;
// 获取场景模板缩略图
this.pageViewModelHelper.BeginDownLoadIamge(this.SelectedPageGroupModel.Pages.ToList<PageModelBase>());
List<PageModelBase> pages = new List<PageModelBase>();
foreach (PageGroupModel group in pageGroups)
{
if (group.Pages == null || group.Pages.Count == 0)
continue;
pages.AddRange(group.Pages);
}
this.pageViewModelHelper.BeginDownLoadIamge(pages);
});
}
......
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