-
Notifications
You must be signed in to change notification settings - Fork 743
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(datepicker): Adjust picker flyout placement
Fix #5554
- Loading branch information
1 parent
acdc8f4
commit 7046ab0
Showing
9 changed files
with
181 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/DatePicker/DatePicker_Placement.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<Page | ||
x:Class="UITests.Windows_UI_Xaml_Controls.DatePicker.DatePicker_Placement" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:xamarin="http://uno.ui/xamarin" | ||
mc:Ignorable="d xamarin" | ||
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> | ||
|
||
<Grid Padding="10"> | ||
<DatePicker x:Name="topLeft" VerticalAlignment="Top" HorizontalAlignment="Left" xamarin:UseNativeStyle="False" /> | ||
<DatePicker x:Name="topRight" VerticalAlignment="Top" HorizontalAlignment="Right" xamarin:UseNativeStyle="False" /> | ||
<DatePicker x:Name="bottomLeft" VerticalAlignment="Bottom" HorizontalAlignment="Left" xamarin:UseNativeStyle="False" /> | ||
<DatePicker x:Name="bottomRight" VerticalAlignment="Bottom" HorizontalAlignment="Right" xamarin:UseNativeStyle="False" /> | ||
<DatePicker x:Name="centerLeftOutside" VerticalAlignment="Center" HorizontalAlignment="Left" xamarin:UseNativeStyle="False"> | ||
<DatePicker.RenderTransform> | ||
<TranslateTransform X="-100" /> | ||
</DatePicker.RenderTransform> | ||
</DatePicker> | ||
<DatePicker x:Name="rightLeftOutside" VerticalAlignment="Center" HorizontalAlignment="Right" xamarin:UseNativeStyle="False"> | ||
<DatePicker.RenderTransform> | ||
<TranslateTransform X="100" /> | ||
</DatePicker.RenderTransform> | ||
</DatePicker> | ||
<DatePicker x:Name="topCenterRotated" VerticalAlignment="Top" HorizontalAlignment="Center" RenderTransformOrigin="0.5, 0.5" xamarin:UseNativeStyle="False"> | ||
<DatePicker.RenderTransform> | ||
<RotateTransform Angle="90" /> | ||
</DatePicker.RenderTransform> | ||
</DatePicker> | ||
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center"> | ||
<DatePicker x:Name="center" RenderTransformOrigin="0.5, 0.5" xamarin:UseNativeStyle="False"> | ||
<DatePicker.RenderTransform> | ||
<RotateTransform Angle="180" /> | ||
</DatePicker.RenderTransform> | ||
</DatePicker> | ||
<DatePicker x:Name="narrow" Width="120" xamarin:UseNativeStyle="False" /> | ||
<DatePicker x:Name="wide" Width="420" xamarin:UseNativeStyle="False" /> | ||
<DatePicker x:Name="scaled" RenderTransformOrigin="0.5, 0.5" xamarin:UseNativeStyle="False"> | ||
<DatePicker.RenderTransform> | ||
<ScaleTransform ScaleX="1.25" ScaleY="0.75" /> | ||
</DatePicker.RenderTransform> | ||
</DatePicker> | ||
<Viewbox Height="50"> | ||
<DatePicker x:Name="viewBox" xamarin:UseNativeStyle="False" /> | ||
</Viewbox> | ||
</StackPanel> | ||
</Grid> | ||
</Page> |
14 changes: 14 additions & 0 deletions
14
...amplesApp/UITests.Shared/Windows_UI_Xaml_Controls/DatePicker/DatePicker_Placement.xaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using Windows.UI.Xaml.Controls; | ||
using Uno.UI.Samples.Controls; | ||
|
||
namespace UITests.Windows_UI_Xaml_Controls.DatePicker | ||
{ | ||
[Sample] | ||
public sealed partial class DatePicker_Placement : Page | ||
{ | ||
public DatePicker_Placement() | ||
{ | ||
this.InitializeComponent(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters