ClickOutsideBehavior 1.0.4

dotnet add package ClickOutsideBehavior --version 1.0.4
                    
NuGet\Install-Package ClickOutsideBehavior -Version 1.0.4
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ClickOutsideBehavior" Version="1.0.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ClickOutsideBehavior" Version="1.0.4" />
                    
Directory.Packages.props
<PackageReference Include="ClickOutsideBehavior" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ClickOutsideBehavior --version 1.0.4
                    
#r "nuget: ClickOutsideBehavior, 1.0.4"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ClickOutsideBehavior@1.0.4
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ClickOutsideBehavior&version=1.0.4
                    
Install as a Cake Addin
#tool nuget:?package=ClickOutsideBehavior&version=1.0.4
                    
Install as a Cake Tool

ClickOutsideBehavior

ClickOutsideBehavior - это библиотека позволяющая отслеживать клики мыши вне заданного элемента.

Пример

<DockPanel behavior:Behavior.MonitorName="IsRenameMode">
    <TextBlock
        Margin="5,0,0,0"
        VerticalAlignment="Center"
        Foreground="White"
        Text="{Binding Title}">
        <TextBlock.Style>
            <Style TargetType="TextBlock">
                <Setter Property="Visibility" Value="Visible" />
                <Style.Triggers>
                    <DataTrigger Binding="{Binding IsRenameMode}" Value="True">
                        <Setter Property="Visibility" Value="Collapsed" />
                    </DataTrigger>
                </Style.Triggers>
            </Style>
        </TextBlock.Style>
    </TextBlock>
    <TextBox
        VerticalAlignment="Center"
        PreviewKeyUp="TextBox_OnKeyDown"
        Tag="{Binding}"
        Text="{Binding Title}">
        <TextBox.Style>
            <Style TargetType="TextBox">
                <Setter Property="Visibility" Value="Collapsed" />
                <Style.Triggers>
                    <DataTrigger Binding="{Binding IsRenameMode}" Value="True">
                        <Setter Property="Visibility" Value="Visible" />
                    </DataTrigger>
                </Style.Triggers>
            </Style>
        </TextBox.Style>
    </TextBox>
 </DockPanel>

Nuget

Product Compatible and additional computed target framework versions.
.NET net6.0-windows7.0 is compatible.  net7.0-windows was computed.  net7.0-windows7.0 is compatible.  net8.0-windows was computed.  net8.0-windows7.0 is compatible.  net9.0-windows was computed.  net9.0-windows7.0 is compatible.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0-windows7.0

    • No dependencies.
  • net7.0-windows7.0

    • No dependencies.
  • net8.0-windows7.0

    • No dependencies.
  • net9.0-windows7.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.4 190 10/20/2025
1.0.3 178 10/20/2025