<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.dotnetzone.gr:443/cs/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Silverlight</title><link>https://www.dotnetzone.gr:443/cs/forums/168/ShowForum.aspx</link><description>Θέματα ανάπτυξης με το Silverlight Framework</description><dc:language>el</dc:language><generator>CommunityServer 2.1 SP3 (Build: 20423.1)</generator><item><title>Απ: Silverlight ListBox από RadioButton</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/54156.aspx</link><pubDate>Thu, 01 Oct 2009 06:54:39 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:54156</guid><dc:creator>Dimitris Papadimitriou</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/54156.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=168&amp;PostID=54156</wfw:commentRss><description>Και βέβαια στο Silverlight 3 μου παίζει... έτσι απλά!</description></item><item><title>Απ: Silverlight ListBox από RadioButton</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/54104.aspx</link><pubDate>Wed, 30 Sep 2009 02:35:17 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:54104</guid><dc:creator>KelMan</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/54104.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=168&amp;PostID=54104</wfw:commentRss><description>&lt;P&gt;Βρε! Και σε ρώτησα σε τι SL παίζεις!&lt;/P&gt;</description></item><item><title>Απ: Silverlight ListBox από RadioButton</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/54103.aspx</link><pubDate>Wed, 30 Sep 2009 02:20:52 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:54103</guid><dc:creator>Dimitris Papadimitriou</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/54103.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=168&amp;PostID=54103</wfw:commentRss><description>&lt;P&gt;&lt;STRIKE&gt;Το έψαξα στο connect και βρήκα το εξής: &lt;/STRIKE&gt;&lt;A href="https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=102304"&gt;&lt;STRIKE&gt;RadioButton GroupName not rendered in GridView&lt;/STRIKE&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRIKE&gt;Δεν ξέρω αν αυτό που λέει ισχύει και για το ListBox: Each row in a GridView is its own naming container so the controls' names don't collide. However, RadioButtons do not support spanning multiple naming containers and having their groupname attribute still work correctly. We will be looking at solving the RadioButton GroupName/multiple naming container issue in future versions of the product.&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRIKE&gt;Έχει και ένα workaround σε ένα link που είναι broken.&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;Καλά άσχετο! Αυτό είναι για ASP.NET!&lt;/P&gt;</description></item><item><title>Απ: Silverlight ListBox από RadioButton</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/54101.aspx</link><pubDate>Wed, 30 Sep 2009 02:11:31 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:54101</guid><dc:creator>Dimitris Papadimitriou</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/54101.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=168&amp;PostID=54101</wfw:commentRss><description>&lt;P&gt;Την πάτησα σαν αρχάριος και δεν ανέφερα ότι δουλεύω με Silverlight 2. Στο 2 κάνοντας copy/paste την XAML που γράφω και τον κώδικα του Παναγιώτη δεν παίζει! Μάλλον θα το αφήσω έτσι και θα γίνει fix by update μόλις κάνω το upgrade.&lt;/P&gt;
&lt;P&gt;thanks!&lt;/P&gt;</description></item><item><title>Απ: Silverlight ListBox από RadioButton</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/54100.aspx</link><pubDate>Wed, 30 Sep 2009 01:57:53 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:54100</guid><dc:creator>Παναγιώτης Καναβός</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/54100.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=168&amp;PostID=54100</wfw:commentRss><description>&lt;P&gt;Σ' εμένα παίζει χωρίς πρόβλημα! Έφτιαξα ένα project σε Silverlight 3, με το ListBox όπως στο πρώτο παράδειγμα και στο code behind:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:black;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;    &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;public&lt;/SPAN&gt; partial &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;class&lt;/SPAN&gt; MainPage : UserControl
    {
        &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;public&lt;/SPAN&gt; List&amp;lt;Option&amp;gt; Options
        {
            get; 
            set;
        }
        &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;public&lt;/SPAN&gt; MainPage()
        {
            FillOptions();
            InitializeComponent();
            OptionsListBox.DataContext &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:red;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;this&lt;/SPAN&gt;;
        }

        &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;public&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;void&lt;/SPAN&gt; FillOptions()
        {
            Options=&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;new&lt;/SPAN&gt; List&amp;lt;Option&amp;gt;();
            Options.Add(&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;new&lt;/SPAN&gt; Option{Text=&lt;SPAN style="BACKGROUND-COLOR:#e4e4e4;FONT-FAMILY:Courier New;COLOR:#666666;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;"aaa"&lt;/SPAN&gt;,IsSelected=&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;false&lt;/SPAN&gt;});
            Options.Add(&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;new&lt;/SPAN&gt; Option { Text &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:red;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR:#e4e4e4;FONT-FAMILY:Courier New;COLOR:#666666;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;"bbb"&lt;/SPAN&gt;, IsSelected &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:red;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;true&lt;/SPAN&gt; });
            Options.Add(&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;new&lt;/SPAN&gt; Option { Text &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:red;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR:#e4e4e4;FONT-FAMILY:Courier New;COLOR:#666666;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;"ccc"&lt;/SPAN&gt;, IsSelected &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:red;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;false&lt;/SPAN&gt; });
        }
    }&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;Η Option είναι η παρακάτω&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:black;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;    &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;public&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;class&lt;/SPAN&gt; Option:INotifyPropertyChanged
    {
        &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;private&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;string&lt;/SPAN&gt; _Text;
        &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;public&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;string&lt;/SPAN&gt; Text
        {
            get { &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;return&lt;/SPAN&gt; _Text;} 
            set { _Text &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:red;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;=&lt;/SPAN&gt; value;
                NotifyPropertyChanged(&lt;SPAN style="BACKGROUND-COLOR:#e4e4e4;FONT-FAMILY:Courier New;COLOR:#666666;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;"Text"&lt;/SPAN&gt;);
            } 
        }

        &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;private&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;bool&lt;/SPAN&gt; _IsSelected;
        &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;public&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;bool&lt;/SPAN&gt; IsSelected
        {
            get { &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;return&lt;/SPAN&gt; _IsSelected; }
            set { _IsSelected &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:red;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;=&lt;/SPAN&gt; value;
                NotifyPropertyChanged(&lt;SPAN style="BACKGROUND-COLOR:#e4e4e4;FONT-FAMILY:Courier New;COLOR:#666666;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;"IsSelected"&lt;/SPAN&gt;);
            }
        }

        &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;public&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;event&lt;/SPAN&gt; PropertyChangedEventHandler PropertyChanged;

        &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;public&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;void&lt;/SPAN&gt; NotifyPropertyChanged(&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;string&lt;/SPAN&gt; propertyName)
        {
            &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;if&lt;/SPAN&gt; (PropertyChanged !&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:red;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;null&lt;/SPAN&gt;)
            {
                PropertyChanged(&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;this&lt;/SPAN&gt;,
                    &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;new&lt;/SPAN&gt; PropertyChangedEventArgs(propertyName));
            }
        }

    }&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;Τα radio buttons μου παίζουν κανονικά. Παίζαν κανονικά και όταν δοκίμασα με OneWay binding, και χωρίς INotifyPropertyChanged, και με ObservableCollection. Στο τέλος τα μετέτρεψα όλα έτσι ώστε να είναι όσο το δυνατόν πιο κοντά στο παράδειγμα του Δημήτρη και τα Radiobuttons δουλεύουν πάντα σωστά.&lt;/P&gt;</description></item><item><title>Απ: Silverlight ListBox από RadioButton</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/54098.aspx</link><pubDate>Wed, 30 Sep 2009 01:23:08 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:54098</guid><dc:creator>KelMan</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/54098.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=168&amp;PostID=54098</wfw:commentRss><description>&lt;P&gt;Αυτό που λες είναι αλήθεια, όταν το περιεχόμενο του listbox είναι στατικό. Κατά το databinding χάνεται η πληροφορία του group και γι αυτό συμβαίνει αυτό. Είσαι σίγουρος ότι δεν παίζει η δεύτερη λύση; Διαφορετικά μόλις βρω λίγο χρόνο θα ανοίξω ένα Silverlight 2 project που έχω υλοποιήσει κάτι τέτοιο αλλά είναι κομματάκι περίπλοκο με τα διάφορα templates.&lt;/P&gt;</description></item><item><title>Απ: Silverlight ListBox από RadioButton</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/54096.aspx</link><pubDate>Wed, 30 Sep 2009 00:46:38 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:54096</guid><dc:creator>Dimitris Papadimitriou</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/54096.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=168&amp;PostID=54096</wfw:commentRss><description>&lt;P&gt;Προσέχοντας τον κώδικα που κάνω raise το PropertyChanged event, όντως λειτουργεί σωστά και ακριβώς μετά γίνεται hit και ο getter του property που σημαίνε ότι το UI πιάνει το PropertyChanged και ζητάει την τιμή του ενημερωμένου property.&lt;/P&gt;
&lt;P&gt;Οπότε το πρόβλημα που παραμένει είναι γιατί δεν γίνονται uncheck τα υπόλοιπα radiobuttons, εφόσον ανήκουν στο ίδιο group.&lt;/P&gt;</description></item><item><title>Απ: Silverlight ListBox από RadioButton</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/54094.aspx</link><pubDate>Wed, 30 Sep 2009 00:32:34 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:54094</guid><dc:creator>Dimitris Papadimitriou</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/54094.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=168&amp;PostID=54094</wfw:commentRss><description>&lt;P&gt;Ναι, κάνω implement το INotifyPropertyChanged. Και ναι, η λίστα μου δεν αλλάζει μέγεθος λόγω business requirement. Μάλιστα σκεφτόμουν να την κάνω array για να μην δίνει λάθος εντύπωση.&lt;/P&gt;
&lt;P&gt;Τι στο καλό γίνεται;!&lt;/P&gt;
&lt;P&gt;edited: Όχι, δεν βοήθησε ούτε η δεύτερη πρόταση.&lt;/P&gt;</description></item><item><title>Απ: Silverlight ListBox από RadioButton</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/54093.aspx</link><pubDate>Wed, 30 Sep 2009 00:26:57 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:54093</guid><dc:creator>KelMan</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/54093.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=168&amp;PostID=54093</wfw:commentRss><description>&lt;P&gt;Δεν είμαι πάνω σε υπολογιστή και τώρα που το σκέφτομαι μπορεί και πάλι να μην παίζει αυτό που σου πρότεινα... Αν δεν παίξει, δοκίμασε κάτι πιο απλό, να&amp;nbsp;κάνεις bind το IsChecked πάνω στο IsSelected του item στο οποίο ανήκει, κάτι σαν το παρακάτω:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:black;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:maroon;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;RadioButton&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:red;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;Content&lt;/SPAN&gt;&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;="{Binding Text}"&lt;/SPAN&gt; 
             &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:red;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;GroupName&lt;/SPAN&gt;&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;="test"&lt;/SPAN&gt;
             &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:red;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;IsChecked&lt;/SPAN&gt;&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=IsSelected, Mode=TwoWay}"&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;Το κόλπο είναι στο RelativeSource binding. Ελπίζω μόνο να γράφεις Silverlight 3.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:black;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/PRE&gt;</description></item><item><title>Απ: Silverlight ListBox από RadioButton</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/54092.aspx</link><pubDate>Wed, 30 Sep 2009 00:11:30 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:54092</guid><dc:creator>KelMan</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/54092.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=168&amp;PostID=54092</wfw:commentRss><description>&lt;P&gt;Το Option object σου, κάνει implement το INotifyPropertyChanged; Γιατί αν όχι, τότε το TwoWay στην πράξη είναι one way. Επίσης, έχε υπόψην ότι αν το collection από objects αλλάξει (αφαιρεθούν/προστεθούν items), δεν θα δεις την αλλαγή στο πλήθος των binded objects καθώς to List(T) δεν κάνει implement το INotifyCollectionChanged. Καλύτερα να χρησιμοποιήσεις ObservableCollection&amp;lt;T&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Silverlight ListBox από RadioButton</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/54087.aspx</link><pubDate>Tue, 29 Sep 2009 23:24:02 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:54087</guid><dc:creator>Dimitris Papadimitriou</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/54087.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=168&amp;PostID=54087</wfw:commentRss><description>&lt;P&gt;Κοιτάξτε λίγο την παρακάτω απλή xaml:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:black;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:maroon;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;ListBox&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:red;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;Name&lt;/SPAN&gt;&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;="OptionsListBox"&lt;/SPAN&gt; ItemsSource="{Binding Options}" &amp;gt;
    &amp;lt;ListBox.ItemTemplate&amp;gt;
        &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:maroon;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;DataTemplate&lt;/SPAN&gt;&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;&amp;gt;&lt;/SPAN&gt;
            &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:maroon;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;StackPanel&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:red;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;Orientation&lt;/SPAN&gt;&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;="Horizontal"&lt;/SPAN&gt;&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;&amp;gt;&lt;/SPAN&gt;
                &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:maroon;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;RadioButton&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:red;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;Content&lt;/SPAN&gt;&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;="{Binding Text}"&lt;/SPAN&gt; 
                             &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:red;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;GroupName&lt;/SPAN&gt;&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;="test"&lt;/SPAN&gt;
                             &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:red;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;IsChecked&lt;/SPAN&gt;&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;="{Binding IsSelected, Mode=TwoWay}"&lt;/SPAN&gt;&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;&amp;gt;&lt;/SPAN&gt;
                &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:maroon;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;RadioButton&lt;/SPAN&gt;&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;&amp;gt;&lt;/SPAN&gt;
            &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:maroon;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;StackPanel&lt;/SPAN&gt;&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;&amp;gt;&lt;/SPAN&gt;
        &lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:maroon;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;DataTemplate&lt;/SPAN&gt;&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;&amp;gt;&lt;/SPAN&gt;
    &amp;lt;/ListBox.ItemTemplate&amp;gt;
&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:maroon;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;ListBox&lt;/SPAN&gt;&lt;SPAN style="BACKGROUND-COLOR:transparent;FONT-FAMILY:Courier New;COLOR:blue;FONT-SIZE:11px;FONT-WEIGHT:normal;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;Το binding γίνεται κανονικότατα και μάλιστα TwoWay. Το αποτέλεσμα είναι ένα List από RadioButtons bound με ένα List&amp;lt;Option&amp;gt; όπου το Option.IsSelected είναι bound με το IsChecked του RadioButton.&lt;/P&gt;
&lt;P&gt;Το πρόβλημά μου είναι ότι όταν γίνεται μια επιλογή ενός RadioButton, τα υπόλοιπα RadioButtons της λίστας δεν ξετσεκάρονται!&lt;/P&gt;
&lt;P&gt;Έχετε καμιά ιδέα γιατί;&lt;/P&gt;</description></item></channel></rss>