diff --git a/MUXControls.sln b/MUXControls.sln index e6594a0296..9e0bb9ea89 100644 --- a/MUXControls.sln +++ b/MUXControls.sln @@ -747,6 +747,7 @@ Global dev\CommandBarFlyout\CommandBarFlyout.vcxitems*{ad0c90b0-4845-4d4b-88f1-86f653f8171b}*SharedItemsImports = 4 dev\CommonStyles\CommonStyles.vcxitems*{ad0c90b0-4845-4d4b-88f1-86f653f8171b}*SharedItemsImports = 4 dev\Common\Common.vcxitems*{ad0c90b0-4845-4d4b-88f1-86f653f8171b}*SharedItemsImports = 4 + dev\ContentDialog\ContentDialog.vcxitems*{ad0c90b0-4845-4d4b-88f1-86f653f8171b}*SharedItemsImports = 4 dev\DatePicker\DatePicker.vcxitems*{ad0c90b0-4845-4d4b-88f1-86f653f8171b}*SharedItemsImports = 4 dev\DropDownButton\DropDownButton.vcxitems*{ad0c90b0-4845-4d4b-88f1-86f653f8171b}*SharedItemsImports = 4 dev\Effects\Microsoft.UI.Composition.Effects.vcxitems*{ad0c90b0-4845-4d4b-88f1-86f653f8171b}*SharedItemsImports = 4 diff --git a/dev/ContentDialog/ContentDialog_themeresources.xaml b/dev/ContentDialog/ContentDialog_themeresources.xaml index 380d4e93c2..3d2d889850 100644 --- a/dev/ContentDialog/ContentDialog_themeresources.xaml +++ b/dev/ContentDialog/ContentDialog_themeresources.xaml @@ -23,7 +23,8 @@ 0,0,0,12 24,18,24,24 - + + @@ -34,8 +35,9 @@ - - + + + 320 548 @@ -53,7 +55,7 @@ 0,0,0,0 0,0,0,12 24,18,24,24 - + @@ -77,7 +79,8 @@ 0,0,0,12 24,18,24,24 - + + @@ -95,6 +98,9 @@ + + + diff --git a/dev/ContentDialog/TestUI/ContentDialogPage.xaml.cs b/dev/ContentDialog/TestUI/ContentDialogPage.xaml.cs index ae6946f585..efc23fbbb0 100644 --- a/dev/ContentDialog/TestUI/ContentDialogPage.xaml.cs +++ b/dev/ContentDialog/TestUI/ContentDialogPage.xaml.cs @@ -16,7 +16,7 @@ public ContentDialogPage() private void ShowDialog_Click(object sender, RoutedEventArgs e) { - var dialog = new ContentDialog { Title = "Title", Content = "Content", IsPrimaryButtonEnabled = true, PrimaryButtonText = "PrimaryButton" }; + var dialog = new ContentDialog { Title = "Title", Content = "Content", IsPrimaryButtonEnabled = true, PrimaryButtonText = "PrimaryButton", SecondaryButtonText = "SecondaryButton", CloseButtonText = "CloseButton" }; _ = dialog.ShowAsync(); } } diff --git a/dev/dll/Microsoft.UI.Xaml.vcxproj b/dev/dll/Microsoft.UI.Xaml.vcxproj index ba77b8f801..1b37104a7c 100644 --- a/dev/dll/Microsoft.UI.Xaml.vcxproj +++ b/dev/dll/Microsoft.UI.Xaml.vcxproj @@ -131,6 +131,7 @@ + diff --git a/test/MUXControlsTestApp/master/ContentDialog-5.xml b/test/MUXControlsTestApp/master/ContentDialog-5.xml index 5e84d0f099..f76d0e0a72 100644 --- a/test/MUXControlsTestApp/master/ContentDialog-5.xml +++ b/test/MUXControlsTestApp/master/ContentDialog-5.xml @@ -17,8 +17,8 @@ Padding=0,0,0,0 Foreground=#FF000000 BorderThickness=0,0,0,0 - BorderBrush=#FF0078D7 - Background=#FFFFFFFF + BorderBrush=#33000000 + Background=#FFF2F2F2 Margin=0,0,0,0 FocusVisualSecondaryThickness=1,1,1,1 FocusVisualSecondaryBrush=#99FFFFFF @@ -56,10 +56,10 @@ RenderSize=0,0 [Windows.UI.Xaml.Controls.Border] Padding=0,0,0,0 - CornerRadius=0,0,0,0 + CornerRadius=4,4,4,4 BorderThickness=1,1,1,1 - BorderBrush=#FF0078D7 - Background=#FFFFFFFF + BorderBrush=#33000000 + Background=#FFF2F2F2 Name=BackgroundElement MinWidth=320 MinHeight=184 @@ -93,7 +93,7 @@ BorderBrush=#00FFFFFF Background=#00FFFFFF Name=ContentScrollViewer - Margin=0,0,0,24 + Margin=0,0,0,0 FocusVisualSecondaryThickness=1,1,1,1 FocusVisualSecondaryBrush=#99FFFFFF FocusVisualPrimaryThickness=2,2,2,2 @@ -107,15 +107,15 @@ BorderBrush=[NULL] Background=[NULL] Name=CommandSpace - Margin=0,0,0,0 + Margin=0,24,0,0 FocusVisualSecondaryThickness=1,1,1,1 FocusVisualSecondaryBrush=#99FFFFFF FocusVisualPrimaryThickness=2,2,2,2 FocusVisualPrimaryBrush=#FF000000 - Visibility=Visible + Visibility=Collapsed RenderSize=0,0 [Windows.UI.Xaml.Controls.Button] - Padding=8,4,8,4 + Padding=8,5,8,5 Foreground=#FF000000 BorderThickness=1,1,1,1 BorderBrush=#00FFFFFF @@ -126,10 +126,10 @@ FocusVisualSecondaryBrush=#99FFFFFF FocusVisualPrimaryThickness=2,2,2,2 FocusVisualPrimaryBrush=#FF000000 - Visibility=Collapsed + Visibility=Visible RenderSize=0,0 [Windows.UI.Xaml.Controls.Button] - Padding=8,4,8,4 + Padding=8,5,8,5 Foreground=#FF000000 BorderThickness=1,1,1,1 BorderBrush=#00FFFFFF @@ -140,10 +140,10 @@ FocusVisualSecondaryBrush=#99FFFFFF FocusVisualPrimaryThickness=2,2,2,2 FocusVisualPrimaryBrush=#FF000000 - Visibility=Collapsed + Visibility=Visible RenderSize=0,0 [Windows.UI.Xaml.Controls.Button] - Padding=8,4,8,4 + Padding=8,5,8,5 Foreground=#FF000000 BorderThickness=1,1,1,1 BorderBrush=#00FFFFFF @@ -154,5 +154,5 @@ FocusVisualSecondaryBrush=#99FFFFFF FocusVisualPrimaryThickness=2,2,2,2 FocusVisualPrimaryBrush=#FF000000 - Visibility=Collapsed + Visibility=Visible RenderSize=0,0 diff --git a/test/MUXControlsTestApp/master/ContentDialog-6.xml b/test/MUXControlsTestApp/master/ContentDialog-6.xml deleted file mode 100644 index 062fb0c54d..0000000000 --- a/test/MUXControlsTestApp/master/ContentDialog-6.xml +++ /dev/null @@ -1,158 +0,0 @@ -[Windows.UI.Xaml.Controls.Grid] - Padding=0,0,0,0 - CornerRadius=0,0,0,0 - BorderThickness=0,0,0,0 - BorderBrush=[NULL] - Background=[NULL] - Width=400 - Margin=0,0,0,0 - Height=400 - FocusVisualSecondaryThickness=1,1,1,1 - FocusVisualSecondaryBrush=#99FFFFFF - FocusVisualPrimaryThickness=2,2,2,2 - FocusVisualPrimaryBrush=#FF000000 - Visibility=Visible - RenderSize=400,400 - [Windows.UI.Xaml.Controls.ContentDialog] - Padding=0,0,0,0 - Foreground=#FF000000 - BorderThickness=0,0,0,0 - BorderBrush=#FF0078D7 - Background=#FFFFFFFF - Margin=0,0,0,0 - FocusVisualSecondaryThickness=1,1,1,1 - FocusVisualSecondaryBrush=#99FFFFFF - FocusVisualPrimaryThickness=2,2,2,2 - FocusVisualPrimaryBrush=#FF000000 - Visibility=Visible - RenderSize=0,0 - [Windows.UI.Xaml.Controls.Border] - Padding=0,0,0,0 - CornerRadius=0,0,0,0 - BorderThickness=0,0,0,0 - BorderBrush=[NULL] - Background=[NULL] - Name=Container - Margin=0,0,0,0 - FocusVisualSecondaryThickness=1,1,1,1 - FocusVisualSecondaryBrush=#99FFFFFF - FocusVisualPrimaryThickness=2,2,2,2 - FocusVisualPrimaryBrush=#FF000000 - Visibility=Visible - RenderSize=0,0 - [Windows.UI.Xaml.Controls.Grid] - Padding=0,0,0,0 - CornerRadius=0,0,0,0 - BorderThickness=0,0,0,0 - BorderBrush=[NULL] - Background=#99FFFFFF - Name=LayoutRoot - Margin=0,0,0,0 - FocusVisualSecondaryThickness=1,1,1,1 - FocusVisualSecondaryBrush=#99FFFFFF - FocusVisualPrimaryThickness=2,2,2,2 - FocusVisualPrimaryBrush=#FF000000 - Visibility=Collapsed - RenderSize=0,0 - [Windows.UI.Xaml.Controls.Border] - Padding=0,0,0,0 - CornerRadius=0,0,0,0 - BorderThickness=1,1,1,1 - BorderBrush=#FF0078D7 - Background=#FFFFFFFF - Name=BackgroundElement - MinWidth=320 - MinHeight=184 - MaxWidth=548 - MaxHeight=756 - Margin=0,0,0,0 - FocusVisualSecondaryThickness=1,1,1,1 - FocusVisualSecondaryBrush=#99FFFFFF - FocusVisualPrimaryThickness=2,2,2,2 - FocusVisualPrimaryBrush=#FF000000 - Visibility=Visible - RenderSize=0,0 - [Windows.UI.Xaml.Controls.Grid] - Padding=24,18,24,24 - CornerRadius=0,0,0,0 - BorderThickness=0,0,0,0 - BorderBrush=[NULL] - Background=[NULL] - Name=DialogSpace - Margin=0,0,0,0 - FocusVisualSecondaryThickness=1,1,1,1 - FocusVisualSecondaryBrush=#99FFFFFF - FocusVisualPrimaryThickness=2,2,2,2 - FocusVisualPrimaryBrush=#FF000000 - Visibility=Visible - RenderSize=0,0 - [Windows.UI.Xaml.Controls.ScrollViewer] - Padding=0,0,0,0 - Foreground=#FF000000 - BorderThickness=0,0,0,0 - BorderBrush=#00FFFFFF - Background=#00FFFFFF - Name=ContentScrollViewer - Margin=0,0,0,0 - FocusVisualSecondaryThickness=1,1,1,1 - FocusVisualSecondaryBrush=#99FFFFFF - FocusVisualPrimaryThickness=2,2,2,2 - FocusVisualPrimaryBrush=#FF000000 - Visibility=Visible - RenderSize=0,0 - [Windows.UI.Xaml.Controls.Grid] - Padding=0,0,0,0 - CornerRadius=0,0,0,0 - BorderThickness=0,0,0,0 - BorderBrush=[NULL] - Background=[NULL] - Name=CommandSpace - Margin=0,24,0,0 - FocusVisualSecondaryThickness=1,1,1,1 - FocusVisualSecondaryBrush=#99FFFFFF - FocusVisualPrimaryThickness=2,2,2,2 - FocusVisualPrimaryBrush=#FF000000 - Visibility=Collapsed - RenderSize=0,0 - [Windows.UI.Xaml.Controls.Button] - Padding=8,4,8,4 - Foreground=#FF000000 - BorderThickness=1,1,1,1 - BorderBrush=#00FFFFFF - Background=#33000000 - Name=PrimaryButton - Margin=0,0,2,0 - FocusVisualSecondaryThickness=1,1,1,1 - FocusVisualSecondaryBrush=#99FFFFFF - FocusVisualPrimaryThickness=2,2,2,2 - FocusVisualPrimaryBrush=#FF000000 - Visibility=Visible - RenderSize=0,0 - [Windows.UI.Xaml.Controls.Button] - Padding=8,4,8,4 - Foreground=#FF000000 - BorderThickness=1,1,1,1 - BorderBrush=#00FFFFFF - Background=#33000000 - Name=SecondaryButton - Margin=2,0,2,0 - FocusVisualSecondaryThickness=1,1,1,1 - FocusVisualSecondaryBrush=#99FFFFFF - FocusVisualPrimaryThickness=2,2,2,2 - FocusVisualPrimaryBrush=#FF000000 - Visibility=Visible - RenderSize=0,0 - [Windows.UI.Xaml.Controls.Button] - Padding=8,4,8,4 - Foreground=#FF000000 - BorderThickness=1,1,1,1 - BorderBrush=#00FFFFFF - Background=#33000000 - Name=CloseButton - Margin=2,0,0,0 - FocusVisualSecondaryThickness=1,1,1,1 - FocusVisualSecondaryBrush=#99FFFFFF - FocusVisualPrimaryThickness=2,2,2,2 - FocusVisualPrimaryBrush=#FF000000 - Visibility=Visible - RenderSize=0,0 diff --git a/test/MUXControlsTestApp/master/ContentDialog-7.xml b/test/MUXControlsTestApp/master/ContentDialog-7.xml index 5e69598618..5b379ea34e 100644 --- a/test/MUXControlsTestApp/master/ContentDialog-7.xml +++ b/test/MUXControlsTestApp/master/ContentDialog-7.xml @@ -19,7 +19,7 @@ BorderThickness=0,0,0,0 BorderBrush=#33000000 Background=#FFFFFFFF - CornerRadius=0,0,0,0 + CornerRadius=4,4,4,4 Margin=0,0,0,0 FocusVisualSecondaryThickness=1,1,1,1 FocusVisualSecondaryBrush=#99FFFFFF @@ -57,7 +57,7 @@ RenderSize=0,0 [Windows.UI.Xaml.Controls.Border] Padding=0,0,0,0 - CornerRadius=0,0,0,0 + CornerRadius=4,4,4,4 BorderThickness=1,1,1,1 BorderBrush=#33000000 Background=#FFFFFFFF @@ -122,7 +122,7 @@ BorderThickness=1,1,1,1 BorderBrush=#00FFFFFF Background=#33000000 - CornerRadius=0,0,0,0 + CornerRadius=2,2,2,2 Name=PrimaryButton Margin=0,0,2,0 FocusVisualSecondaryThickness=1,1,1,1 @@ -137,7 +137,7 @@ BorderThickness=1,1,1,1 BorderBrush=#00FFFFFF Background=#33000000 - CornerRadius=0,0,0,0 + CornerRadius=2,2,2,2 Name=SecondaryButton Margin=2,0,2,0 FocusVisualSecondaryThickness=1,1,1,1 @@ -152,7 +152,7 @@ BorderThickness=1,1,1,1 BorderBrush=#00FFFFFF Background=#33000000 - CornerRadius=0,0,0,0 + CornerRadius=2,2,2,2 Name=CloseButton Margin=2,0,0,0 FocusVisualSecondaryThickness=1,1,1,1 diff --git a/test/MUXControlsTestApp/master/ContentDialog.xml b/test/MUXControlsTestApp/master/ContentDialog.xml index f88b03008e..6eefeeccf1 100644 --- a/test/MUXControlsTestApp/master/ContentDialog.xml +++ b/test/MUXControlsTestApp/master/ContentDialog.xml @@ -17,8 +17,8 @@ Padding=0,0,0,0 Foreground=#FF000000 BorderThickness=0,0,0,0 - BorderBrush=#FF0078D7 - Background=#FFFFFFFF + BorderBrush=#33000000 + Background=#FFF2F2F2 MaxWidth=548 MaxHeight=756 Margin=0,0,0,0