Click here to Skip to main content
15,897,371 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: WPF for Windows CE 6.0 Pin
kiranpmody2-Aug-10 9:48
kiranpmody2-Aug-10 9:48 
QuestionCannot find governing FrameworkElement or FrameworkContentElement Pin
stofel2-Aug-10 4:15
stofel2-Aug-10 4:15 
QuestionAre there any benchmarks available for measuring general WPF performance on different systems? Pin
Erik2-Aug-10 3:11
Erik2-Aug-10 3:11 
QuestionStrange error occures after writting (seemingly) working piece of xaml code in a WPF application. IDE=Visual Studio 2010 Pin
makumazan842-Aug-10 2:40
makumazan842-Aug-10 2:40 
QuestionWPF - Popup moveable? Pin
devvvy1-Aug-10 15:53
devvvy1-Aug-10 15:53 
AnswerRe: WPF - Popup moveable? Pin
Abhinav S1-Aug-10 17:11
Abhinav S1-Aug-10 17:11 
GeneralRe: WPF - Popup moveable? Pin
devvvy2-Aug-10 21:29
devvvy2-Aug-10 21:29 
QuestionVisual State Manager - What's Wrong? Pin
#realJSOP31-Jul-10 10:16
professional#realJSOP31-Jul-10 10:16 
I'm using VS2010 and SL4. I have the following XAML, and I'm trying to implement visual state management, but it appears I don't understand how it works.

XML
<Border CornerRadius="8" BorderBrush="Black" BorderThickness="1" Background="SlateBlue" 
        Height="35" HorizontalAlignment="Stretch" VerticalAlignment="Top">
    <ItemsControl x:Name="myItems" >
        <ItemsControl.ItemsPanel>
            <ItemsPanelTemplate>
                <StackPanel Orientation="Horizontal" Background="Transparent"/>
            </ItemsPanelTemplate>
        </ItemsControl.ItemsPanel>
        <ItemsControl.ItemTemplate>
            <DataTemplate>
                <Grid>
                    <VisualStateManager.VisualStateGroups>
                        <VisualStateGroup x:Name="States">
                            <VisualState x:Name="MouseOver">
                                <Storyboard >
                                    <ColorAnimation Storyboard.TargetName="itemBorder" 
                                                    Duration="0:0:1" To="Yellow" 
                                                    Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)"/>
                                    <ColorAnimation Storyboard.TargetName="itemContent" 
                                                    Duration="0:0:1" To="Black" 
                                                    Storyboard.TargetProperty="(TextBlock.Foreground).(SolidColorBrush.Color)"/>
                                </Storyboard>
                            </VisualState>
                            <VisualState x:Name="Normal">
                                <Storyboard >
                                    <ColorAnimation Storyboard.TargetName="itemBorder" Duration="0:0:1" 
                                                    Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)"/>
                                    <ColorAnimation Storyboard.TargetName="itemContent" Duration="0:0:1" 
                                                    Storyboard.TargetProperty="(TextBlock.Foreground).(SolidColorBrush.Color)"/>
                                </Storyboard>
                            </VisualState>
                        </VisualStateGroup>
                    </VisualStateManager.VisualStateGroups>
                    <Border x:Name="itemBorder" Background="Transparent" Margin="5,0,0,0">
                        <Border.RenderTransform>
                            <CompositeTransform/>
                        </Border.RenderTransform>
                        <TextBlock x:Name="itemContent" Text="{Binding}" 
                                    FontSize="13" Padding="0" Margin="5,0,0,0" 
                                    HorizontalAlignment="Left" 
                                    VerticalAlignment="Center" 
                                    Foreground="White" />
                    </Border>
                </Grid>
            </DataTemplate>
        </ItemsControl.ItemTemplate>
        <ItemsControl.Items>
            <core:String>Item 1</core:String>
            <core:String>Item 2</core:String>
            <core:String>Item 3</core:String>
            <core:String>Item 4</core:String>
        </ItemsControl.Items>
    </ItemsControl>
</Border>

.45 ACP - because shooting twice is just silly
-----
"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." - J. Jystad, 2001

AnswerRe: Visual State Manager - What's Wrong? Pin
Abhinav S31-Jul-10 20:35
Abhinav S31-Jul-10 20:35 
GeneralRe: Visual State Manager - What's Wrong? Pin
#realJSOP1-Aug-10 1:34
professional#realJSOP1-Aug-10 1:34 
AnswerRe: Visual State Manager - What's Wrong? Pin
Abhinav S1-Aug-10 4:01
Abhinav S1-Aug-10 4:01 
QuestionFilling out extent of margins. Pin
dbrenth29-Jul-10 9:16
dbrenth29-Jul-10 9:16 
AnswerRe: Filling out extent of margins. Pin
dbrenth29-Jul-10 9:18
dbrenth29-Jul-10 9:18 
GeneralRe: Filling out extent of margins. Pin
BRShroyer29-Jul-10 9:30
BRShroyer29-Jul-10 9:30 
GeneralRe: Filling out extent of margins. Pin
dbrenth29-Jul-10 9:32
dbrenth29-Jul-10 9:32 
AnswerRe: Filling out extent of margins. Pin
BRShroyer29-Jul-10 9:26
BRShroyer29-Jul-10 9:26 
QuestionCreating a Binding Resource Pin
BRShroyer29-Jul-10 8:20
BRShroyer29-Jul-10 8:20 
AnswerRe: Creating a Binding Resource Pin
Abhishek Sur29-Jul-10 10:17
professionalAbhishek Sur29-Jul-10 10:17 
QuestionBinding xaml property to class property Pin
#realJSOP29-Jul-10 5:15
professional#realJSOP29-Jul-10 5:15 
AnswerRe: Binding xaml property to class property Pin
BRShroyer29-Jul-10 7:57
BRShroyer29-Jul-10 7:57 
GeneralRe: Binding xaml property to class property Pin
#realJSOP29-Jul-10 8:16
professional#realJSOP29-Jul-10 8:16 
GeneralRe: Binding xaml property to class property Pin
BRShroyer29-Jul-10 9:02
BRShroyer29-Jul-10 9:02 
QuestionSilverlight : Changing theme at run-time Pin
Prasoon Chaudhary28-Jul-10 23:24
Prasoon Chaudhary28-Jul-10 23:24 
QuestionAlternative to "DropDownWidth" Property for Combo Box in WPF. Pin
dashingsidds28-Jul-10 23:01
dashingsidds28-Jul-10 23:01 
QuestionHow to do UI Design that fix in all the screen size Pin
Joe Rozario28-Jul-10 20:56
Joe Rozario28-Jul-10 20:56 

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.