locked
change value (benMachine) - 1/18/2008 1:22 AM PST RRS feed

  • Question

  • By: benMachine

    Hello 
    
    
    I work with blend and i want to know how to change value, for exemple i have 
    an image with a height of 150 and a width of 200. I want to insert in textbox 
    content the negative valeu of the width of the image : -200 but I don't want 
    to generate C# code.
    
    It's possible, there is an option to do this?
    
    
    sorry for my english
    
    Thank you
    
    Bye
    
    Ben
    Friday, February 22, 2008 4:20 PM

All replies

  • By: Brennon Williams


    Howdy Ben,
    
    Your english is fine ;-)
    
    What you are asking here can be done with some binding but to modify the 
    value as you want to, you will need to do a little bit of code in the form of 
    a valueconverter.
    
    Have a look at this little video which was done a while back which may 
    explain valueconverters a little better with a concept similar to what you 
    want to do:
    
    http://expressionblend.com/blogs/news/archive/2007/01/24/valueconverter_5F00_demo.aspx
    
    HTH
    
    Cheers
    
    -- 
    Want to learn how to use Blend and visual studio?
    
    http://www.learnexpressionstudio.com
    http://www.expressionblend.com
    http://www.x-coders.com
    
    
    "benMachine" wrote:
    
    > Hello 
    > 
    > 
    > I work with blend and i want to know how to change value, for exemple i have 
    > an image with a height of 150 and a width of 200. I want to insert in textbox 
    > content the negative valeu of the width of the image : -200 but I don't want 
    > to generate C# code.
    > 
    > It's possible, there is an option to do this?
    > 
    > 
    > sorry for my english
    > 
    > Thank you
    > 
    > Bye
    > 
    > Ben
    Monday, February 25, 2008 4:27 PM