Ładny brzuch

Wykonuje tutorial z SDK Silverlighta pod tytulem 'Creating Clock Graphics Using Expression Blend'. Doszedlem juz do ostatniego kroku w ktorym mialem pozmianiac troche kod. Kod podobno mial wprawic wskazowki mojego zegara w ruch.


The clock hands are created with Path elements. Find the clock hand paths in the XAML. If there is already a RotateTransform applied to the path, give it a name using the syntax in the following code, and leave the rest of the code alone for now. Name the elements secondHandTransform, minuteHandTransform, and hourHandTransform, respectively. If a RotateTransform does not already exist, add one, as shown in the following code.

Copy Code
<!-- Second Hand -->
<Path x:Name="SecondHand" Stretch="Fill" Stroke="#FFFF0000" StrokeThickness="5" Width="71" Height="54"
Canvas.Left="149" Canvas.Top="279" Data="M252,242 L298,183" RenderTransformOrigin="1.287,-0.266">
<Path.RenderTransform>
<RotateTransform x:Name="secondHandTransform"/>
</Path.RenderTransform>
</Path>


Dodalem wiec podobny kod i przy kompilacji dostalem blad o multiple lines. Jasno bo dodalem kod RotateTransform do kazdej ze wskazowek (mam sekundowa, minutowa i godzinna). Caly kod programu (wlasciwie to strony) zamieszczam tu: http://nopaste.gamedev.pl?&id=468
Odrazu dzieki za pomoc.

  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • zsf.htw.pl
  •