/// <summary>
/// ItemsSource property.
/// </summary>
- public static readonly BindableProperty ItemsSourceProperty =
+ public static new readonly BindableProperty ItemsSourceProperty =
BindableProperty.Create(nameof(ItemsSource), typeof(IEnumerable), typeof(BindableCollectionView), null, propertyChanged: OnItemsSourceChanged);
/// <summary>
public NavigationStack()
: base()
{
- WidthResizePolicy = ResizePolicyType.FillToParent;
- HeightResizePolicy = ResizePolicyType.FillToParent;
+ Layout = new AbsoluteLayout();
+ WidthSpecification = LayoutParamPolicies.MatchParent;
+ HeightSpecification = LayoutParamPolicies.MatchParent;
}
public List<Page> Pages { get => Children.ConvertAll(x => (Page)x); }
public Page()
: base()
{
- WidthResizePolicy = ResizePolicyType.FillToParent;
- HeightResizePolicy = ResizePolicyType.FillToParent;
+ Layout = new AbsoluteLayout();
+ WidthSpecification = LayoutParamPolicies.MatchParent;
+ HeightSpecification = LayoutParamPolicies.MatchParent;
}
/// <summary>
using Fitness.Controls;
+using Tizen.NUI.BaseComponents;
using Tizen.NUI;
namespace Fitness.Views
PropertyMap fontStyle = new PropertyMap();
fontStyle.Add("weight", new PropertyValue("medium"));
CountingLabel.FontStyle = fontStyle;
+ CountingLabel.WidthSpecification = LayoutParamPolicies.MatchParent;
+ CountingLabel.HeightSpecification = LayoutParamPolicies.MatchParent;
}
private void CountingLabel_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
},
},
IconPadding = new Extents(20, 0, 0, 0),
- IconRelativeOrientation = Button.IconOrientation.Right,
+ IconRelativeOrientation = Button.IconOrientation.Left,
};
public static NinePatchButtonStyle RegularRepeat => new NinePatchButtonStyle
xmlns:nui="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
xmlns:styles="clr-namespace:Fitness.Views.Styles"
xmlns:behaviors="clr-namespace:Fitness.Views.Behaviors"
- WidthResizePolicy="FillToParent"
+ WidthSpecification="-1"
Size="{views:SizeInUnits Height=30}"
x:Name="Root">
<ctrl:NinePatchButton Text="previous"
xmlns:nui="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
xmlns:behaviors="clr-namespace:Fitness.Views.Behaviors"
xmlns:styles="clr-namespace:Fitness.Views.Styles"
- HeightResizePolicy="FillToParent" WidthResizePolicy="FillToParent" ParentOrigin="Center" PivotPoint="Center" PositionUsesPivotPoint="true">
+ HeightSpecification="-1" WidthSpecification="-1" ParentOrigin="Center" PivotPoint="Center" PositionUsesPivotPoint="true">
<ctrl:Page.BindingContext>
<vm:ExercisePreviewViewModel x:Name="context"/>
</ctrl:Page.BindingContext>
<ctrl:FadeTransition Duration="500" StartOpacity="0.0" EndOpacity="1.0" />
</ctrl:PageTransitionCollection>
</ctrl:Page.PageTransitions>
- <View WidthResizePolicy="FillToParent" HeightResizePolicy="FillToParent">
- <ImageView BindingContext="{Binding Source={x:Reference context}, Path=CurrentWorkout}" HeightResizePolicy="FillToParent" WidthResizePolicy="FillToParent" ResourceUrl="{Binding ThumbnailUrl}" x:Name="temp" ctrl:Connected.Id="preview"/>
- <VideoView HeightResizePolicy="FillToParent" WidthResizePolicy="FillToParent" x:Name="player" Looping="true"/>
- <View HeightResizePolicy="FillToParent" WidthResizePolicy="FillToParent">
+ <View WidthSpecification="-1" HeightSpecification="-1">
+ <ImageView BindingContext="{Binding Source={x:Reference context}, Path=CurrentWorkout}" HeightSpecification="-1" WidthSpecification="-1" ResourceUrl="{Binding ThumbnailUrl}" x:Name="temp" ctrl:Connected.Id="preview"/>
+ <VideoView HeightSpecification="-1" WidthSpecification="-1" x:Name="player" Looping="true"/>
+ <View HeightSpecification="-1">
<View.Layout>
- <LinearLayout LinearOrientation="Vertical" LinearAlignment="CenterVertical"/>
+ <LinearLayout LinearOrientation="Vertical"/>
</View.Layout>
<!-- Bar -->
- <View WidthResizePolicy="FillToParent" Size="{views:SizeInUnits Height=40}" Margin="{views:ExtentsInUnits Start=16}">
+ <View HeightSpecification="-1" Size="{views:SizeInUnits Height=40}" Margin="{views:ExtentsInUnits Start=16}">
<View.Layout>
<LinearLayout LinearOrientation="Horizontal" LinearAlignment="CenterVertical"/>
</View.Layout>
<ctrl:NinePatchButton BindingContext="{x:Reference context}" Size="{views:SizeInUnits Width=50,Height=20}" Text="previous" x:Name="previousButton" Command="{Binding PreviousWorkout}" behaviors:StyleSetter.Style="{x:Static styles:Buttons.Previous}"/>
- <TextLabel BindingContext="{Binding Source={x:Reference context}, Path=CurrentWorkout}" Size="{views:SizeInUnits Width=328,Height=20}" HeightResizePolicy="FillToParent" Text="{Binding Title}" Margin="{views:ExtentsInUnits Start=10}" VerticalAlignment="Center" HorizontalAlignment="Center" PixelSize="32"/>
+ <TextLabel BindingContext="{Binding Source={x:Reference context}, Path=CurrentWorkout}" Size="{views:SizeInUnits Width=328,Height=20}" HeightSpecification="-1" Text="{Binding Title}" Margin="{views:ExtentsInUnits Start=10}" VerticalAlignment="Center" HorizontalAlignment="Center" PixelSize="32"/>
<ctrl:NinePatchButton BindingContext="{x:Reference context}" Size="{views:SizeInUnits Width=50,Height=20}" Text="next" x:Name="nextButton" Margin="{views:ExtentsInUnits Start=10}" Command="{Binding NextWorkout}" behaviors:StyleSetter.Style="{x:Static styles:Buttons.Next}"/>
</View>
<!-- Bar End -->
- <View WidthResizePolicy="FillToParent" Weight="1.0">
+ <View HeightSpecification="-1" Weight="1.0">
</View>
- <View WidthResizePolicy="FillToParent" Size="{views:SizeInUnits Height=40}" Margin="{views:ExtentsInUnits Start=16,End=16,Bottom=6}">
+ <View HeightSpecification="-1" Size="{views:SizeInUnits Height=40}" Margin="{views:ExtentsInUnits Start=16,End=16,Bottom=6}">
<View.Layout>
<LinearLayout LinearOrientation="Horizontal" LinearAlignment="CenterVertical" CellPadding="40,40"/>
</View.Layout>
<View Size="{views:SizeInUnits Width=78,Height=44}" >
<ImageView x:Name="image"
BindingContext="{Binding Source={x:Reference Root}, Path=BindingContext}"
- HeightResizePolicy="FillToParent"
- WidthResizePolicy="FillToParent"
+ HeightSpecification="-1"
+ WidthSpecification="-1"
ResourceUrl="{Binding ThumbnailUrl}"/>
<TextLabel x:Name="label"
BindingContext="{Binding Source={x:Reference Root}, Path=BindingContext}"
<ctrl:Page.Layout>
<AbsoluteLayout/>
</ctrl:Page.Layout>
- <ImageView HeightResizePolicy="FillToParent" WidthResizePolicy="FillToParent" ResourceUrl="*Resource*/layout/images/0_BG_dim.png"/>
+ <ImageView HeightSpecification="-1" WidthSpecification="-1" ResourceUrl="*Resource*/layout/images/0_BG_dim.png"/>
<ImageView PositionUsesPivotPoint="true" ParentOrigin="Center" PivotPoint="Center" HeightResizePolicy="SizeRelativeToParent" WidthForHeight="true" SizeModeFactor="0.0,0.8,1.0" ResourceUrl="*Resource*/layout/images/circle.svg" x:Name="image" Opacity="0.48"/>
- <TextLabel x:Name="CountingLabel" Text="{Binding Text}" PixelSize="{Binding PixelSize}" WidthResizePolicy="FillToParent" HeightResizePolicy="FillToParent" PositionUsesPivotPoint="true" PivotPoint="Center" ParentOrigin="Center" VerticalAlignment="Center" HorizontalAlignment="Center" TextColor="#000C2B"/>
+ <TextLabel x:Name="CountingLabel" Text="{Binding Text}" PixelSize="{Binding PixelSize}" WidthSpecification="-1" HeightSpecification="-1" PositionUsesPivotPoint="true" PivotPoint="Center" ParentOrigin="Center" VerticalAlignment="Center" HorizontalAlignment="Center" TextColor="#000C2B"/>
</ctrl:Page>
xmlns:converters="clr-namespace:Fitness.Views.Converters"
xmlns:styles="clr-namespace:Fitness.Views.Styles"
xmlns:behaviors="clr-namespace:Fitness.Views.Behaviors"
- HeightResizePolicy="FillToParent" WidthResizePolicy="FillToParent" BackgroundColor="#EEEFF1" ParentOrigin="Center" PivotPoint="Center" PositionUsesPivotPoint="true" >
+ HeightSpecification="-1" WidthSpecification="-1" BackgroundColor="#EEEFF1" ParentOrigin="Center" PivotPoint="Center" PositionUsesPivotPoint="true" >
<View.BindingContext>
<vm:MainViewModel x:Name="context"/>
</View.BindingContext>
<LinearLayout LinearOrientation="Vertical" LinearAlignment="Top"/>
</View.Layout>
<nui:Button BindingContext="{Binding Source={x:Reference context}}" Size="{views:SizeInUnits Width=12, Height=12}" Margin="{views:ExtentsInUnits Start=12, Top=12, Bottom=8}" behaviors:StyleSetter.Style="{x:Static styles:Buttons.Back}" Command="{Binding Exit}" />
- <View Margin="{views:ExtentsInUnits Start=16,End=16}" Weight="1.0" WidthResizePolicy="FillToParent" >
+ <View Margin="{views:ExtentsInUnits Start=16,End=16}" Weight="1.0" WidthSpecification="-1" HeightSpecification="-1">
<View.Layout>
- <LinearLayout LinearOrientation="Horizontal" LinearAlignment="End"/>
+ <LinearLayout LinearOrientation="Horizontal" LinearAlignment="Begin"/>
</View.Layout>
- <ImageView BindingContext="{Binding Source={x:Reference context}, Path=SelectedWorkout}" Weight="1.0" HeightResizePolicy="FillToParent" ResourceUrl="{Binding ThumbnailUrl}" x:Name="imagePreview" ctrl:Connected.Id="preview">
+ <ImageView BindingContext="{Binding Source={x:Reference context}, Path=SelectedWorkout}" Weight="1.0" HeightSpecification="-1" WidthSpecification="-1" ResourceUrl="{Binding ThumbnailUrl}" x:Name="imagePreview" ctrl:Connected.Id="preview">
<ImageView.Layout>
<LinearLayout LinearOrientation="Vertical" LinearAlignment="Center" CellPadding="0,40"/>
</ImageView.Layout>
<ctrl:NinePatchButton BindingContext="{Binding Source={x:Reference context}}" PositionUsesPivotPoint="true" ParentOrigin="0.5,0.5" PivotPoint="0.5,0.5" Text="Let's try!" Command="{Binding StartWorkout}" Size="{views:SizeInUnits Width=112,Height=24}" behaviors:StyleSetter.Style="{x:Static styles:Buttons.Inverse}"/>
<ctrl:NinePatchButton BindingContext="{Binding Source={x:Reference context}}" PositionUsesPivotPoint="true" ParentOrigin="0.5,0.5" PivotPoint="0.5,0.5" Text="Watch preview" Command="{Binding WatchPreview}" Size="{views:SizeInUnits Width=112,Height=24}" behaviors:StyleSetter.Style="{x:Static styles:Buttons.Regular}"/>
</ImageView>
- <View Size="{views:SizeInUnits Width=107}" Margin="{views:ExtentsInUnits Start=8}" HeightResizePolicy="FillToParent">
- <View HeightResizePolicy="FillToParent" WidthResizePolicy="FillToParent">
+ <View Size="{views:SizeInUnits Width=107}" Margin="{views:ExtentsInUnits Start=8}" HeightSpecification="-1">
+ <View HeightSpecification="-1" WidthSpecification="-1">
<View.Layout>
<LinearLayout LinearOrientation="Vertical" LinearAlignment="Begin"/>
</View.Layout>
<ImageView PositionUsesPivotPoint="true" PivotPoint="1.0,0.0" ParentOrigin="1.0, 0.0" Size="30,30" BindingContext="{Binding Source={x:Reference context}, Path=SelectedWorkout}" ResourceUrl="{Binding Favourite, Converter={Static converters:FavouriteToIconConverter.Converter}}"/>
</View>
</View>
- <ctrl:BindableCollectionView Size="{views:SizeInUnits Height=44}" Margin="{views:ExtentsInUnits Top=10, Bottom=10, Start=16, End=16}" WidthResizePolicy="FillToParent" ItemsSource="{Binding Workouts}" SelectedItem="{Binding Path=SelectedWorkout, Mode=TwoWay}" SelectionMode="SingleAlways" ScrollingDirection="Horizontal">
+ <ctrl:BindableCollectionView Size="{views:SizeInUnits Height=44}" Margin="{views:ExtentsInUnits Top=10, Bottom=10, Start=16, End=16}" WidthSpecification="-1" ItemsSource="{Binding Workouts}" SelectedItem="{Binding Path=SelectedWorkout, Mode=TwoWay}" SelectionMode="SingleAlways" ScrollingDirection="Horizontal">
<ctrl:BindableCollectionView.ItemTemplate>
<DataTemplate>
<views:FitnessItemView />
xmlns:nui="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
xmlns:styles="clr-namespace:Fitness.Views.Styles"
xmlns:behaviors="clr-namespace:Fitness.Views.Behaviors"
- HeightResizePolicy="FillToParent"
- WidthResizePolicy="FillToParent"
+ HeightSpecification="-1"
+ WidthSpecification="-1"
x:Name="Root">
- <View HeightResizePolicy="FillToParent"
- WidthResizePolicy="FillToParent">
+ <View HeightSpecification="-1"
+ WidthSpecification="-1">
<View.Layout>
<LinearLayout LinearOrientation="Vertical"/>
</View.Layout>
<!--Bar stub-->
<View Size="{views:SizeInUnits Height=30}"
- WidthResizePolicy="FillToParent"/>
+ WidthSpecification="-1"/>
<!--Margin-->
<View BackgroundColor="Transparent"
- WidthResizePolicy="FillToParent"
- HeightResizePolicy="FillToParent"
+ WidthSpecification="-1"
+ HeightSpecification="-1"
Weight="1"/>
<!--Bottom Bar-->
<ImageView Size="{views:SizeInUnits Height=30}"
Margin="{views:ExtentsInUnits Start=16, End=16}"
- WidthResizePolicy="FillToParent"
+ WidthSpecification="-1"
ResourceUrl="*Resource*/styles/button/ButtonFrame.png">
<!--Left button-->
<View Size="{views:SizeInUnits Height=30}"
- WidthResizePolicy="FillToParent">
+ WidthSpecification="-1">
<View.Layout>
<LinearLayout LinearOrientation="Horizontal"/>
</View.Layout>
<ctrl:NinePatchButton BindingContext="{Binding Source={x:Reference Root}, Path=BindingContext}"
- HeightResizePolicy="FillToParent"
+ HeightSpecification="-1"
+ WidthSpecification="-1"
Text="Review movement"
Weight="1"
Command="{Binding ReviewMovement}"
behaviors:StyleSetter.Style="{Binding Source={x:Static styles:Buttons.ReviewMovement}}"/>
- <View HeightResizePolicy="FillToParent"
+ <View HeightSpecification="-1"
+ WidthSpecification="-1"
BackgroundColor="Transparent"
Weight="2"/>
</View>
<!--Right button-->
<View Size="{views:SizeInUnits Height=30}"
- WidthResizePolicy="FillToParent">
+ WidthSpecification="-1">
<View.Layout>
<LinearLayout LinearOrientation="Horizontal"/>
</View.Layout>
- <View HeightResizePolicy="FillToParent"
+ <View HeightSpecification="-1"
+ WidthSpecification="-1"
BackgroundColor="Transparent"
Weight="2"/>
<ctrl:NinePatchButton BindingContext="{Binding Source={x:Reference Root}, Path=BindingContext}"
- HeightResizePolicy="FillToParent"
+ HeightSpecification="-1"
+ WidthSpecification="-1"
Text="End workout"
Weight="1"
Command="{Binding EndWorkout}"
</View>
<!--Center button-->
<View Size="{views:SizeInUnits Height=30}"
- WidthResizePolicy="FillToParent">
+ WidthSpecification="-1">
<View.Layout>
<LinearLayout LinearOrientation="Horizontal"/>
</View.Layout>
- <View HeightResizePolicy="FillToParent"
+ <View HeightSpecification="-1"
+ WidthSpecification="-1"
BackgroundColor="Transparent"
Weight="1"/>
<ctrl:NinePatchButton BindingContext="{Binding Source={x:Reference Root}, Path=BindingContext}"
- HeightResizePolicy="FillToParent"
+ HeightSpecification="-1"
+ WidthSpecification="-1"
Text="Continue exercise"
Weight="1"
Command="{Binding PauseResumeWorkout}"
behaviors:StyleSetter.Style="{Binding Source={x:Static styles:Buttons.Regular}}"/>
- <View HeightResizePolicy="FillToParent"
+ <View HeightSpecification="-1"
+ WidthSpecification="-1"
BackgroundColor="Transparent"
Weight="1"/>
</View>
</ImageView>
<View Size="{views:SizeInUnits Height=5}"
- WidthResizePolicy="FillToParent"/>
+ WidthSpecification="-1"/>
</View>
</View>
\ No newline at end of file
xmlns:nui="clr-namespace:Tizen.NUI.Components;assembly=Tizen.NUI.Components"
xmlns:styles="clr-namespace:Fitness.Views.Styles"
xmlns:behaviors="clr-namespace:Fitness.Views.Behaviors"
- HeightResizePolicy="FillToParent"
- WidthResizePolicy="FillToParent"
+ HeightSpecification="-1"
+ WidthSpecification="-1"
x:Name="Root">
<View.Layout>
<LinearLayout LinearOrientation="Vertical"/>
</View.Layout>
<!--Bar stub-->
<View Size="{views:SizeInUnits Height=30}"
- WidthResizePolicy="FillToParent"/>
+ WidthSpecification="-1"/>
<!--Margin-->
<View BackgroundColor="Transparent"
- WidthResizePolicy="FillToParent"
+ WidthSpecification="-1"
Size="{views:SizeInUnits Height=5}"/>
<View BackgroundColor="Transparent"
- WidthResizePolicy="FillToParent"
- HeightResizePolicy="FillToParent"
+ WidthSpecification="-1"
+ HeightSpecification="-1"
Weight="1"/>
<!--Content-->
<View Size="{views:SizeInUnits Height=189}"
- WidthResizePolicy="FillToParent">
+ WidthSpecification="-1">
<View.Layout>
<LinearLayout LinearOrientation="Horizontal"/>
</View.Layout>
<!--Preview-->
<View BackgroundColor="Transparent"
- HeightResizePolicy="FillToParent"
- WidthResizePolicy="FillToParent"
+ HeightSpecification="-1"
+ WidthSpecification="-1"
Weight="1">
<View.Layout>
<LinearLayout LinearOrientation="Vertical"/>
<!--Preview stub-->
<ImageView x:Name="PreviewStub"
HeightForWidth="true"
- WidthResizePolicy="FillToParent"
+ WidthSpecification="-1"
HeightResizePolicy="SizeRelativeToParent"
SizeModeFactor="0.0,0.6,0.0"
ResourceUrl="*Resource*/layout/images/previewBlank.png"/>
<View BackgroundColor="Transparent"
Weight="1"
- WidthResizePolicy="FillToParent"/>
+ WidthSpecification="-1"/>
<!--Time 165-->
<TextLabel BindingContext="{Binding Source={x:Reference Root}, Path=BindingContext}"
Text="{Binding TimeLeft, StringFormat=\{0:m\\:ss\}}"
PixelSize="165"
HorizontalAlignment="Center"
Margin="{views:ExtentsInUnits Start=48}"
- WidthResizePolicy="FillToParent"
+ WidthSpecification="-1"
Size="{views:SizeInUnits Width=102, Height=50}"/>
<TextLabel Text="Time left"
TextColor="#000C2B"
PixelSize="24"
HorizontalAlignment="Center"
Margin="{views:ExtentsInUnits Start=87}"
- WidthResizePolicy="FillToParent"
+ WidthSpecification="-1"
Size="{views:SizeInUnits Width=28, Height=9}"/>
</View>
<!--Cemera Preview-->
<View BackgroundColor="Transparent"
- HeightResizePolicy="FillToParent"
- WidthResizePolicy="FillToParent"
+ HeightSpecification="-1"
+ WidthSpecification="-1"
Size="{views:SizeInUnits Width=281, Height=189}">
<View.Layout>
<LinearLayout LinearOrientation="Vertical"/>
</View.Layout>
<!--Camera stub-->
<View x:Name="CameraStub"
- WidthResizePolicy="FillToParent"
+ WidthSpecification="-1"
Size="{views:SizeInUnits Width=281, Height=158}"/>
<View Size="{views:SizeInUnits Width=281, Height=4}"/>
<!--Numbers-->
</View>
<!--Margin-->
<View BackgroundColor="Transparent"
- WidthResizePolicy="FillToParent"
- HeightResizePolicy="FillToParent"
+ WidthSpecification="-1"
+ HeightSpecification="-1"
Weight="1" />
<!--Bar-->
<View Size="{views:SizeInUnits Height=30}"
- WidthResizePolicy="FillToParent">
+ WidthSpecification="-1">
<ctrl:NinePatchButton BindingContext="{Binding Source={x:Reference Root}, Path=BindingContext}"
PositionUsesPivotPoint="True"
ParentOrigin="Center"
behaviors:StyleSetter.Style="{Binding Source={x:Static styles:Buttons.RegularBig}}"/>
</View>
<View Size="{views:SizeInUnits Height=10}"
- WidthResizePolicy="FillToParent"/>
+ WidthSpecification="-1"/>
</View>
\ No newline at end of file
xmlns:ctrl="clr-namespace:Fitness.Controls"
xmlns:views="clr-namespace:Fitness.Views"
xmlns:behaviors="clr-namespace:Fitness.Views.Behaviors"
- HeightResizePolicy="FillToParent"
- WidthResizePolicy="FillToParent"
+ HeightSpecification="-1"
+ WidthSpecification="-1"
BackgroundColor="#EEEFF1"
ParentOrigin="Center"
PivotPoint="Center"
<View Position="320, 100"
Size="1280, 960">
<ctrl:Camera x:Name="cameraView"
- WidthResizePolicy="FillToParent"
- HeightResizePolicy="FillToParent"
+ WidthSpecification="-1"
+ HeightSpecification="-1"
PreviewFps="Fps30" />
- <ctrl:Overlay WidthResizePolicy="FillToParent"
- HeightResizePolicy="FillToParent"
+ <ctrl:Overlay WidthSpecification="-1"
+ HeightSpecification="-1"
BindingContext="{Binding Source={x:Reference Root}, Path=BindingContext}"
PoseLandmarks="{Binding PoseLandmarks}">
<x:Arguments>
</ctrl:Overlay>
</View>
- <View WidthResizePolicy="FillToParent">
+ <View WidthSpecification="-1">
<View.Layout>
<LinearLayout LinearOrientation="Horizontal" />
</View.Layout>
- <View Weight="2">
+ <View WidthSpecification="-1">
<View.Layout>
<LinearLayout LinearOrientation="Vertical" />
</View.Layout>
TextColor="Black" />
</View>
<ctrl:NinePatchButton BindingContext="{Binding Source={x:Reference Root}, Path=BindingContext}"
+ WidthSpecification="-1"
Text="Close"
Size="{views:SizeInUnits Width=80, Height=20}"
+ PointSize="6"
Command="{Binding CloseScanningView}" />
</View>
</ctrl:Page>
<View.BindingContext>
<vm:SummaryViewModel/>
</View.BindingContext>
- <ImageView HeightResizePolicy="FillToParent"
- WidthResizePolicy="FillToParent"
+ <ImageView HeightSpecification="-1"
+ WidthSpecification="-1"
ResourceUrl="*Resource*/layout/images/0_BG_dim.png">
<ImageView PositionUsesPivotPoint="True"
ParentOrigin="Center"
PivotPoint="Center"
- WidthResizePolicy="FillToParent"
- HeightResizePolicy="FillToParent"
+ WidthSpecification="-1"
+ HeightSpecification="-1"
Size="{views:SizeInUnits Width=296, Height=148}"
ResourceUrl="*Resource*/layout/images/08_popup_body.png">
<View.Layout>
<TextLabel BindingContext="{Binding Source={x:Reference Root}, Path=BindingContext}"
Text="{Binding Title}"
PixelSize="40"
- WidthResizePolicy="FillToParent"
+ WidthSpecification="-1"
Size="{views:SizeInUnits Height=14}"
HorizontalAlignment="Center"
TextColor="#000C2B"/>
- <View WidthResizePolicy="FillToParent"
+ <View WidthSpecification="-1"
Weight="1"/>
<TextLabel Text="Your session summary:"
PixelSize="32"
- WidthResizePolicy="FillToParent"
+ WidthSpecification="-1"
Margin="{views:ExtentsInUnits Start=27}"
Size="{views:SizeInUnits Height=11}"
HorizontalAlignment="Begin"
TextColor="#000C2B"/>
<View Size="{views:SizeInUnits Height=7}"/>
- <View WidthResizePolicy="FillToParent">
+ <View WidthSpecification="-1">
<View.Layout>
<LinearLayout LinearOrientation="Horizontal"/>
</View.Layout>
Size="{views:SizeInUnits Height=11}"/>
</View>
<View Size="{views:SizeInUnits Height=4}"/>
- <View WidthResizePolicy="FillToParent">
+ <View WidthSpecification="-1">
<View.Layout>
<LinearLayout LinearOrientation="Horizontal"/>
</View.Layout>
Size="{views:SizeInUnits Height=11}"/>
</View>
<View Size="{views:SizeInUnits Height=4}"/>
- <View WidthResizePolicy="FillToParent">
+ <View WidthSpecification="-1">
<View.Layout>
<LinearLayout LinearOrientation="Horizontal"/>
</View.Layout>
PixelSize="32"
Size="{views:SizeInUnits Height=11}"/>
</View>
- <View WidthResizePolicy="FillToParent"
+ <View WidthSpecification="-1"
Weight="1"/>
- <View WidthResizePolicy="FillToParent">
+ <View WidthSpecification="-1">
<View.Layout>
<LinearLayout LinearOrientation="Horizontal"/>
</View.Layout>
Command="{Binding Back}"
behaviors:StyleSetter.Style="{Binding Source={x:Static styles:Buttons.Outline}}"/>
<View Weight="1"
- HeightResizePolicy="FillToParent"
- WidthResizePolicy="FillToParent"/>
+ HeightSpecification="-1"
+ WidthSpecification="-1"/>
<ctrl:NinePatchButton Text="Ok"
Size="{views:SizeInUnits Width=100, Height=26}"
BindingContext="{Binding Source={x:Reference Root}, Path=BindingContext}"