Click here to Skip to main content
15,887,416 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Problem in Show/Hide Control in a WPF User Control Pin
Ashfaque Hussain1-Jul-15 18:54
Ashfaque Hussain1-Jul-15 18:54 
QuestionHiding Few of control in UserControl Pin
Ashfaque Hussain26-Jun-15 0:16
Ashfaque Hussain26-Jun-15 0:16 
Questioni want make Online examination system so which module we used help me .and it work flow of the system Pin
Member 1178790023-Jun-15 18:38
Member 1178790023-Jun-15 18:38 
AnswerRe: i want make Online examination system so which module we used help me .and it work flow of the system Pin
Mycroft Holmes23-Jun-15 20:07
professionalMycroft Holmes23-Jun-15 20:07 
QuestionWPF Expander ExpandDirection Problem Pin
Kevin Marois22-Jun-15 12:56
professionalKevin Marois22-Jun-15 12:56 
AnswerRe: WPF Expander ExpandDirection Problem Pin
Pete O'Hanlon22-Jun-15 19:03
mvePete O'Hanlon22-Jun-15 19:03 
GeneralRe: WPF Expander ExpandDirection Problem Pin
Kevin Marois23-Jun-15 4:21
professionalKevin Marois23-Jun-15 4:21 
GeneralRe: WPF Expander ExpandDirection Problem Pin
Kevin Marois23-Jun-15 5:01
professionalKevin Marois23-Jun-15 5:01 
This is pretty close[^], but there's still a problem:
<Expander Grid.Row="1"
            Grid.Column="2"
            x:Name="expander"
            BorderThickness="1" 
            BorderBrush="SteelBlue" 
            Background="White"
            ExpandDirection="Down"
            IsExpanded="False"
            HorizontalAlignment="Right"
            Margin="0,0,5,7">

<pre>
<Expander.Effect>
    <DropShadowEffect/>
</Expander.Effect>

<Expander.Style>
    <Style  TargetType="Expander">
        <Setter Property="Header" Value="My Stuff"/>
        <Style.Triggers>
            <Trigger Property="IsExpanded" Value="False">
                <Setter Property="Header" Value=""/>
            </Trigger>
        </Style.Triggers>
    </Style>
</Expander.Style>

<Expander.Header>
    <TextBlock Text="Sensors">

        <TextBlock.Style>
            <Style TargetType="TextBlock">
                <Style.Triggers>
                    <DataTrigger Binding="{Binding Path=IsExpanded, RelativeSource={RelativeSource TemplatedParent}}"
                                    Value="False">
                        <Setter Property="LayoutTransform">
                            <Setter.Value>
                                <RotateTransform Angle="90"/>
                            </Setter.Value>
                        </Setter>
                    </DataTrigger>
                </Style.Triggers>
            </Style>
        </TextBlock.Style>

    </TextBlock>
</Expander.Header>

<f6cc:FalconSensorList Width="150"/>




Now, the when expanded the header is at the top, and the content is below it. So far so good.

However, when NOT expanded, the header text appears horizontal - the rotate isn't working.
https://onedrive.live.com/redir?resid=F6FBCF1880A16630!238&authkey=!ANQDHrjshc7s5AI&v=3&ithint=photo%2cpng

Any idea what's wrong with the transform?
If it's not broken, fix it until it is

AnswerRe: WPF Expander ExpandDirection Problem Pin
maddymaddy1428-Jun-15 21:16
maddymaddy1428-Jun-15 21:16 
QuestionGlobal Exception Handling Pin
Kevin Marois19-Jun-15 12:24
professionalKevin Marois19-Jun-15 12:24 
QuestionRe: Global Exception Handling Pin
Richard Deeming22-Jun-15 1:23
mveRichard Deeming22-Jun-15 1:23 
AnswerRe: Global Exception Handling Pin
Kevin Marois22-Jun-15 3:50
professionalKevin Marois22-Jun-15 3:50 
GeneralRe: Global Exception Handling Pin
Richard Deeming22-Jun-15 3:55
mveRichard Deeming22-Jun-15 3:55 
GeneralRe: Global Exception Handling Pin
Kevin Marois22-Jun-15 3:56
professionalKevin Marois22-Jun-15 3:56 
AnswerRe: Global Exception Handling Pin
maddymaddy1428-Jun-15 23:39
maddymaddy1428-Jun-15 23:39 
QuestionWPF Register Controls Pin
Kevin Marois19-Jun-15 5:15
professionalKevin Marois19-Jun-15 5:15 
QuestionDual Range Slider Control Pin
Kevin Marois19-Jun-15 4:50
professionalKevin Marois19-Jun-15 4:50 
QuestionDual Thumb Slider Pin
Kevin Marois17-Jun-15 13:10
professionalKevin Marois17-Jun-15 13:10 
QuestionCalculate ListBoxItem Height Pin
Kevin Marois17-Jun-15 6:43
professionalKevin Marois17-Jun-15 6:43 
AnswerRe: Calculate ListBoxItem Height Pin
Richard Deeming17-Jun-15 7:54
mveRichard Deeming17-Jun-15 7:54 
GeneralRe: Calculate ListBoxItem Height Pin
Kevin Marois17-Jun-15 8:07
professionalKevin Marois17-Jun-15 8:07 
QuestionFIPS Error Pin
#realJSOP11-Jun-15 3:41
mve#realJSOP11-Jun-15 3:41 
AnswerRe: FIPS Error Pin
Richard Deeming11-Jun-15 4:24
mveRichard Deeming11-Jun-15 4:24 
GeneralRe: FIPS Error Pin
#realJSOP11-Jun-15 4:42
mve#realJSOP11-Jun-15 4:42 
QuestionHow to get Data from web-server to Silverlight-App Pin
Frygreen10-Jun-15 10:31
Frygreen10-Jun-15 10:31 

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.