<Scroller/>um einen
<Repeater/>zu setzen.
Sobald ich den Repeater mitdem Scroller umschliße wird nicht mehr angezeigt..
Was mache ich falsch?
Vielen Dank,
meisterbartsch
PS: Code Beispiel im Anhang!
<Scroller/>um einen
<Repeater/>zu setzen.
<Mcml xmlns="http://schemas.microsoft.com/2008/mcml" xmlns:cor="assembly://MSCorLib/System" xmlns:app="assembly://Television/Television" xmlns:controls="resx://Television/Television.Resources/Controls" xmlns:v2="assembly://TV4Home.Server.TVEInteractionLibrary.Interfaces,Version=0.1.0.0,Culture=neutral, PublicKeyToken=3cf46e400c1bd362/TV4Home.Server.TVEInteractionLibrary.Interfaces" xmlns:me="Me"> <UI Name="Guide"> <Properties> <app:GuidePage Name="Model"/> <FormLayoutInput Name="GroupsLayout" Left="Parent,0,30" Top="Parent,0,80"/> <FormLayoutInput Name="NowLayout" Left="Parent,0,30" Bottom="Parent,1,-30"/> <FormLayoutInput Name="InformationsLayout" Left="NowLayout,1,10" Bottom="Parent,1,-30" Right="Parent,1,-30"/> </Properties> <Rules> <Binding Source="[Model.Groups]" Target="[Groups.IValueRange]"/> <Binding Source="[Model.Channels.Options]" Target="[Channels.Source]"/> <Binding Target="[info.Source]" Source="[Model.Informations]"/> <!--<Condition Source="[Input.KeyFocus]" SourceValue="true"> <Actions> <Set Target="[Model.Channels.ChosenIndex]" Value="[Index.Value]"/> </Actions> </Condition>--> <!--<Rule> <Conditions> <IsValid Source="[Model.Channels.Chosen!app:Channel.Data]"/> </Conditions> <Actions> <Set Value="[Model.Channels.Chosen!app:Channel.Name]" Target="[Label.Content]"/> </Actions> </Rule>--> </Rules> <Content> <Panel Layout="Form"> <Children> <controls:Groups IValueRange="[Model.Groups]" LayoutInput="[GroupsLayout]" Name="Groups" S="400,0"/> <Scroller Orientation="Vertical" FadeSize="10" MaximumSize="0,360"> <LayoutInput > <FormLayoutInput Left="Parent,0,30" Top="Parent,0,150" Right="Parent,1,-30"/> </LayoutInput> <Children> <Repeater Name="Channels" Layout="VerticalFlow"> <Content> <Panel Layout="HorizontalFlow"> <Children> <me:item DisplayName="[RepeatedItem!app:Channel.DisplayName]" S="400,60" Index="[RepeatedItemIndex]" /> <Panel Navigation="Row"> <Children> <Scroller Orientation="Horizontal" FadeSize="10" > <Children> <Repeater Source="[RepeatedItem!app:Channel.Data]" Layout="HorizontalFlow" > <Content> <me:item Index="[RepeatedItemIndex]" DisplayName="[RepeatedItem!app:Program.Title]" S="[RepeatedItem!app:Program.Scale]"/> </Content> </Repeater> </Children> </Scroller> </Children> </Panel> </Children> </Panel> </Content> </Repeater> </Children> </Scroller> <NowPlaying ShowFullMetadata="OnFocus" LayoutInput="[NowLayout]"/> <controls:Informations ArrayListDataSet="[Model.Informations]"/> </Children> </Panel> </Content> </UI> <UI Name="item"> <Properties> <cor:String Name="DisplayName" String=""/> <Size Name="S"/> <Index Name="Index" Index="$Required"/> <Image Name="NoFocus" Source="res://ehres!EPG.CELL.BACKGROUND.DARK.PNG" /> <Image Name="Focus" Source="res://ehres!EPG.CELL.FOCUS.PNG" /> <Image Name="FocusOverlay" Source="res://ehres!EPG.CELL.FOCUS.SHADOW.PNG" /> </Properties> <Rules> <Default Target="[Input.KeyInteractive]" Value="true"/> <Binding Source="[Input.KeyFocus]" Target="[Overlay.Visible]" /> <Condition Source="[Input.KeyFocus]" SourceValue="true"> <Actions> <Set Target="[Background.Content]" Value="[Focus]"/> </Actions> </Condition> <!--<Condition Source="[Clicker.Clicking]" SourceValue="true"> <Actions> <Invoke Target="[Model.SelectedChannel]" channelid="[ChannelID]"/> </Actions> </Condition>--> </Rules> <Content> <Panel MinimumSize="[S]" MaximumSize="[S]" > <Children> <Panel> <Children> <!--<Graphic Content="[Logo]" MaximumSize="55,55" Margins="10,0,10,0"/>--> <Text Content="[DisplayName]" Color="White" Margins="10,0,10,10"/> </Children> </Panel> <Graphic Name="Background" Content="[NoFocus]" Layout="Form" Margins="1,1,1,1" /> <Graphic Name="Overlay" Content="[FocusOverlay]" Layout="Form" Margins="1,1,1,1" /> </Children> </Panel> </Content> </UI> </Mcml>http://www.mce-commu...p;id=16579denke
Bearbeitet von ehemaliges Mitglied, 12 Februar 2011 - 10:58 .
<Mcml xmlns="http://schemas.microsoft.com/2008/mcml" xmlns:cor="assembly://MSCorLib/System" xmlns:rs ="assembly://RadioStream/RadioStream" xmlns:me ="Me"> <UI Name="StationInfo"> <Properties> <rs:CStationInfo Name="CStationInfo" CStationInfo="$Required"/> <Index Name="Index" Index="$Required"/> <Image Name="NoFocus" Source="res://ehres!EPG.CELL.BACKGROUND.DARK.PNG" /> <Image Name="Focus" Source="res://ehres!EPG.CELL.FOCUS.PNG" /> <Image Name="FocusOverlay" Source="res://ehres!EPG.CELL.FOCUS.SHADOW.PNG" /> <Size Name="Size"/> </Properties> <Rules> <Default Target="[Input.KeyInteractive]" Value="true"/> <Binding Source="[Input.KeyFocus]" Target="[Overlay.Visible]" /> <Condition Source="[Input.KeyFocus]" SourceValue="true"> <Actions> <Set Target="[Background.Content]" Value="[Focus]"/> </Actions> </Condition> </Rules> <Content> <Panel MaximumSize="[Size]" > <Children> <Panel> <Layout> <GridLayout Columns="3" Orientation="Horizontal" /> </Layout> <Children> <Graphic Name="StationLogoImage" Content="[CStationInfo.StationLogo]" TouchInteractive="false" MaximumSize="60,60" MinimumSize="60,60"/> <Text Name ="StationNameText" Content="[CStationInfo.StationName]" Color ="White" Font="Sergio-UI,20,Bold"/> <Graphic Name="FavoriteImage" Content="[CStationInfo.Favorite]" TouchInteractive="false" MaximumSize="40,40" MinimumSize="40,40"/> </Children> </Panel> <Graphic Name="Background" Content="[NoFocus]" Layout="Form" Margins="1,1,1,1" /> <Graphic Name="Overlay" Content="[FocusOverlay]" Layout="Form" Margins="1,1,1,1" /> </Children> </Panel> </Content> </UI> </Mcml>
<Mcml xmlns="http://schemas.microsoft.com/2008/mcml" xmlns:cor="assembly://MsCorLib/System" xmlns:rs ="assembly://RadioStream/RadioStream" xmlns:st ="resx://RadioStream/RadioStream.Resources/StationSelection" xmlns:me="Me"> <!-- ,Version=1.0.0,Culture=Neutral,PublicKeyToken=27f898ecd1eb808a/ --> <Image Name="ImageLibrary" Source="file://x"/> <UI Name="Stations"> <Properties> <FormLayoutInput Name="ListLayout" Left="Parent,0,30" Top="Parent,0,100"/> <rs:Application Name="Application" Application="$Required"/> </Properties> <Locals> <ScrollingData Name="ScrollData"/> <ScrollingHandler Name="ScrollHandler" /> </Locals> <Rules> <Default Target="[ScrollHandler.ScrollingData]" Value="[ScrollData]"/> <Binding Target="[rptStations.Source]" Source="[Application.StationList.Options]"/> </Rules> <Content> <Panel Name="MainForm" Layout="Form"> <LayoutInput> <FormLayoutInput Left="Parent,.1" Top="Parent,.15" /> </LayoutInput> <Children> <Scroller Orientation="Vertical" ScrollingData="[ScrollData]" MaximumSize="800,500" FadeSize="-10" LayoutInput="[ListLayout]"> <Children> <Repeater Name="rptStations" Navigation="FlowVertical" Source="[Application.StationList.Options]"> <Layout> <FlowLayout Orientation="Vertical" Spacing="5,0"/> </Layout> <Animations> <Animation Type="Move"> <Keyframes> <PositionKeyframe Time="0" Value="0,0,0" RelativeTo="Current"/> <PositionKeyframe Time=".25" Value="1,1,1" RelativeTo="Final" Interpolation="SCurve"/> </Keyframes> </Animation> </Animations> <Content> <st:StationInfo CStationInfo="[RepeatedItem!rs:CStationInfo]" Index="[RepeatedItemIndex]" Size="600,65"/> </Content> </Repeater> </Children> </Scroller> </Children> </Panel> </Content> </UI> </Mcml>
Bearbeitet von ehemaliges Mitglied, 12 Februar 2011 - 15:57 .
|
Suche MCML TutorialErstellt von Koryu, 22 Nov 2011 |
|
|
|
|
Problem MCML wird nicht geladenErstellt von ehemaliges Mitglied, 13 Nov 2011 |
|
|
|
|
Repeater ContentItem durch String property ausgewähltErstellt von ehemaliges Mitglied, 10 Apr 2011 |
|
|
Mitglieder: 0, Gäste: 0, unsichtbare Mitglieder: 0