Code Monkey home page Code Monkey logo

Comments (10)

wieslawsoltes avatar wieslawsoltes commented on July 19, 2024

Do you have simple repro?

from dock.

jinyuttt avatar jinyuttt commented on July 19, 2024

https://github.com/jinyuttt/PlatApplication.git

from dock.

wieslawsoltes avatar wieslawsoltes commented on July 19, 2024
  • You have included theme twice

https://github.com/jinyuttt/PlatApplication/blob/5bd6a50c4adba2f6b755226047057829bb27dc29/Plat/App.axaml#L11
https://github.com/jinyuttt/PlatApplication/blob/5bd6a50c4adba2f6b755226047057829bb27dc29/Plat/App.axaml#L13

  • Remove this items from project

https://github.com/jinyuttt/PlatApplication/blob/5bd6a50c4adba2f6b755226047057829bb27dc29/Plat/PlatForm.csproj#L28-L38

  • Add this to project instead of the above
  <ItemGroup>
    <Compile Update="**\*.xaml.cs">
      <DependentUpon>%(Filename)</DependentUpon>
      <SubType>Code</SubType>
    </Compile>
    <AvaloniaResource Include="**\*.xaml">
      <SubType>Designer</SubType>
    </AvaloniaResource>
  </ItemGroup>

from dock.

jinyuttt avatar jinyuttt commented on July 19, 2024

Thank you, but still can't park. There is no drag to dock that figure.
91995029-e22a6680-ed69-11ea-824f-58cd06a424b4

from dock.

jinyuttt avatar jinyuttt commented on July 19, 2024

If you have time, please continue to check for me

from dock.

wieslawsoltes avatar wieslawsoltes commented on July 19, 2024

Dos https://github.com/wieslawsoltes/AvaloniaDockApplication/tree/master/AvaloniaDockApplication works on your machine? Please try using it as base of your project.

from dock.

wieslawsoltes avatar wieslawsoltes commented on July 19, 2024

Not sure what is broken in your code, but in sample app I can not reproduce the issue
Dock

from dock.

jinyuttt avatar jinyuttt commented on July 19, 2024

ok,thanks

from dock.

wieslawsoltes avatar wieslawsoltes commented on July 19, 2024

When using latest preview version 0.10.0-preview5 you can control the dock target using id:DockProperties.IsDockTarget="True" attached property

<DockPanel Name="DropToolDock" id:DockProperties.IsDropArea="True" id:DockProperties.IsDockTarget="True" Background="Transparent" Grid.Row="1" ZIndex="1" x:DataType="Controls:IToolDock" x:CompileBindings="True">

from dock.

wieslawsoltes avatar wieslawsoltes commented on July 19, 2024

Also you have to set id:DockProperties.IsDropArea="True" attached property.

from dock.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.