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

DialogHost Style #3430

Open
myloveCc opened this issue Jan 2, 2024 · 2 comments · May be fixed by #3459
Open

DialogHost Style #3430

myloveCc opened this issue Jan 2, 2024 · 2 comments · May be fixed by #3459
Labels
dialoghost Items related to the DialogHost control question Old items with this tag will be automatically closed.

Comments

@myloveCc
Copy link

myloveCc commented Jan 2, 2024

How can i change "wpf:Card.Style" with "MaterialDesignOutlinedCard"?

@myloveCc myloveCc added enhancement evaluation required Items is pending review or evaluation by the team labels Jan 2, 2024
@Keboo
Copy link
Member

Keboo commented Jan 2, 2024

At present, the style for the internal card on the dialog host is not exposed, so there is no simple way to expose that.

@Keboo Keboo added question Old items with this tag will be automatically closed. and removed enhancement evaluation required Items is pending review or evaluation by the team labels Jan 2, 2024
@myloveCc
Copy link
Author

myloveCc commented Jan 2, 2024

@Keboo The dailog host content is so blurry with default card style. Can you add a new style named "MaterialDesignOutlinedDialogHost"?

...
<wpf:Card.Style>
   <Style TargetType="wpf:Card" BasedOn="{StaticResource MaterialDesignOutlinedCard}">
     <Setter Property="Background" Value="{Binding Tag, RelativeSource={RelativeSource Self}}" />
     <Style.Triggers>
       <Trigger Property="Tag" Value="{x:Null}">
         <Setter Property="Background" Value="{DynamicResource MaterialDesignPaper}" />
       </Trigger>
     </Style.Triggers>
   </Style>
 </wpf:Card.Style>\
...

@MichelMichels MichelMichels added the dialoghost Items related to the DialogHost control label Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dialoghost Items related to the DialogHost control question Old items with this tag will be automatically closed.
Projects
None yet
3 participants