Click here to Skip to main content
15,898,222 members
Home / Discussions / C#
   

C#

 
GeneralRe: for get the tool bar Pin
cool_kp23-Mar-12 6:05
cool_kp23-Mar-12 6:05 
AnswerRe: for get the tool bar Pin
Vipin_Arora23-Mar-12 0:54
Vipin_Arora23-Mar-12 0:54 
GeneralRe: for get the tool bar Pin
cool_kp23-Mar-12 6:12
cool_kp23-Mar-12 6:12 
AnswerRe: for get the tool bar Pin
ProEnggSoft23-Mar-12 2:06
ProEnggSoft23-Mar-12 2:06 
GeneralRe: for get the tool bar Pin
Vipin_Arora23-Mar-12 2:18
Vipin_Arora23-Mar-12 2:18 
GeneralRe: for get the tool bar Pin
ProEnggSoft24-Mar-12 0:00
ProEnggSoft24-Mar-12 0:00 
GeneralRe: for get the tool bar Pin
cool_kp23-Mar-12 6:10
cool_kp23-Mar-12 6:10 
QuestionAdding multiple controls to a ListBox without using WPF Pin
Sutton Mehaffey22-Mar-12 19:54
Sutton Mehaffey22-Mar-12 19:54 
I'm trying to create a ListBox on the fly without using any XAML code. I got it working - almost. What I have is an array of TextBoxes of 'Zone Descriptions'. I can put those into the ListBox as ListBoxItems, and it works great - no problem.
 
I want to add at the front of the TextBox a TextBlock or header that says 'Zone 1' or whatever the zone is along with the TextBox, which is user changeable. I have an array of TextBlocks (I probably could have had strings just as well). But, I can't (or don't know how to) adjust the ListBoxItem.Content to hold both the TextBlock and TextBox combo. LBI[i].Content = TBlkZoneDesc[i] + TBxZoneDesc[i] is what I want to do, but that syntax is not allowed. Doing either one separately works fine, but not both.
 
Do anyone have a suggestion on how to do that?
 

            ListBox LBZoneDesc = new ListBox();
            LBZoneDesc.Width = 300;
            LBZoneDesc.Height = 240;
            Grid.SetColumn(LBZoneDesc,0);
            Grid.SetRow(LBZoneDesc,2);
 
            ListBoxItem[] LBI = new ListBoxItem[64];
            for (byte i = 0; i < 5; i++)
            {
                LBI[i] = new ListBoxItem();
                LBI[i].Padding = new Thickness(2);
                // LBI[i].Content = TBlkZoneDesc[i];
                LBI[i].Content = TBxZoneDesc[i];
                LBZoneDesc.Items.Add(LBI[i]);               
            }
            C0Grid.Children.Add(LBZoneDesc);

QuestionIssue with regular expression Pin
Sebastian T Xavier22-Mar-12 18:36
Sebastian T Xavier22-Mar-12 18:36 
AnswerRe: Issue with regular expression Pin
Sebastian T Xavier22-Mar-12 18:45
Sebastian T Xavier22-Mar-12 18:45 
AnswerRe: Issue with regular expression Pin
Luc Pattyn22-Mar-12 18:49
sitebuilderLuc Pattyn22-Mar-12 18:49 
JokeRe: Issue with regular expression Pin
Peter_in_278022-Mar-12 18:50
professionalPeter_in_278022-Mar-12 18:50 
AnswerRe: Issue with regular expression Pin
Peter_in_278022-Mar-12 18:50
professionalPeter_in_278022-Mar-12 18:50 
GeneralRe: Issue with regular expression Pin
Sebastian T Xavier22-Mar-12 19:00
Sebastian T Xavier22-Mar-12 19:00 
AnswerRe: Issue with regular expression Pin
ProEnggSoft23-Mar-12 2:17
ProEnggSoft23-Mar-12 2:17 
GeneralRe: Issue with regular expression Pin
Sebastian T Xavier23-Mar-12 2:41
Sebastian T Xavier23-Mar-12 2:41 
GeneralRe: Issue with regular expression Pin
ProEnggSoft24-Mar-12 20:48
ProEnggSoft24-Mar-12 20:48 
QuestionWPF error on VS2008 Pin
jsdhgkjdsahklg22-Mar-12 3:41
jsdhgkjdsahklg22-Mar-12 3:41 
AnswerRe: WPF error on VS2008 Pin
Ravi Bhavnani22-Mar-12 3:54
professionalRavi Bhavnani22-Mar-12 3:54 
GeneralRe: WPF error on VS2008 Pin
jsdhgkjdsahklg22-Mar-12 3:56
jsdhgkjdsahklg22-Mar-12 3:56 
GeneralRe: WPF error on VS2008 Pin
Ravi Bhavnani22-Mar-12 4:04
professionalRavi Bhavnani22-Mar-12 4:04 
GeneralRe: WPF error on VS2008 Pin
jsdhgkjdsahklg22-Mar-12 4:08
jsdhgkjdsahklg22-Mar-12 4:08 
GeneralRe: WPF error on VS2008 Pin
Ravi Bhavnani22-Mar-12 4:14
professionalRavi Bhavnani22-Mar-12 4:14 
GeneralRe: WPF error on VS2008 Pin
jsdhgkjdsahklg22-Mar-12 4:17
jsdhgkjdsahklg22-Mar-12 4:17 
AnswerRe: WPF error on VS2008 Pin
Abhinav S22-Mar-12 4:44
Abhinav S22-Mar-12 4:44 

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.