Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FloatingBlock invalid #1579

Open
MCcber opened this issue May 3, 2024 · 0 comments
Open

FloatingBlock invalid #1579

MCcber opened this issue May 3, 2024 · 0 comments

Comments

@MCcber
Copy link

MCcber commented May 3, 2024

Describe the bug

  • Under .NET8
  • Nuget Version is 3.5.1,Name is HandyControl
  • System Version is Win11 22H2 22621.3447

Available when handyControl:FloatingBlock.Content is set, invalid when ContentTemplate is set

Steps to reproduce the bug

After writing the following code in the WPF program and starting debugging, the FloatingBlock fails.

<Button
    Width="180"
    Margin="0,10,0,0"
    handyControl:FloatingBlock.Duration="0:0:1"
    handyControl:FloatingBlock.ToX="50"
    handyControl:FloatingBlock.ToY="-80"
    handyControl:FloatingBlock.VerticalOffset="-20"
    handyControl:IconElement.Geometry="{StaticResource ThumbsUpGeometry}">
    <handyControl:FloatingBlock.ContentTemplate>
        <DataTemplate>
            <Path
                Width="16"
                Height="16"
                Data="{StaticResource ThumbsUpGeometry}"
                Fill="{DynamicResource DangerBrush}" />
        </DataTemplate>
    </handyControl:FloatingBlock.ContentTemplate>
</Button>```

### Expected behavior

Theoretically, after writing the above code and starting debugging, your thumb should fly upward when you click the button. In fact, this does not happen.

### Screenshots

![image](https://github.com/HandyOrg/HandyControl/assets/45808036/5c4cd071-80de-4675-8d25-4e28669b14d8)


### NuGet package version

None

### IDE

Visual Studio 2022

### Framework type

_No response_

### Windows version

Windows 11 (22000)

### Additional context

_No response_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant