Click here to Skip to main content
15,914,165 members
Home / Discussions / WPF
   

WPF

 
QuestionMicrosoft.Silverlight.CSharp.targets" was not found Error Pin
Vimalsoft(Pty) Ltd1-Dec-08 1:51
professionalVimalsoft(Pty) Ltd1-Dec-08 1:51 
AnswerRe: Microsoft.Silverlight.CSharp.targets" was not found Error Pin
Vimalsoft(Pty) Ltd1-Dec-08 2:13
professionalVimalsoft(Pty) Ltd1-Dec-08 2:13 
QuestionHow Win32 app calls WPF dll [modified] Pin
viashivan1-Dec-08 1:40
viashivan1-Dec-08 1:40 
QuestionCarousel in Silverlight Pin
Padmanabh Ganorkar30-Nov-08 22:11
Padmanabh Ganorkar30-Nov-08 22:11 
AnswerRe: Carousel in Silverlight Pin
Syed Mehroz Alam30-Nov-08 22:24
Syed Mehroz Alam30-Nov-08 22:24 
GeneralRe: Carousel in Silverlight Pin
Paul Conrad1-Dec-08 6:50
professionalPaul Conrad1-Dec-08 6:50 
AnswerRe: Carousel in Silverlight Pin
Ge3ks22-Dec-08 3:49
Ge3ks22-Dec-08 3:49 
QuestionHow to change property of other element Pin
Jammni+30-Nov-08 10:53
Jammni+30-Nov-08 10:53 
Hi all,

I'm quite new to WPF and have a small problem with the template for the ComboBox control. I'm trying to change the ComboBox's border color, when the text box has the keyboard focus. Unfortunately, VS tells me, that I'm addressing an unknown item.

Here's a small code snippet to explain it:

<ControlTemplate TargetType="{x:Type ComboBox}">
<Grid>
<Border Background="Green" x:Name="ComboBoxBorder">
<Grid>
<ToggleButton ... />
<TextBox Visibility="Hidden" x:Name="PART_EditableTextBox" ...>
<TextBox.Template>
<ControlTemplate>
<ControlTemplate.Triggers>
<Trigger Property="UIElement.IsKeyboardFocused" Value="True">
<Setter Property="Background" TargetName="ComboBoxBorder" Value="Blue" />
</Trigger>
</ControlTemplate.Triggers>
<ScrollViewer x:Name="PART_ContentHost" Focusable="false" />
</ControlTemplate>
</TextBox.Template>
</TextBox>
</Grid>
</Border>
</Grid>
<!-- more to follow (pop up...) -->
</ControlTemplate>

If somebody could explain to me, why I cannot address the ComboBoxBorder item from the TextBox, that would be really nice. And I would appreciate a working piece of code Smile | :)

Thanks in advance,
Jammni+
AnswerRe: How to change property of other element Pin
Gideon Engelberth1-Dec-08 3:04
Gideon Engelberth1-Dec-08 3:04 
GeneralRe: How to change property of other element Pin
Jammni+1-Dec-08 4:18
Jammni+1-Dec-08 4:18 
GeneralRe: How to change property of other element Pin
Gideon Engelberth1-Dec-08 11:47
Gideon Engelberth1-Dec-08 11:47 
GeneralRe: How to change property of other element Pin
Jammni+1-Dec-08 21:59
Jammni+1-Dec-08 21:59 
QuestionWCF ServiceHost shuts down when not in console application Pin
Yoav Ben Zvi30-Nov-08 10:18
Yoav Ben Zvi30-Nov-08 10:18 
AnswerRe: WCF ServiceHost shuts down when not in console application Pin
Pete O'Hanlon30-Nov-08 10:31
mvePete O'Hanlon30-Nov-08 10:31 
GeneralRe: WCF ServiceHost shuts down when not in console application Pin
Yoav Ben Zvi1-Dec-08 8:41
Yoav Ben Zvi1-Dec-08 8:41 
GeneralRe: WCF ServiceHost shuts down when not in console application Pin
Pete O'Hanlon1-Dec-08 8:53
mvePete O'Hanlon1-Dec-08 8:53 
Question[Message Deleted] Pin
energeticsridhar28-Nov-08 18:39
energeticsridhar28-Nov-08 18:39 
GeneralRe: How to get Desktop items on WPF Treeview Pin
Pete O'Hanlon29-Nov-08 10:59
mvePete O'Hanlon29-Nov-08 10:59 
QuestionWhat are the 3 biggest advantages of WPF over ASP.NET/Winforms??? Pin
Member 391904928-Nov-08 7:22
Member 391904928-Nov-08 7:22 
AnswerRe: What are the 3 biggest advantages of WPF over ASP.NET/Winforms??? Pin
Pete O'Hanlon28-Nov-08 8:40
mvePete O'Hanlon28-Nov-08 8:40 
GeneralRe: What are the 3 biggest advantages of WPF over ASP.NET/Winforms??? Pin
Paul Conrad29-Nov-08 5:23
professionalPaul Conrad29-Nov-08 5:23 
QuestionHELP! EXECUTION FAILS! :( Pin
User-243813328-Nov-08 3:52
User-243813328-Nov-08 3:52 
AnswerRe: HELP! EXECUTION FAILS! :( Pin
Pete O'Hanlon28-Nov-08 4:26
mvePete O'Hanlon28-Nov-08 4:26 
GeneralRe: HELP! EXECUTION FAILS! :( Pin
User-243813328-Nov-08 5:16
User-243813328-Nov-08 5:16 
QuestionGood Grief ... Crack.NET Pin
Jammer28-Nov-08 0:18
Jammer28-Nov-08 0:18 

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.