Click here to Skip to main content
15,911,485 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: How to create a wpf application Pin
Mycroft Holmes26-Jul-11 23:25
professionalMycroft Holmes26-Jul-11 23:25 
QuestionAuto Scrolling to Bottom Pin
AmbiguousName26-Jul-11 20:01
AmbiguousName26-Jul-11 20:01 
AnswerRe: Auto Scrolling to Bottom Pin
Simon Bang Terkildsen27-Jul-11 22:39
Simon Bang Terkildsen27-Jul-11 22:39 
AnswerRe: Auto Scrolling to Bottom Pin
AmbiguousName28-Jul-11 1:45
AmbiguousName28-Jul-11 1:45 
AnswerRe: Auto Scrolling to Bottom Pin
SledgeHammer0128-Jul-11 5:08
SledgeHammer0128-Jul-11 5:08 
QuestionMigration from RadScheduler to RadScheduleView Pin
Jeyakumarbics126-Jul-11 19:23
Jeyakumarbics126-Jul-11 19:23 
AnswerRe: Migration from RadScheduler to RadScheduleView Pin
Mycroft Holmes26-Jul-11 23:23
professionalMycroft Holmes26-Jul-11 23:23 
AnswerRe: Migration from RadScheduler to RadScheduleView Pin
Michał Zalewski31-Jul-11 2:39
Michał Zalewski31-Jul-11 2:39 
QuestionAppointmentCreate event in RadScheduleView Pin
Jeyakumarbics126-Jul-11 19:14
Jeyakumarbics126-Jul-11 19:14 
QuestionHow to get the column in runtime? Pin
sadas232341s26-Jul-11 8:27
sadas232341s26-Jul-11 8:27 
AnswerRe: How to get the column in runtime? Pin
Mark Salsbery26-Jul-11 9:08
Mark Salsbery26-Jul-11 9:08 
AnswerRe: How to get the column in runtime? Pin
Ian Shlasko26-Jul-11 10:24
Ian Shlasko26-Jul-11 10:24 
QuestionWPF ComboBox Synchronization Problem Pin
AndyCSharp26-Jul-11 1:24
AndyCSharp26-Jul-11 1:24 
AnswerRe: WPF ComboBox Synchronization Problem Pin
Simon Bang Terkildsen26-Jul-11 3:52
Simon Bang Terkildsen26-Jul-11 3:52 
QuestionHow to Update Rows in Silverlight 4 Data grid Using WCF service ? Pin
Sanjay_8724-Jul-11 21:24
Sanjay_8724-Jul-11 21:24 
AnswerRe: How to Update Rows in Silverlight 4 Data grid Using WCF service ? Pin
Abhinav S24-Jul-11 21:41
Abhinav S24-Jul-11 21:41 
Questioncan't edit tabitem Pin
david131324-Jul-11 5:35
david131324-Jul-11 5:35 
AnswerRe: can't edit tabitem Pin
Mark Salsbery24-Jul-11 8:19
Mark Salsbery24-Jul-11 8:19 
GeneralRe: can't edit tabitem Pin
david131324-Jul-11 8:26
david131324-Jul-11 8:26 
GeneralRe: can't edit tabitem Pin
Mark Salsbery24-Jul-11 8:28
Mark Salsbery24-Jul-11 8:28 
QuestionClosable Tabs Pin
jgalak23-Jul-11 8:03
jgalak23-Jul-11 8:03 
I'm trying to make a tab with a close button (a la Firefox and pretty much everything else that uses tabs), and was trying to follow this tutorial:

How to add a Close button to a WPF TabItem[^]

Unfortnately, it doesn't seem to work. The problem appears to be that in the ClosableHeader class there is a button, defined in the xaml, with
Name="button_close"
It's then referenced in the C# code for the ClosableTab class as follows:

// Create an instance of the usercontrol
CloseableHeader closableTabHeader = new CloseableHeader();

// Assign the usercontrol to the tab header
this.Header = closableTabHeader;

// Attach to the CloseableHeader events (Mouse Enter/Leave, Button Click, and Label resize)
closableTabHeader.button_close.MouseEnter += new MouseEventHandler(button_close_MouseEnter);
closableTabHeader.button_close.MouseLeave += new MouseEventHandler(button_close_MouseLeave);
closableTabHeader.button_close.Click += new RoutedEventHandler(button_close_Click);
closableTabHeader.label_TabTitle.SizeChanged += new sizeChangedEventHandler(label_TabTitle_SizeChanged);


This generates compile-time errors for every line that contains the text
closableTabHeader.button_close
with the message "'WGPM.Views.CloseableHeader' does not contain a definition for 'button_close' and no extension method 'button_close' accepting a first argument of type 'WGPM.Views.CloseableHeader' could be found (are you missing a using directive or an assembly reference?)" (WGPM.Views is the namespace I'm using).

What am I missing? Can I not just refer to a named control like that?

Thanks,
Juliean.
AnswerRe: Closable Tabs Pin
SledgeHammer0123-Jul-11 11:42
SledgeHammer0123-Jul-11 11:42 
GeneralRe: Closable Tabs Pin
jgalak23-Jul-11 14:48
jgalak23-Jul-11 14:48 
GeneralRe: Closable Tabs Pin
SledgeHammer0123-Jul-11 15:01
SledgeHammer0123-Jul-11 15:01 
GeneralRe: Closable Tabs Pin
Mark Salsbery23-Jul-11 15:36
Mark Salsbery23-Jul-11 15:36 

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.