DerekMaciak
posted this
21 December 2015
- Last edited 21 December 2015
- Open the detail.xaml for the module that you want to remove it from.
- Comment out the TabItem with the x:Name AuditFieldTabsOpen the detail.xml.cs (Code Behind) for the module that you want to remove it from.
<TabItem x:Name="AuditFieldsTab" Style="{DynamicResource AB_TabItemStyle}" >
<TabItem.Header>
<StackPanel Orientation="Horizontal">
<Image Height="16" Width="16" Source="/A4DN.Core.WPF.Base;component/Images/AuditStamp.png"/>
<TextBlock Text="{x:Static systemSharedProperties:DescriptionResource.AUDITSTAMPTABTEXT}" Margin="5,0,0,0"/>
</StackPanel>
</TabItem.Header>
<ScrollViewer x:Name="AuditScrollViewer" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" Background="{DynamicResource AB_Brush_TabItemSelectedBackground}" Padding="10" >
<StackPanel Width="Auto" Height="Auto" HorizontalAlignment="Left">
</ScrollViewer>
</TabItem>
- Comment out the line ap_AuditFieldsTab = AuditFieldsTab in the method RG_SetParentProperties
private void RG_SetParentProperties()
{
// Call Initialize Component in order to access XAML objects in Code Behind
InitializeComponent();
// Set the Base Tab Control, main fields tab, and the Audit tab so that the base class can manage these objects
ap_MainTabControl = FieldsTabControl;
ap_LayoutRoot = LayoutRoot;
ap_MainFieldsTab = DetailFieldsTab;
//ap_AuditFieldsTab = AuditFieldsTab;
// Set sub-browser Load ID - This is used for determining what sub-browsers to load.
ap_SubBrowserLoadID = "AlertsDetail";
// Set Entity Type
ap_EntityType = typeof(AlertsEntity);
// Visual State Manager
_VisualStateManager = FindResource("AlertsVM") as AlertsVM;
ap_ViewModel = _VisualStateManager;
}