Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: The title bar didn't have the desired effect. in Win11 #101

Open
huangj1e opened this issue May 9, 2024 · 12 comments · Fixed by #102
Open

[Bug]: The title bar didn't have the desired effect. in Win11 #101

huangj1e opened this issue May 9, 2024 · 12 comments · Fixed by #102
Assignees
Labels
bug Something isn't working Working on it

Comments

@huangj1e
Copy link

huangj1e commented May 9, 2024

Describe the bug

Actived:
image

UnActived:
image

Steps to reproduce the bug

<Application
    x:Class="WpfApp2.App"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:WpfApp2"
    xmlns:mica="clr-namespace:MicaWPF.Lite.Styles;assembly=MicaWPF.Lite"
    StartupUri="MainWindow.xaml">
    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <mica:ControlsDictionary />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>
</Application>
<mica:MicaWindow
    x:Class="BlankApp1.Views.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mica="clr-namespace:MicaWPF.Controls;assembly=MicaWPF"
    xmlns:prism="http://prismlibrary.com/"
    Title="{Binding Title}"
    Width="525"
    Height="350"
    prism:ViewModelLocator.AutoWireViewModel="True"
    UseLayoutRounding="True">
    <Grid>
        <ContentControl prism:RegionManager.RegionName="ContentRegion" />
    </Grid>
</mica:MicaWindow>

Expected behavior

No response

Screenshots

No response

Windows version

Windows 11 version 22H2 (22621, 2022 Update)

.Net Version

.NET 8.x

Additional context

版本 Windows 11 专业版
版本 22H2
安装日期 ‎2023-‎02-‎02
操作系统版本 22621.3447
体验 Windows Feature Experience Pack 1000.22688.1000.0

@huangj1e huangj1e added bug Something isn't working Needs-Triage labels May 9, 2024
@Simnico99 Simnico99 linked a pull request May 9, 2024 that will close this issue
6 tasks
@Simnico99
Copy link
Owner

I've pushed 6.3.0 Download this one and tell me if it fixes your issue
Also
You are missing the ThemeDictionary here:

            <ResourceDictionary.MergedDictionaries>
               <mica:ThemeDictionary /> 
                <mica:ControlsDictionary />
            </ResourceDictionary.MergedDictionaries>

Also the namespace for mica should be MicaWPF.Lite.Controls since you are using MicaWPF.Lite:

<mica:MicaWindow
    x:Class="BlankApp1.Views.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mica="clr-namespace:MicaWPF.Lite.Controls;assembly=MicaWPF"
    xmlns:prism="http://prismlibrary.com/"
    Title="{Binding Title}"
    Width="525"
    Height="350"
    prism:ViewModelLocator.AutoWireViewModel="True"
    UseLayoutRounding="True">
    <Grid>
        <ContentControl prism:RegionManager.RegionName="ContentRegion" />
    </Grid>
</mica:MicaWindow>
@Simnico99 Simnico99 reopened this May 9, 2024
@Simnico99 Simnico99 added the Awaiting Confirmation Issues should be fixed / Enhancement should be implemented waiting for user confirmation label May 9, 2024
@huangj1e
Copy link
Author

huangj1e commented May 9, 2024

Thank you. Let me try.

@huangj1e
Copy link
Author

huangj1e commented May 9, 2024

Is the title bar active or has a background color

image

image

@Simnico99
Copy link
Owner

The lastest version is 6.3.0 Try this one

@huangj1e
Copy link
Author

huangj1e commented May 9, 2024

Okay, I'll try

@huangj1e
Copy link
Author

huangj1e commented May 9, 2024

Because I don't see a version of 6.3.0 in nuget
Then I pull your source code to run locally, or the same result.

image

@Simnico99
Copy link
Owner

Can you zip me the project or a sample project so I can replicate the issue on my end?

@Simnico99 Simnico99 added Working on it and removed Awaiting Confirmation Issues should be fixed / Enhancement should be implemented waiting for user confirmation labels May 9, 2024
@Simnico99
Copy link
Owner

I am running the WpfDemo from your git and weirdly its working properly I didn't change anything:
image

@huangj1e
Copy link
Author

huangj1e commented May 9, 2024

Maybe it's my Windows version. What's your version number?

This is my version number.
版本 Windows 11 Pro
版本 22H2
安装日期 ‎2023-‎02-‎02
操作系统版本 22621.3447
体验 Windows Feature Experience Pack 1000.22688.1000.0

@Simnico99
Copy link
Owner

image
I will download a VM with your version and try

@huangj1e
Copy link
Author

huangj1e commented May 9, 2024

Okay, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Working on it
2 participants