home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 2
Skins and Design
BlueVision
Titanium Extended
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="ge2301" data-source="post: 1168284" data-attributes="member: 145639"><p>I fear the power menu can not be implemented with the new style easily as it uses the SystemStateModel and all slide animations are referring to the MenuModel.</p><p>The SystemStateModel does not offer pathes as "IsMenuOpen, OpenMenu, CloseMenu, ToggleMenu" etc.</p><p></p><p>[USER=48291]@Brownard[/USER], perhaps you have an idea, but this one will be really tricky.</p><p></p><p>My temporal modifications to masterhomemenu.xaml:</p><p>[CODE=XML] <Grid x:Name="ContentPanel" Margin="0,0,10,-650" VerticalAlignment="Bottom" Grid.Row="2" Grid.Column="0"</p><p> Width="550" HorizontalAlignment="Center" DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}">></p><p> <Grid.Resources></p><p> <Storyboard x:Key="SlideDownStoryboard" FillBehavior="HoldEnd"></p><p> <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" FillBehavior="HoldEnd" Storyboard.TargetName="TopPanel" Storyboard.TargetProperty="RenderTransform.Y"></p><p> <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/></p><p> <SplineDoubleKeyFrame KeyTime="00:00:00.20" Value="850"/></p><p> </DoubleAnimationUsingKeyFrames></p><p> </Storyboard></p><p> </Grid.Resources></p><p> <Grid.Triggers></p><p> <Trigger Property="IsKeyboardFocusWithin" Value="True"></p><p> <Trigger.EnterActions></p><p> <TriggerCommand Command="{Command Source={StaticResource MenuModel}, Path=OpenMenu}"/></p><p> </Trigger.EnterActions></p><p> <Trigger.ExitActions></p><p> <TriggerCommand Command="{Command Source={StaticResource MenuModel}, Path=CloseMenu}"/></p><p> </Trigger.ExitActions></p><p> </Trigger></p><p> <!-- Setting default state of menu to hidden --></p><p> <EventTrigger RoutedEvent="Screen.Show"></p><p> <TriggerCommand Command="{Command Source={StaticResource MenuModel}, Path=CloseMenu}"/></p><p> </EventTrigger></p><p> <!-- Slide-In animation when the MenuModel.ShowMenu gets true --></p><p> <DataTrigger Binding="{Binding Source={StaticResource MenuModel},Path=IsMenuOpen}" Value="True"></p><p> <DataTrigger.EnterActions></p><p> <BeginStoryboard x:Name="SlideDown_BeginStoryboard" Storyboard="{ThemeResource SlideDownStoryboard}"/></p><p> </DataTrigger.EnterActions></p><p> <DataTrigger.ExitActions></p><p> <StopStoryboard BeginStoryboardName="SlideDown_BeginStoryboard"/></p><p> </DataTrigger.ExitActions></p><p> <Setter TargetName="PowerMenu" Property="SetFocusPrio" Value="Highest" /></p><p> <Setter TargetName="PowerMenu" Property="SetFocus" Value="True" /></p><p> </DataTrigger></p><p> </Grid.Triggers></p><p> <Grid.ColumnDefinitions></p><p> <ColumnDefinition Width="550"/></p><p> </Grid.ColumnDefinitions></p><p> <Grid.RowDefinitions></p><p> <RowDefinition Height="800"/></p><p> </Grid.RowDefinitions></p><p> <Grid.RenderTransform></p><p> <TranslateTransform Y="0"/></p><p> </Grid.RenderTransform></p><p> <!--Image Source="menu_fade.png" Stretch="Fill" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="-65,-168,-50,-50"></p><p> </Image--></p><p> <Rectangle RadiusX="{ThemeResource DialogBorderCornerRadius}" RadiusY="{ThemeResource DialogBorderCornerRadius}"</p><p> HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="0,0,67,0"></p><p> <Rectangle.Fill></p><p> <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"></p><p> <GradientStop Color="{ThemeResource DialogBackgroundGradient1Color}"/></p><p> <GradientStop Color="{ThemeResource DialogBackgroundGradient2Color}" Offset="1"/></p><p> </LinearGradientBrush></p><p> </Rectangle.Fill></p><p> </Rectangle></p><p> </p><p> <ListView x:Name="PowerMenu" Style="{ThemeResource HiddenMenuListViewStyle}" Margin="20,10,80,10"</p><p> HorizontalAlignment="Stretch" VerticalAlignment="Stretch" SetFocusPrio="Default"</p><p> ItemsSource="{Binding Source={StaticResource SystemStateModel},Path=ShutdownItems,Mode=OneTime}"></p><p> <ListView.Resources></p><p> <CommandBridge x:Key="Menu_Command" Source="{StaticResource SystemStateModel}"</p><p> Path="Select"</p><p> Parameters="{LateBoundValue BindingValue={Binding}}"/></p><p> </ListView.Resources></p><p> </ListView></p><p> <Button Grid.Row="0" Grid.Column="0" Style="{ThemeResource ButtonWideStyle_GrowOnly}" Opacity="1" VerticalAlignment="Top"</p><p> Command="{Command Source={Service WorkflowManager},Path=NavigatePush,Parameters=BBFA7DB7-5055-48D5-A904-0F0C79849369}"</p><p> IsVisible="{Binding Source={StaticResource MenuModel},Path=!IsHome}"</p><p> IsEnabled="{Binding Source={StaticResource MenuModel},Path=!IsMenuOpen}"></p><p> <Image Source="ShutdownIcon.png" /></p><p> </Button></p><p> </Grid>[/CODE]</p></blockquote><p></p>
[QUOTE="ge2301, post: 1168284, member: 145639"] I fear the power menu can not be implemented with the new style easily as it uses the SystemStateModel and all slide animations are referring to the MenuModel. The SystemStateModel does not offer pathes as "IsMenuOpen, OpenMenu, CloseMenu, ToggleMenu" etc. [USER=48291]@Brownard[/USER], perhaps you have an idea, but this one will be really tricky. My temporal modifications to masterhomemenu.xaml: [CODE=XML] <Grid x:Name="ContentPanel" Margin="0,0,10,-650" VerticalAlignment="Bottom" Grid.Row="2" Grid.Column="0" Width="550" HorizontalAlignment="Center" DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}">> <Grid.Resources> <Storyboard x:Key="SlideDownStoryboard" FillBehavior="HoldEnd"> <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" FillBehavior="HoldEnd" Storyboard.TargetName="TopPanel" Storyboard.TargetProperty="RenderTransform.Y"> <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/> <SplineDoubleKeyFrame KeyTime="00:00:00.20" Value="850"/> </DoubleAnimationUsingKeyFrames> </Storyboard> </Grid.Resources> <Grid.Triggers> <Trigger Property="IsKeyboardFocusWithin" Value="True"> <Trigger.EnterActions> <TriggerCommand Command="{Command Source={StaticResource MenuModel}, Path=OpenMenu}"/> </Trigger.EnterActions> <Trigger.ExitActions> <TriggerCommand Command="{Command Source={StaticResource MenuModel}, Path=CloseMenu}"/> </Trigger.ExitActions> </Trigger> <!-- Setting default state of menu to hidden --> <EventTrigger RoutedEvent="Screen.Show"> <TriggerCommand Command="{Command Source={StaticResource MenuModel}, Path=CloseMenu}"/> </EventTrigger> <!-- Slide-In animation when the MenuModel.ShowMenu gets true --> <DataTrigger Binding="{Binding Source={StaticResource MenuModel},Path=IsMenuOpen}" Value="True"> <DataTrigger.EnterActions> <BeginStoryboard x:Name="SlideDown_BeginStoryboard" Storyboard="{ThemeResource SlideDownStoryboard}"/> </DataTrigger.EnterActions> <DataTrigger.ExitActions> <StopStoryboard BeginStoryboardName="SlideDown_BeginStoryboard"/> </DataTrigger.ExitActions> <Setter TargetName="PowerMenu" Property="SetFocusPrio" Value="Highest" /> <Setter TargetName="PowerMenu" Property="SetFocus" Value="True" /> </DataTrigger> </Grid.Triggers> <Grid.ColumnDefinitions> <ColumnDefinition Width="550"/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="800"/> </Grid.RowDefinitions> <Grid.RenderTransform> <TranslateTransform Y="0"/> </Grid.RenderTransform> <!--Image Source="menu_fade.png" Stretch="Fill" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="-65,-168,-50,-50"> </Image--> <Rectangle RadiusX="{ThemeResource DialogBorderCornerRadius}" RadiusY="{ThemeResource DialogBorderCornerRadius}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="0,0,67,0"> <Rectangle.Fill> <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"> <GradientStop Color="{ThemeResource DialogBackgroundGradient1Color}"/> <GradientStop Color="{ThemeResource DialogBackgroundGradient2Color}" Offset="1"/> </LinearGradientBrush> </Rectangle.Fill> </Rectangle> <ListView x:Name="PowerMenu" Style="{ThemeResource HiddenMenuListViewStyle}" Margin="20,10,80,10" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" SetFocusPrio="Default" ItemsSource="{Binding Source={StaticResource SystemStateModel},Path=ShutdownItems,Mode=OneTime}"> <ListView.Resources> <CommandBridge x:Key="Menu_Command" Source="{StaticResource SystemStateModel}" Path="Select" Parameters="{LateBoundValue BindingValue={Binding}}"/> </ListView.Resources> </ListView> <Button Grid.Row="0" Grid.Column="0" Style="{ThemeResource ButtonWideStyle_GrowOnly}" Opacity="1" VerticalAlignment="Top" Command="{Command Source={Service WorkflowManager},Path=NavigatePush,Parameters=BBFA7DB7-5055-48D5-A904-0F0C79849369}" IsVisible="{Binding Source={StaticResource MenuModel},Path=!IsHome}" IsEnabled="{Binding Source={StaticResource MenuModel},Path=!IsMenuOpen}"> <Image Source="ShutdownIcon.png" /> </Button> </Grid>[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Skins and Design
BlueVision
Titanium Extended
Contact us
RSS
Top
Bottom