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

Xaml Designer - edit polyline points not possible #69

Open
TeaJAge opened this issue Jan 18, 2021 · 1 comment
Open

Xaml Designer - edit polyline points not possible #69

TeaJAge opened this issue Jan 18, 2021 · 1 comment

Comments

@TeaJAge
Copy link

TeaJAge commented Jan 18, 2021

It's not possible to edit points of a polyline.

image

image

<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Width="640"
        Height="480">
  <Canvas>
    <Path Width="120"
          Height="100"
          Stretch="None"
          Stroke="Black"
          StrokeThickness="2"
          Canvas.Left="120"
          Canvas.Top="204.04000000000002" />
    <Polyline Points="0,0 93,69 -4,124 -4,124 -4,124"
              Stretch="None"
              Stroke="Black"
              StrokeThickness="2"
              Canvas.Left="124"
              Canvas.Top="119.03999999999999" />
  </Canvas>
</Window>

@jogibear9988
Copy link
Member

The Problem here is, the Points are Stored as a String and not as an Object List in Xaml

If you create the Line like this:

<Polyline 
              Stretch="None"
              Stroke="Black"
              StrokeThickness="2"
              Canvas.Left="122"
              Canvas.Top="135.04000000000002">
      <Polyline.Points>
        <Point X="1" Y="2" />
        <Point X="3" Y="4" />
        <Point X="5" Y="6" />
      </Polyline.Points>
    </Polyline>

it works. Ate the Moment the support for the other Format is missing, I think in XamlModelCollectionElementsCollection, Problem is, it returns a Empty List, cause there is no automatic conversation between the two modes.

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

2 participants