Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix Transitioning Content Control DPI issue (#2827)
RenderTargetBitmap take an int therefore the minimum input value must be 1.
- Loading branch information
1 parent
de9557f
commit 663110c
Showing
12 changed files
with
667 additions
and
429 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
src/ReactiveUI.Tests/Platforms/wpf/Mocks/TransitionMock/FirstView.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,12 @@ | ||
<UserControl | ||
x:Class="ReactiveUI.Tests.Wpf.FirstView" | ||
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:local="clr-namespace:ReactiveUI.Tests.Wpf" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
Width="450" | ||
Height="450" | ||
mc:Ignorable="d"> | ||
<Grid Background="#FFF80606" /> | ||
</UserControl> |
20 changes: 20 additions & 0 deletions
20
src/ReactiveUI.Tests/Platforms/wpf/Mocks/TransitionMock/FirstView.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,20 @@ | ||
// Copyright (c) 2021 .NET Foundation and Contributors. All rights reserved. | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for full license information. | ||
|
||
using System.Windows.Controls; | ||
|
||
namespace ReactiveUI.Tests.Wpf | ||
{ | ||
/// <summary> | ||
/// Interaction logic for FirstView.xaml. | ||
/// </summary> | ||
public partial class FirstView : UserControl | ||
{ | ||
public FirstView() | ||
{ | ||
InitializeComponent(); | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
src/ReactiveUI.Tests/Platforms/wpf/Mocks/TransitionMock/SecondView.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,12 @@ | ||
<UserControl | ||
x:Class="ReactiveUI.Tests.Wpf.SecondView" | ||
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:local="clr-namespace:ReactiveUI.Tests.Wpf" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
Width="0.5" | ||
Height="0.5" | ||
mc:Ignorable="d"> | ||
<Grid Background="#FFF7E40D" /> | ||
</UserControl> |
20 changes: 20 additions & 0 deletions
20
src/ReactiveUI.Tests/Platforms/wpf/Mocks/TransitionMock/SecondView.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,20 @@ | ||
// Copyright (c) 2021 .NET Foundation and Contributors. All rights reserved. | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for full license information. | ||
|
||
using System.Windows.Controls; | ||
|
||
namespace ReactiveUI.Tests.Wpf | ||
{ | ||
/// <summary> | ||
/// Interaction logic for SecondView.xaml. | ||
/// </summary> | ||
public partial class SecondView : UserControl | ||
{ | ||
public SecondView() | ||
{ | ||
InitializeComponent(); | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
src/ReactiveUI.Tests/Platforms/wpf/Mocks/TransitionMock/TCMockWindow.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,20 @@ | ||
<rxui:ReactiveWindow | ||
x:Class="ReactiveUI.Tests.Wpf.TCMockWindow" | ||
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:local="clr-namespace:ReactiveUI.Tests.Wpf" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:rxui="http://reactiveui.net" | ||
Title="DPITest" | ||
Width="600" | ||
Height="600" | ||
x:TypeArguments="local:TCMockWindowViewModel" | ||
mc:Ignorable="d"> | ||
<Grid> | ||
<rxui:TransitioningContentControl | ||
x:Name="TransitioningContent" | ||
Width="500" | ||
Height="500" /> | ||
</Grid> | ||
</rxui:ReactiveWindow> |
18 changes: 18 additions & 0 deletions
18
src/ReactiveUI.Tests/Platforms/wpf/Mocks/TransitionMock/TCMockWindow.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,18 @@ | ||
// Copyright (c) 2021 .NET Foundation and Contributors. All rights reserved. | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for full license information. | ||
|
||
namespace ReactiveUI.Tests.Wpf | ||
{ | ||
/// <summary> | ||
/// Interaction logic for MainWindow.xaml. | ||
/// </summary> | ||
public partial class TCMockWindow | ||
{ | ||
public TCMockWindow() | ||
{ | ||
InitializeComponent(); | ||
} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
src/ReactiveUI.Tests/Platforms/wpf/Mocks/TransitionMock/TCMockWindowViewModel.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,11 @@ | ||
// Copyright (c) 2021 .NET Foundation and Contributors. All rights reserved. | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for full license information. | ||
|
||
namespace ReactiveUI.Tests.Wpf | ||
{ | ||
public class TCMockWindowViewModel : ReactiveObject | ||
{ | ||
} | ||
} |
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
Oops, something went wrong.