Click here to Skip to main content
15,891,136 members
Home / Discussions / WPF
   

WPF

 
QuestionTwo-way binding requires Path or XPath error Pin
SledgeHammer0130-Jun-11 6:46
SledgeHammer0130-Jun-11 6:46 
AnswerRe: Two-way binding requires Path or XPath error Pin
Pete O'Hanlon30-Jun-11 6:56
mvePete O'Hanlon30-Jun-11 6:56 
GeneralRe: Two-way binding requires Path or XPath error Pin
SledgeHammer0130-Jun-11 7:08
SledgeHammer0130-Jun-11 7:08 
GeneralRe: Two-way binding requires Path or XPath error Pin
SledgeHammer0130-Jun-11 9:20
SledgeHammer0130-Jun-11 9:20 
QuestionRuntime Error 4008... Layout Cycle Detected... Layout Could Not Complete. Pin
NTheOne30-Jun-11 1:59
NTheOne30-Jun-11 1:59 
AnswerRe: Runtime Error 4008... Layout Cycle Detected... Layout Could Not Complete. Pin
Pete O'Hanlon30-Jun-11 2:34
mvePete O'Hanlon30-Jun-11 2:34 
QuestionIs this possible with HierarchicalDataTemplates? Pin
SledgeHammer0129-Jun-11 11:47
SledgeHammer0129-Jun-11 11:47 
QuestionShift path Pin
Lutosław27-Jun-11 22:37
Lutosław27-Jun-11 22:37 
Hello,

I have a converted SVG to XAML (by Inkscape). It looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" Name="svg2996" Width="42" Height="544">
    <Canvas.RenderTransform>
        <TranslateTransform X="28.0625" Y=" -217.5"/>
    </Canvas.RenderTransform>
    <Path Name="path126" Fill="Black" Data="m 10.03125 218.53125 c -1.6395929 0.0966 -3.3798805 1.83194 -6.34375 6.09375 -5.9949892 7.93715 -14.595317 26.52565 -18.03125 36.21875 -5.152605 20.33505 -6.842535 45.06395 -5.125 68.9375 0.841522 7.92825 2.532316 25.58259 5.125 39.71875 4.277456 33.60207 5.15625 47.73889 5.15625 61.875 -0.876011 22.96895 -6.848809 41.50368 -16.3125 53.875 -1.718393 1.76478 -2.5625 3.53295 -2.5625 4.4375 0 0.90455 0.844107 2.67273 2.5625 4.4375 9.463691 12.37132 15.436489 30.89127 16.3125 53 0 14.99638 -0.878794 29.11498 -5.15625 61.8125 -2.592684 15.0407 -4.283478 32.71323 -5.125 39.78125 -1.717535 24.73379 -0.02761 49.47575 5.125 68.90625 4.277456 15.90088 19.751417 43.3125 24.0625 43.3125 1.717534 0 3.4375 -1.78887 3.4375 -3.5625 0 -0.89571 -1.719966 -3.51811 -3.4375 -6.1875 -10.30607232 -14.99633 -14.6262161 -30.03104 -16.34375 -53 0 -14.13615 0.8787945 -27.40216 5.15625 -60.96875 C 0.24878379 623.98719 1.968604 608.08279 2.84375 601.875 6.2796825 559.4755 -0.57292742 523.24857 -17.75 496.75 c -2.593549 -3.53846 -4.3125 -7.0625 -4.3125 -7.0625 0 0 1.718951 -3.55525 4.3125 -7.09375 C -0.57292742 456.09522 6.2796825 419.86657 2.84375 376.5625 1.968604 371.25926 0.24878379 355.37724 -1.46875 341.25 -5.7462055 308.5791 -6.625 295.29239 -6.625 281.15625 c 1.7175339 -22.96897 6.03767768 -38.00367 16.34375 -53 3.435068 -5.30329 4.311289 -7.04771 2.59375 -8.8125 -0.810483 -0.55428 -1.535981 -0.85639 -2.28125 -0.8125 z"/>
</Canvas>


As you can see, all path's coorditates are shifted out of the canvas' bounds and then translated back. Is there an easy (automatic) way to translate all paths Data, so the redutant transform could by removed?

EDIT: I have tried to paste it to Calc and use a formula to add transform's parameter, but I realized that Calc cannot distinguish X and Y in path's Data.

Thanks in advance,
Greetings - Jacek

AnswerRe: Shift path Pin
Mark Salsbery28-Jun-11 10:21
Mark Salsbery28-Jun-11 10:21 
GeneralRe: Shift path Pin
Lutosław28-Jun-11 10:48
Lutosław28-Jun-11 10:48 
GeneralRe: Shift path Pin
Mark Salsbery28-Jun-11 10:59
Mark Salsbery28-Jun-11 10:59 
QuestionHow to keep two Combo Boxes in sync with WPF [modified] Pin
Member 297299227-Jun-11 9:42
Member 297299227-Jun-11 9:42 
AnswerRe: How to keep two Combo Boxes in sync with WPF Pin
SledgeHammer0127-Jun-11 11:22
SledgeHammer0127-Jun-11 11:22 
AnswerRe: How to keep two Combo Boxes in sync with WPF Pin
Mycroft Holmes27-Jun-11 12:59
professionalMycroft Holmes27-Jun-11 12:59 
Question[SOLVED] Child Window Not Working Properly Pin
AmbiguousName27-Jun-11 0:48
AmbiguousName27-Jun-11 0:48 
AnswerRe: Child Window Not Working Properly Pin
Mycroft Holmes27-Jun-11 1:15
professionalMycroft Holmes27-Jun-11 1:15 
AnswerRe: Child Window Not Working Properly Pin
AmbiguousName27-Jun-11 1:17
AmbiguousName27-Jun-11 1:17 
QuestionHow click more that visible row in DataGrid Pin
tâzn27-Jun-11 0:09
tâzn27-Jun-11 0:09 
AnswerRe: How click more that visible row in DataGrid Pin
Mycroft Holmes27-Jun-11 1:17
professionalMycroft Holmes27-Jun-11 1:17 
GeneralRe: How click more that visible row in DataGrid Pin
tâzn27-Jun-11 5:22
tâzn27-Jun-11 5:22 
GeneralRe: How click more that visible row in DataGrid Pin
Mycroft Holmes27-Jun-11 12:54
professionalMycroft Holmes27-Jun-11 12:54 
QuestionAny way to copy / clone XAML resources? Pin
SledgeHammer0124-Jun-11 18:17
SledgeHammer0124-Jun-11 18:17 
AnswerRe: Any way to copy / clone XAML resources? Pin
SledgeHammer0124-Jun-11 18:30
SledgeHammer0124-Jun-11 18:30 
AnswerRe: Any way to copy / clone XAML resources? Pin
Mark Salsbery24-Jun-11 18:35
Mark Salsbery24-Jun-11 18:35 
GeneralRe: Any way to copy / clone XAML resources? Pin
SledgeHammer0124-Jun-11 18:56
SledgeHammer0124-Jun-11 18:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.