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

WPF

 
GeneralRe: Modify a XML file in Silverlight 2 ? Pin
Mohammad Dayyan18-Apr-09 9:18
Mohammad Dayyan18-Apr-09 9:18 
GeneralRe: Modify a XML file in Silverlight 2 ? Pin
Braulio Dez18-Apr-09 9:38
Braulio Dez18-Apr-09 9:38 
GeneralRe: Modify a XML file in Silverlight 2 ? Pin
Mohammad Dayyan18-Apr-09 9:47
Mohammad Dayyan18-Apr-09 9:47 
GeneralRe: Modify a XML file in Silverlight 2 ? Pin
Braulio Dez19-Apr-09 8:33
Braulio Dez19-Apr-09 8:33 
GeneralRe: Modify a XML file in Silverlight 2 ? Pin
Mohammad Dayyan19-Apr-09 9:12
Mohammad Dayyan19-Apr-09 9:12 
GeneralRe: Modify a XML file in Silverlight 2 ? Pin
Braulio Dez19-Apr-09 9:28
Braulio Dez19-Apr-09 9:28 
GeneralRe: Modify a XML file in Silverlight 2 ? Pin
Mohammad Dayyan19-Apr-09 9:46
Mohammad Dayyan19-Apr-09 9:46 
QuestionToggleButton with Images [SOLVED - sort of] Pin
#realJSOP14-Apr-09 9:58
professional#realJSOP14-Apr-09 9:58 
AnswerRe: ToggleButton with Images Pin
Eslam Afifi14-Apr-09 11:05
Eslam Afifi14-Apr-09 11:05 
AnswerRe: ToggleButton with Images [SOLVED - sort of] Pin
DemonPT30-Aug-11 5:07
DemonPT30-Aug-11 5:07 
QuestionVisual Studio 2008/Expression Blend Wierdness [SOLVED!!!] Pin
BlitzPackage14-Apr-09 7:23
BlitzPackage14-Apr-09 7:23 
AnswerRe: Visual Studio 2008/Expression Blend Wierdness Pin
BlitzPackage14-Apr-09 7:53
BlitzPackage14-Apr-09 7:53 
QuestionCanvas or Grid inside Viewport3D? Pin
emptythetill14-Apr-09 5:38
emptythetill14-Apr-09 5:38 
AnswerRe: Canvas or Grid inside Viewport3D? Pin
sivaddrahcir20-Apr-09 8:17
sivaddrahcir20-Apr-09 8:17 
QuestionReading a XML file from IsolatedStorage ? [modified] Pin
Mohammad Dayyan13-Apr-09 18:00
Mohammad Dayyan13-Apr-09 18:00 
QuestionRe: Reading a XML file from IsolatedStorage ? Pin
Mark Salsbery13-Apr-09 20:08
Mark Salsbery13-Apr-09 20:08 
AnswerRe: Reading a XML file from IsolatedStorage ? Pin
Mohammad Dayyan13-Apr-09 21:53
Mohammad Dayyan13-Apr-09 21:53 
AnswerRe: Reading a XML file from IsolatedStorage ? Pin
Mohammad Dayyan13-Apr-09 22:34
Mohammad Dayyan13-Apr-09 22:34 
QuestionRe: Reading a XML file from IsolatedStorage ? Pin
Mark Salsbery14-Apr-09 6:24
Mark Salsbery14-Apr-09 6:24 
AnswerRe: Reading a XML file from IsolatedStorage ? Pin
Mohammad Dayyan14-Apr-09 10:56
Mohammad Dayyan14-Apr-09 10:56 
QuestionXAML - TreeView with CheckBoxes Pin
Jack Kril13-Apr-09 13:26
Jack Kril13-Apr-09 13:26 
AnswerRe: XAML - TreeView with CheckBoxes Pin
Eslam Afifi13-Apr-09 13:59
Eslam Afifi13-Apr-09 13:59 
QuestionClipping To Rounded Corners Pin
#realJSOP13-Apr-09 5:27
professional#realJSOP13-Apr-09 5:27 
I have the following code

<Border Margin="3,4,0,0" Height="205" VerticalAlignment="Top" BorderBrush="Black"
             BorderThickness="2" HorizontalAlignment="Left" Width="891" CornerRadius="8,8,8,8">
    <StackPanel Orientation="Horizontal" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" >
        <StackPanel.Clip>
            <RectangleGeometry Rect="0,0,891,205" RadiusX="8" RadiusY="8"></RectangleGeometry>
        </StackPanel.Clip>
        <Label Height="26" Name="label1" Width="205" HorizontalAlignment="Left" VerticalAlignment="Top"
                 HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontFamily="Arial" FontSize="14"
                 FontStyle="Italic" FontWeight="Bold" Content="Contacts" Background="Black" Foreground="LightSteelBlue"
                 ClipToBounds="True">
            <Label.LayoutTransform>
                <RotateTransform Angle="270" />
            </Label.LayoutTransform>
        </Label>
        <telerik:RadGridView  Name="gridviewContacts" AllowDrop="False" Height="203" VerticalAlignment="Top"
                 Margin="0,0,0,0" AutoGenerateColumns="False" FontFamily="Arial" ClipToBounds="False"
                 Width="863">
            <telerik:Theming.Theme>
                <telerik:VistaTheme />
            </telerik:Theming.Theme>
        </telerik:RadGridView>
    </StackPanel>
</Border>


Essentially, I have a Border that contains a horizontally oriented StackPanel that contains a Label and a Telerik RadGridView. I want to put rounded corners on the Border element, and clip all of the other elements within the Border to not render outside the rounded corners.

The code above contains my latest non-working attempt. I tried to use the ClipToBounds property, but that doesn't seem to do anything.


"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


AnswerRe: Clipping To Rounded Corners [modified] Pin
Eslam Afifi13-Apr-09 7:42
Eslam Afifi13-Apr-09 7:42 
AnswerRe: Clipping To Rounded Corners Pin
Mark Salsbery13-Apr-09 9:45
Mark Salsbery13-Apr-09 9:45 

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.