Click here to Skip to main content
15,917,544 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: WPF(add a message or text in the xmal elements like ellipse at run time in windows application. Pin
Ch.Gayatri Subudhi4-May-09 22:02
Ch.Gayatri Subudhi4-May-09 22:02 
GeneralSir i got anothr solution regarding this... Pin
Ch.Gayatri Subudhi5-May-09 20:25
Ch.Gayatri Subudhi5-May-09 20:25 
GeneralRe: WPF(add a message or text in the xmal elements like ellipse at run time in windows application. Pin
Ch.Gayatri Subudhi5-May-09 1:13
Ch.Gayatri Subudhi5-May-09 1:13 
QuestionUserControl Databinding Pin
mikla5213-May-09 3:14
mikla5213-May-09 3:14 
AnswerRe: UserControl Databinding Pin
Mark Salsbery3-May-09 8:31
Mark Salsbery3-May-09 8:31 
GeneralRe: UserControl Databinding Pin
mikla5213-May-09 9:08
mikla5213-May-09 9:08 
GeneralRe: UserControl Databinding Pin
Mark Salsbery3-May-09 9:40
Mark Salsbery3-May-09 9:40 
GeneralRe: UserControl Databinding Pin
mikla5213-May-09 10:25
mikla5213-May-09 10:25 
GeneralRe: UserControl Databinding Pin
mikla5213-May-09 21:04
mikla5213-May-09 21:04 
AnswerRe: UserControl Databinding Pin
Kunal Chowdhury «IN»13-May-09 20:42
professionalKunal Chowdhury «IN»13-May-09 20:42 
AnswerRe: UserControl Databinding Pin
Gideon Engelberth4-May-09 3:24
Gideon Engelberth4-May-09 3:24 
QuestionHow to read images in a single image file (.png format) Pin
seshu4code2-May-09 23:58
seshu4code2-May-09 23:58 
AnswerRe: How to read images in a single image file (.png format) Pin
Mark Salsbery3-May-09 8:47
Mark Salsbery3-May-09 8:47 
GeneralRe: How to read images in a single image file (.png format) Pin
seshu4code6-May-09 23:49
seshu4code6-May-09 23:49 
QuestionListView (with GridView) - Bound to Observable Collection [modified] Pin
b4ip2-May-09 19:56
b4ip2-May-09 19:56 
QuestionWPF and XNA physic engines ! Pin
Mohammad Dayyan2-May-09 12:06
Mohammad Dayyan2-May-09 12:06 
RantVS2008's inability to update service references [modified] Pin
Ravi Bhavnani2-May-09 9:30
professionalRavi Bhavnani2-May-09 9:30 
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
professional#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


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.