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

WPF

 
GeneralRe: VS2008's inability to update service references Pin
Mark Salsbery4-May-09 9:59
Mark Salsbery4-May-09 9:59 
GeneralRe: VS2008's inability to update service references Pin
Ravi Bhavnani4-May-09 10:01
professionalRavi Bhavnani4-May-09 10:01 
GeneralRe: VS2008's inability to update service references Pin
Ravi Bhavnani4-May-09 18:17
professionalRavi Bhavnani4-May-09 18:17 
QuestionReading items into a TreeView from an ACCESS database Pin
Etienne_1232-May-09 3:35
Etienne_1232-May-09 3:35 
AnswerRe: Reading items into a TreeView from an ACCESS database Pin
Pete O'Hanlon2-May-09 9:57
mvePete O'Hanlon2-May-09 9:57 
QuestionUserControl question Pin
RugbyLeague1-May-09 4:54
RugbyLeague1-May-09 4:54 
AnswerRe: UserControl question Pin
AghaKhan1-May-09 5:32
AghaKhan1-May-09 5:32 
AnswerRe: UserControl question Pin
#realJSOP1-May-09 5:34
mve#realJSOP1-May-09 5:34 
That's not the way it works. What you want is a Style that has your border settings in it, like this:

<Style TargetType="{x:Type Border}" x:Key="MyBorder">
        <Setter Property="Background" Value="#E7E3ED" />
        <Setter Property="BorderBrush" Value="Black" />
        <Setter Property="BorderThickness" Value="1" />
        <Setter Property="CornerRadius" Value="8,8,8,8" />
    </Style>


and then do this in your UserControl:

<Border Margin="0,31,0,0" Width="222" Height="32" HorizontalAlignment="Left"
           VerticalAlignment="Top" Style="{DynamicResource UDPBorder}">
    <TextBlock>Hello</TextBlock>
</Border>





"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001


GeneralRe: UserControl question Pin
RugbyLeague1-May-09 5:38
RugbyLeague1-May-09 5:38 
GeneralRe: UserControl question Pin
AghaKhan1-May-09 6:01
AghaKhan1-May-09 6:01 
AnswerRe: UserControl question Pin
Gideon Engelberth1-May-09 6:03
Gideon Engelberth1-May-09 6:03 
GeneralRe: UserControl question Pin
AghaKhan1-May-09 6:17
AghaKhan1-May-09 6:17 
GeneralRe: UserControl question Pin
Gideon Engelberth1-May-09 11:49
Gideon Engelberth1-May-09 11:49 
GeneralRe: UserControl question Pin
AghaKhan1-May-09 18:56
AghaKhan1-May-09 18:56 
GeneralRe: UserControl question Pin
RugbyLeague1-May-09 9:19
RugbyLeague1-May-09 9:19 
GeneralRe: UserControl question Pin
Gideon Engelberth1-May-09 17:09
Gideon Engelberth1-May-09 17:09 
AnswerRe: UserControl question Pin
fjparisIII3-May-09 2:22
fjparisIII3-May-09 2:22 
QuestionMy WCF client deadlock Pin
Richard Dutton1-May-09 4:32
Richard Dutton1-May-09 4:32 
QuestionDependency properties!Performance issue Pin
pioner30-Apr-09 19:48
pioner30-Apr-09 19:48 
AnswerRe: Dependency properties!Performance issue Pin
Gideon Engelberth1-May-09 3:27
Gideon Engelberth1-May-09 3:27 
QuestionSaving image transform without losing metadata Pin
fjparisIII30-Apr-09 6:35
fjparisIII30-Apr-09 6:35 
AnswerRe: Saving image transform without losing metadata Pin
fjparisIII30-Apr-09 8:47
fjparisIII30-Apr-09 8:47 
GeneralRe: Saving image transform without losing metadata (NOT SOLVED: where is everybody?) Pin
fjparisIII30-Apr-09 15:01
fjparisIII30-Apr-09 15:01 
GeneralRe: Saving image transform without losing metadata Pin
fjparisIII2-May-09 17:16
fjparisIII2-May-09 17:16 
GeneralRe: Saving image transform without losing metadata Pin
fjparisIII3-May-09 16:53
fjparisIII3-May-09 16:53 

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.