Click here to Skip to main content
15,880,796 members
Home / Discussions / WPF
   

WPF

 
Questioncombining a textblock and textblock into one control Pin
Sutton Mehaffey23-Mar-12 19:58
Sutton Mehaffey23-Mar-12 19:58 
AnswerRe: combining a textblock and textblock into one control Pin
Mycroft Holmes23-Mar-12 21:58
professionalMycroft Holmes23-Mar-12 21:58 
GeneralRe: combining a textblock and textblock into one control Pin
Abhinav S24-Mar-12 0:10
Abhinav S24-Mar-12 0:10 
GeneralRe: combining a textblock and textblock into one control Pin
Sutton Mehaffey24-Mar-12 5:37
Sutton Mehaffey24-Mar-12 5:37 
GeneralRe: combining a textblock and textblock into one control Pin
Mycroft Holmes24-Mar-12 13:23
professionalMycroft Holmes24-Mar-12 13:23 
GeneralRe: combining a textblock and textblock into one control Pin
Sutton Mehaffey24-Mar-12 13:49
Sutton Mehaffey24-Mar-12 13:49 
GeneralRe: combining a textblock and textblock into one control Pin
Mycroft Holmes24-Mar-12 16:05
professionalMycroft Holmes24-Mar-12 16:05 
GeneralRe: combining a textblock and textblock into one control Pin
Sutton Mehaffey26-Mar-12 14:27
Sutton Mehaffey26-Mar-12 14:27 
I got it working with Binding. Thanks. However, I have an unresolved issue concerning the binding.

I have a global array of zone descriptions[64]. Upon entering a window, the array is copied to a temp array of descriptions. The array is bound to to a List, which includes a zone number and the zone description (called zdentry - the description is named ZoneDesc). The user can edit the description, and I want to copy the change back into the temp description variable. But, I can't figure out where the change variable is. No form of zdentry or ZoneDesc is valid and creates errors. And, it won't let me 'set' anything in the ZoneDescEntry class either.

Any ideas? Thanks.

C#
void CreateZoneDescTable()
        {
            List<ZoneDescEntry> zdentry = new List<ZoneDescEntry>();

            for (byte i = 0; i < 5; i++)
            {
                zdentry.Add(new ZoneDescEntry()
                {
                    ZoneNum = "Zone " + (i+1),
                    ZoneDesc = zonedescrip[i]
                });
            }

            if (GlobalVars.system_type == 'D')
            {
                for (byte i = 5; i < 64; i++)
                {
                    zdentry.Add(new ZoneDescEntry()
                    {
                        ZoneNum = "Zone " + (i+1),
                        ZoneDesc = zonedescrip[i]
                    });
                }
            }
            ZoneDescTable.ItemsSource = zdentry;
        }

        public class ZoneDescEntry
        {
            public string ZoneNum { get; set; }
            public string ZoneDesc { get; set; }
        }
}

GeneralRe: combining a textblock and textblock into one control Pin
Mycroft Holmes26-Mar-12 15:24
professionalMycroft Holmes26-Mar-12 15:24 
GeneralRe: combining a textblock and textblock into one control Pin
Sutton Mehaffey26-Mar-12 16:01
Sutton Mehaffey26-Mar-12 16:01 
AnswerRe: combining a textblock and textblock into one control Pin
Abhinav S24-Mar-12 0:25
Abhinav S24-Mar-12 0:25 
QuestionPrism and Login Page problem Pin
gio_ab23-Mar-12 3:25
gio_ab23-Mar-12 3:25 
AnswerRe: Prism and Login Page problem Pin
Abhinav S23-Mar-12 17:27
Abhinav S23-Mar-12 17:27 
QuestionWPF C1Flexgrid Pin
Greeshma M J22-Mar-12 20:24
Greeshma M J22-Mar-12 20:24 
AnswerRe: WPF C1Flexgrid Pin
RugbyLeague23-Mar-12 6:51
RugbyLeague23-Mar-12 6:51 
GeneralRe: WPF C1Flexgrid Pin
Greeshma M J25-Mar-12 18:26
Greeshma M J25-Mar-12 18:26 
QuestionUpload images to Server Pin
sudheesh kumar s22-Mar-12 2:51
sudheesh kumar s22-Mar-12 2:51 
QuestionExpander Styling Question Pin
Kevin Marois20-Mar-12 14:13
professionalKevin Marois20-Mar-12 14:13 
AnswerRe: Expander Styling Question Pin
Varsha Ramnani21-Mar-12 0:49
professionalVarsha Ramnani21-Mar-12 0:49 
GeneralRe: Expander Styling Question Pin
Abhinav S21-Mar-12 4:14
Abhinav S21-Mar-12 4:14 
GeneralRe: Expander Styling Question Pin
Kevin Marois21-Mar-12 7:25
professionalKevin Marois21-Mar-12 7:25 
QuestionWPF Path Pin
Kevin Marois20-Mar-12 8:44
professionalKevin Marois20-Mar-12 8:44 
AnswerRe: WPF Path Pin
Pete O'Hanlon20-Mar-12 11:42
mvePete O'Hanlon20-Mar-12 11:42 
GeneralRe: WPF Path Pin
Kevin Marois20-Mar-12 11:44
professionalKevin Marois20-Mar-12 11:44 
GeneralRe: WPF Path Pin
Kevin Marois20-Mar-12 11:56
professionalKevin Marois20-Mar-12 11:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.