Click here to Skip to main content
15,886,362 members
Articles / Desktop Programming / Win32

.NET Shell Extensions - Shell Preview Handlers

Rate me:
Please Sign up or sign in to vote.
4.93/5 (23 votes)
20 May 2014MIT8 min read 140.4K   6.1K   71  
Quickly create Shell Preview Handlers for Windows or Outlook using .NET!
<UserControl x:Class="ServerInspector.Servers.ServersView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:ServerInspector.Servers"
             xmlns:apexMVVM="clr-namespace:Apex.MVVM;assembly=Apex"
             xmlns:apexCommands="clr-namespace:Apex.Commands;assembly=Apex"
             xmlns:apexControls="clr-namespace:Apex.Controls;assembly=Apex"
             xmlns:apexConverters="clr-namespace:Apex.Converters;assembly=Apex"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    
    <UserControl.DataContext>
        <local:ServersViewModel x:Name="viewModel" />
    </UserControl.DataContext>
            
    <Grid>
        <DockPanel>
            
            <ToolBarPanel DockPanel.Dock="Top">
                <ToolBar>
                    <Label Content="Search" />
                    <TextBox Text="{Binding SearchText, UpdateSourceTrigger=PropertyChanged}" Width="200" />
                    <Label Content="Show:" />
                    <CheckBox Content="Native" IsChecked="{Binding ShowNativeInProc32, Mode=TwoWay}" />
                    <CheckBox Content="Managed" IsChecked="{Binding ShowManagedInProc32, Mode=TwoWay}" />
                    <CheckBox Content="Partially Registered" IsChecked="{Binding ShowPartiallyRegistered, Mode=TwoWay}" />
                </ToolBar> 
            </ToolBarPanel>
            
        <ListView ItemsSource="{Binding Servers}">
            <ListView.View>
                <GridView>
                    <GridViewColumn Header="Type" DisplayMemberBinding="{Binding Model.ServerRegistationType}" />
                    <GridViewColumn Header="CLSID" DisplayMemberBinding="{Binding Model.ServerCLSID}" />
                    <GridViewColumn Header="Path" DisplayMemberBinding="{Binding Model.ServerPath}" />
                    <GridViewColumn Header="Threading Model" DisplayMemberBinding="{Binding Model.ThreadingModel}" />
                    <GridViewColumn Header="AssemblyVersion" DisplayMemberBinding="{Binding Model.AssemblyVersion}" />
                    <GridViewColumn Header="Assembly" DisplayMemberBinding="{Binding Model.Assembly}" />
                    <GridViewColumn Header="Class" DisplayMemberBinding="{Binding Model.Class}" />
                    <GridViewColumn Header="RuntimeVersion" DisplayMemberBinding="{Binding Model.RuntimeVersion}" />
                </GridView>
            </ListView.View>
            </ListView>

        </DockPanel>
    </Grid>
</UserControl>

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 MIT License


Written By
Software Developer
United Kingdom United Kingdom
Follow my blog at www.dwmkerr.com and find out about my charity at www.childrenshomesnepal.org.

Comments and Discussions