AiNoTame

...for love
posts - 9, comments - 40, trackbacks - 0

Binding del controllo Slider in Silverlight4

Oggi mi sono imbattuto in questo fastidioso problema: avete mai usato uno slider? se sì, avete mai messo in Binding le dependency property Minimum e Maximum oltre che a Value? vi è andato al primo colpo? fortunati …

Il problema principale è l’ordine con cui si imposta. In ordine si dovranno impostare i binding per:

  • Maximum
  • Minimum
  • Value

Se così non fate, Silverlight si perde qualcosa per strada Smile. Una corretta dichiarazione è quindi:

<Slider Maximum="{Binding Path=Max}" Minimum="{Binding Path=Min}" Value="{Binding Path=Value, Mode=TwoWay}" />

 

Se, come me, provate a impostare prima Minimum e poi Maximum, noterete che il valore di Maximum non viene impostato (anzi, se debuggate Maximum verrà impostato a zero).

Spero non perdiate tutto il tempo che io ho perso per capire il problema.

ps: in WPF4 è order independent.

Print | posted on Tuesday, August 09, 2011 12:57 AM | Filed Under [ Silverlight Binding ]

Feedback

Gravatar

# re: Binding del controllo Slider in Silverlight4

Different people in every country receive the business loans in various creditors, just because that's simple and comfortable.
8/17/2011 7:09 AM | Hart33Lacey
Gravatar

# re: Binding del controllo Slider in Silverlight4

Coming together is a beginning. Go on together is progress. Operating teamwise is mercy. Don’t ravage your existence, call to us and with you, we’ll turn a newborn crew for writing term paper
9/28/2011 2:30 AM | essays
Gravatar

# re: Binding del controllo Slider in Silverlight4

Set your own life more easy get the business loans and everything you require.
12/28/2011 7:19 AM | loans
Gravatar

# re: Binding del controllo Slider in Silverlight4

It demand hard efforts and time to create the thesis mba close to this post, therefore, I would better to find the dissertation service to reach the PhD degree.
12/31/2011 3:14 AM | dissertation
Gravatar

# Writing

Nice Blog,I Like For Putting This Together! "This is obviously one Nice post. Thanks for the valuable information and insights you have so provided here. Keep it up!"
1/24/2012 9:17 AM | Writing Help
Gravatar

# re: Binding del controllo Slider in Silverlight4

It’s hard a bit to make pre written essays and I suggest to buy an essay about this post at the paper writing services.
2/13/2012 6:54 AM | buy essay

Post Comment

Title  
Name  
Email
Url
Comment   
Please add 7 and 4 and type the answer here:

Powered by:
Powered By Subtext Powered By ASP.NET