locked
Using a custom activity designer to not show the header area RRS feed

  • Question

  • Hi,

    When I create an activity with a custom activity designer it always shows a header on the activity (the area with the icon and name). Is there a way of getting rid of that header area as I have some activities that I don't want to show this area?

    Thanks

    Matt
    Friday, January 22, 2010 10:46 PM

Answers

  • can you try following steps to create an customactivity designer to see whether it's what you want?

    1. launch a activitydesignerLibrary project
    2. go to xaml file
    replace original code with following(it's some simple UI with a datagrid and a checkbox, you can add border or something else you like)
    <sap:WorkflowViewElement x:Class="ActivityDesignerLibrary2.ActivityDesigner1"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:sap="clr-namespace:System.Activities.Presentation;assembly=System.Activities.Presentation"
        xmlns:sapv="clr-namespace:System.Activities.Presentation.View;assembly=System.Activities.Presentation">
        <Grid Height="100" Name="grid1" Width="200" Background="White" Margin="3" OpacityMask="Black">
            <CheckBox Content="CheckBox" Height="16" HorizontalAlignment="Left" Margin="96,46,0,0" Name="checkBox1" VerticalAlignment="Top" />
        </Grid>
    </sap:WorkflowViewElement>
    3. finish other steps as you did to create other customactivity designer.
    • Marked as answer by MatthewVB Sunday, January 24, 2010 10:30 PM
    Saturday, January 23, 2010 12:25 AM

All replies

  • not sure whether this is the best way.
    but you may have a try on workflowviewelement to create the customeractivity you want instead of activitydesigner.
    Friday, January 22, 2010 11:17 PM
  • can you try following steps to create an customactivity designer to see whether it's what you want?

    1. launch a activitydesignerLibrary project
    2. go to xaml file
    replace original code with following(it's some simple UI with a datagrid and a checkbox, you can add border or something else you like)
    <sap:WorkflowViewElement x:Class="ActivityDesignerLibrary2.ActivityDesigner1"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:sap="clr-namespace:System.Activities.Presentation;assembly=System.Activities.Presentation"
        xmlns:sapv="clr-namespace:System.Activities.Presentation.View;assembly=System.Activities.Presentation">
        <Grid Height="100" Name="grid1" Width="200" Background="White" Margin="3" OpacityMask="Black">
            <CheckBox Content="CheckBox" Height="16" HorizontalAlignment="Left" Margin="96,46,0,0" Name="checkBox1" VerticalAlignment="Top" />
        </Grid>
    </sap:WorkflowViewElement>
    3. finish other steps as you did to create other customactivity designer.
    • Marked as answer by MatthewVB Sunday, January 24, 2010 10:30 PM
    Saturday, January 23, 2010 12:25 AM
  • That worked perfectly.

    Thanks for that.
    Sunday, January 24, 2010 10:30 PM