Sunteți pe pagina 1din 2

(dac iti da eroarea "conde not running" dai Build --> Rebuild Solution)

iti alegi un dialog,


de exemplu, http://www.tolearnfrench.com/exercises/exercise-french-2/exercise-fr
ench-6513.php
faci un rRichTextBlock pt fiecare replica, si la fiecare cuvant ii dai un nume,
care cand dai click il cuut intr-o lista si iti acare o casuta cu traducerea
si construiesti un dictionar dupa modelul:
pt testare sa scri in pagina dial1.xaml pt Windows8.1 (Desktop):
in codul XAML
la fiecare replica faci
o bordura in care se afla un RichTextBlock cu numele(x:Name) rTB1, rTB2, rTB3, .
...//cu nr impar pt primul (albastru), par pt al II-lea (verde)

<Border x:Name="bord1" BorderBrush="#FFCBCBCB" BorderThickness="1" HorizontalAli


gnment="Right" Height="72" Margin="0,154,10,0" VerticalAlignment="Top" Width="44
2" Background="#FF2DA1CD">
<RichTextBlock x:Name="rTB1" IsTextSelectionEnabled="False"
Margin="0,21,5,25"
TextAlignment="Justify"
FontSize="20"
Tapped="UIElement_OnTapped" Foreground="White" PointerPr
essed="rTB_PointerPressed" PointerReleased="rTB_PointerReleased" HorizontalAlign
ment="Right" Width="410">
<Paragraph >
<Run x:Name="La" Text="La"/>//pt fiecare cuvant faci un
"Run x:Name" care e egal cu cuvantul, daca cuv de repeta, pui numele cuv si la
sfarsit un 1,2,... , ex:{ <Run x:Name="voyelle" Text="voyelle"/> <Run x:Name="vo
yelle1" Text="voyelle"/> }
<Run x:Name="voyelle" Text="voyelle />
...
...
</Paragraph>
</RichTextBlock>
</Border>

//am scris deja 2 borduri, le poti copia, si schimbi doar numele si textul
! cand scrii codul Xaml scoate comentariile (in XAML da eroare)
iar apoi construiesti dictionarul:
in cod (dial.xaml.cs) :
in fuctia BuildDictionaryString();
scri traducre dupa modelul:
dictionary_string[0, 0] = "0";//in fr
dictionary_string[0, 1] = "0";//in en
dictionary_string[0, 2] = "0";//in ro
//al doilea
dictionary_string[1, 0] = "voyelle";
dictionary_string[1, 1] = "vowel";

dictionary_string[1, 2] = "vocala";
cuviintele scurte(si, la) nu le mai traduci