Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version
Go to top

Integrated Help system in a WPF Application

, 20 Jun 2013
Quick guideline to understand a workflow of screen without reading long and boring(!!) documentation guide.
integratedhelpinwpf-noexe.zip
IntegratedHelpInWPF
IntegratedHelpInWPF
AttachProperties
bin
Debug
DynamicHelpReference
IntegratedHelpInWPF.vshost.exe.manifest
Commands
DynamicHelpReference
IntegratedHelpInWPF.csproj.user
Languages
Popup
Properties
Settings.settings
Resources
integratedhelpinwpf.zip
IntegratedHelpInWPF.exe
IntegratedHelpInWPF.vshost.exe
IntegratedHelpInWPF.vshost.exe.manifest
Release
IntegratedHelpInWPF.csproj.user
obj
Debug
Resources
TempPE
Settings.settings
IntegratedHelpInWPF_Revised_-noexe.zip
IntegratedHelpInWPF.vshost.exe.manifest
Converter
IntegratedHelpInWPF.csproj.user
DetailsHelpView.baml
DynamicHelpView.baml
IntegratedHelpInWPF.g.resources
IntegratedHelpInWPF.Properties.Resources.resources
IntegratedHelpInWPF_MarkupCompile.lref
MainWindow.baml
CommonResource.baml
WishlistView.baml
Settings.settings
IntegratedHelpInWPF.v11.suo
IntegratedHelpInWPF_Revised_.zip
Assembly
System.Windows.Interactivity.dll
IntegratedHelpInWPF.exe
IntegratedHelpInWPF.pdb
IntegratedHelpInWPF.vshost.exe
IntegratedHelpInWPF.vshost.exe.manifest
System.Windows.Interactivity.dll
IntegratedHelpInWPF.csproj.user
DesignTimeResolveAssemblyReferences.cache
DesignTimeResolveAssemblyReferencesInput.cache
DetailsHelpView.baml
DynamicHelpView.baml
IntegratedHelpInWPF.csproj.GenerateResource.Cache
IntegratedHelpInWPF.csprojResolveAssemblyReference.cache
IntegratedHelpInWPF.exe
IntegratedHelpInWPF.g.resources
IntegratedHelpInWPF.pdb
IntegratedHelpInWPF.Properties.Resources.resources
IntegratedHelpInWPF_MarkupCompile.cache
IntegratedHelpInWPF_MarkupCompile.i.cache
IntegratedHelpInWPF_MarkupCompile.lref
MainWindow.baml
CommonResource.baml
Properties.Resources.Designer.cs.dll
WishlistView.baml
Settings.settings
IntegratedHelpInWPF.v11.suo
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:ViewPopup="clr-namespace:JerichoCOREService.View.Popup">
    <BooleanToVisibilityConverter x:Key="VisibilityOfBool" />
    <ControlTemplate x:Key="DynamicHelpControl">
        <Grid Visibility="{Binding ElementName=popupCloseButton, Path=IsChecked, Converter={StaticResource VisibilityOfBool}}" HorizontalAlignment="Left" VerticalAlignment="Top" >
                <ViewPopup:AdornedPlaceholder/>
                <Grid Margin="5,10,0,0" MaxWidth="160" MinWidth="140" MaxHeight="150" >
                    <Rectangle Margin="0,20,0,0" Stroke="DarkGray" Fill="LightGray" RadiusX="6" RadiusY="6"/>
                    <Path Data="M 25 20 L 20 0 33 20" Margin="0,1,0,0" Stroke="DarkGray" Fill="LightGray" />
                    <Expander IsExpanded="True" Margin="5,25,10,2" >
                        <Expander.Header>
                            <StackPanel Margin="0,0,0,0" Orientation="Horizontal">
                                <TextBlock Margin="0,0,0,0" TextAlignment="Center" VerticalAlignment="Center" 
                                     Text="{Binding Title}" TextWrapping="Wrap" FontSize="11" FontWeight="Bold" />

                                <Path Margin="0,0,0,0" Stroke="DarkGray" Fill="LightGray" HorizontalAlignment="Right" 
                                      Data="M16,4.938c-7.732,0-14,4.701-14,10.5c0,1.981,0.741,3.833,2.016,5.414L2,25.272l5.613-1.44c2.339,1.316,5.237,2.106,8.387,2.106c7.732,0,14-4.701,14-10.5S23.732,4.938,16,4.938zM16.868,21.375h-1.969v-1.889h1.969V21.375zM16.772,18.094h-1.777l-0.176-8.083h2.113L16.772,18.094z" />
                            </StackPanel>
                        </Expander.Header>
                        <Expander.Content>
                            <StackPanel>
                                <TextBlock Margin="2,0,0,0" 
                                     Text="{Binding HelpText}" TextWrapping="Wrap" FontSize="10" FontStyle="Italic" FontWeight="Regular" />
                                <TextBlock Margin="2,0,0,0" 
                                     Text="{Binding URL}" TextWrapping="Wrap" FontSize="10" FontWeight="Regular" />
                                <TextBlock Margin="2,0,0,0"  
                                     Text="{Binding ShortCut}" TextWrapping="Wrap" FontSize="10" FontWeight="Bold" />
                            </StackPanel>
                        </Expander.Content>
                    </Expander>
                    <ToggleButton Name="popupCloseButton" IsChecked="True"
                        Height="15" Width="15"  Margin="5,25,10,2" HorizontalAlignment="Right" VerticalAlignment="Top">
                        <ToggleButton.Template>
                            <ControlTemplate TargetType="ToggleButton" >
                                <Viewbox Stretch="Fill">
                                    <Path Data="M24.778,21.419 19.276,15.917 24.777,10.415 21.949,7.585 16.447,13.087 10.945,7.585 8.117,10.415 13.618,15.917 8.116,21.419 10.946,24.248 16.447,18.746 21.948,24.248z"
                              Margin="0,1,0,0" Stroke="DarkGray" Fill="SlateGray" />
                                </Viewbox>
                            </ControlTemplate>
                        </ToggleButton.Template>
                    </ToggleButton>
                    <TextBlock Margin="3" VerticalAlignment="Top" HorizontalAlignment="Left" Foreground="Red" FontSize="18" FontWeight="Bold"
                               Text="{Binding DisplaybleFlowIndex}" ></TextBlock>
                </Grid>
            </Grid>             
    </ControlTemplate>
</ResourceDictionary>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Morshed Anwar
Team Leader Adaptive Enterprise Limited (www.ael-bd.com)
Bangladesh Bangladesh
No Biography provided

| Advertise | Privacy | Mobile
Web03 | 2.8.140926.1 | Last Updated 20 Jun 2013
Article Copyright 2012 by Morshed Anwar
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid