Click here to Skip to main content
15,912,400 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: How can we get richTextbox 's text in WPF ? Pin
Member 46946271-Jul-08 22:39
Member 46946271-Jul-08 22:39 
GeneralRe: How can we get richTextbox 's text in WPF ? Pin
Mohammad Dayyan2-Jul-08 2:57
Mohammad Dayyan2-Jul-08 2:57 
QuestionHow can we convert a string to the Brush ? Pin
Mohammad Dayyan1-Jul-08 15:22
Mohammad Dayyan1-Jul-08 15:22 
AnswerRe: How can we convert a string to the Brush ? Pin
Brian Griggs1-Jul-08 15:57
Brian Griggs1-Jul-08 15:57 
GeneralRe: How can we convert a string to the Brush ? Pin
Mohammad Dayyan1-Jul-08 16:05
Mohammad Dayyan1-Jul-08 16:05 
Question[Message Deleted] Pin
cristi2go30-Jun-08 7:13
cristi2go30-Jun-08 7:13 
AnswerRe: VB.Net 3D in wpf Pin
Paul Conrad1-Jul-08 17:03
professionalPaul Conrad1-Jul-08 17:03 
QuestionTrigger problems [modified] Pin
GDavy30-Jun-08 1:34
GDavy30-Jun-08 1:34 
---modified. Original problem with this is solved, but I got a new problem with the same xaml ---

Ok I just started in WPF so it might be very obvious.

I made a UserControl which contains also a ToggleButton, when that togglebutton is pressed I want to alter the background of the border control.

<UserControl x:Class="StoreDBViewer.MyTableControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
     >
    <Grid>
      <Border x:Name="MyCtrlBorder" BorderThickness="1" BorderBrush="Gray" Background="Green">
         
          <!-- Here a bunch of controls and stuff is added -->
          <ToggleButton x:Name="btnToggle" Margin="5,5" Click="OnToggleColView">
             Button text
          </ToggleButton>
      </Border>
    </Grid>
    <UserControl.Triggers>
      <Trigger SourceName="btnToggle" Property="ToggleButton.IsChecked" Value="True">
        <Setter TargetName="MyCtrlBorder" Property="Border.Background" Value="Blue" />
      </Trigger>
    </UserControl.Triggers>
</UserControl>


This compiles correctly, but as soon as I run the app an exception is thrown( the exception is not thrown if I comment out the Trigger part).
Does anyone know what might be wrong here?

Regards,
Davy

modified on Monday, June 30, 2008 8:55 AM

AnswerRe: Trigger problems Pin
Gideon Engelberth30-Jun-08 5:52
Gideon Engelberth30-Jun-08 5:52 
GeneralRe: Trigger problems Pin
GDavy30-Jun-08 20:42
GDavy30-Jun-08 20:42 
QuestionErrors appear sometimes [modified] Pin
jamie55029-Jun-08 3:29
jamie55029-Jun-08 3:29 
AnswerRe: Errors appear sometimes Pin
Insincere Dave29-Jun-08 4:59
Insincere Dave29-Jun-08 4:59 
QuestionWhy does ToggleButton fail to obey binding when clicked? Pin
RNEELY27-Jun-08 7:29
RNEELY27-Jun-08 7:29 
AnswerRe: Why does ToggleButton fail to obey binding when clicked? Pin
Insincere Dave27-Jun-08 16:45
Insincere Dave27-Jun-08 16:45 
QuestionExport WPF grid to HTML page !! Pin
Karunish25-Jun-08 1:23
Karunish25-Jun-08 1:23 
AnswerRe: Export WPF grid to HTML page !! Pin
Pete O'Hanlon25-Jun-08 1:43
mvePete O'Hanlon25-Jun-08 1:43 
QuestionWhat is killing all WPF command CanExecutes? Pin
artwallacex24-Jun-08 13:41
artwallacex24-Jun-08 13:41 
AnswerRe: What is killing all WPF command CanExecutes? Pin
RNEELY27-Jun-08 7:33
RNEELY27-Jun-08 7:33 
GeneralRe: What is killing all WPF command CanExecutes? Pin
artwallacex27-Jun-08 11:03
artwallacex27-Jun-08 11:03 
GeneralRe: What is killing all WPF command CanExecutes? Pin
RNEELY27-Jun-08 13:38
RNEELY27-Jun-08 13:38 
GeneralRe: What is killing all WPF command CanExecutes? Pin
artwallacex27-Jun-08 14:07
artwallacex27-Jun-08 14:07 
QuestionWrapping a WPF GUI component to use it with a HID different than mouse? Pin
Member 367304824-Jun-08 7:07
Member 367304824-Jun-08 7:07 
QuestionMaking Refresh on Viewport3D Pin
sondos0123-Jun-08 23:46
sondos0123-Jun-08 23:46 
QuestionLoading DWF/DXF/DWG file Pin
Member 384581521-Jun-08 0:15
Member 384581521-Jun-08 0:15 
AnswerRe: Loading DWF/DXF/DWG file Pin
Pete O'Hanlon21-Jun-08 0:51
mvePete O'Hanlon21-Jun-08 0:51 

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.