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

Suppress System.Windows.Data Error warnings #293

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

diluculo
Copy link
Contributor

PO for #291. Actually, the warnings seem to be harmless. But for our concise output window.

@diluculo diluculo force-pushed the suppressSystemWindowsDataErrorWarning branch from 6576971 to 271376d Compare May 23, 2018 01:17
@diluculo diluculo force-pushed the suppressSystemWindowsDataErrorWarning branch from 271376d to d4b69bb Compare June 1, 2018 02:39
@BHandle
Copy link

BHandle commented Nov 29, 2018

Alternatively, they can be eliminated to preserve databinding trace handling:

I think it's actually related to the control template of the default menu item, which expects to be in an itemscontrol.

I'm using a heavily modified version of Gemini, but if you open Themes->VS2013->Controls->Menu.xaml.

All the way at the bottom you can find the default styles for both the MenuItem and the xcad:MenuItemEx. Simply modify them to force the alignment.

    <!--  Set default styles  -->
    <Style BasedOn="{StaticResource MetroSeparator}" TargetType="Separator" />
    <Style BasedOn="{StaticResource MetroMenuItem}" TargetType="MenuItem">
        <Setter Property="HorizontalContentAlignment" Value="Left" />
        <Setter Property="VerticalContentAlignment" Value="Center" />
    </Style>
    <Style BasedOn="{StaticResource StandardMenu}" TargetType="Menu" />
    <Style BasedOn="{StaticResource MetroContextMenu}" TargetType="ContextMenu" />
    <Style BasedOn="{StaticResource MetroContextMenu}" TargetType="xcad:ContextMenuEx" />
    <Style BasedOn="{StaticResource MetroMenuItem}" TargetType="xcad:MenuItemEx">
        <Setter Property="HorizontalContentAlignment" Value="Left" />
        <Setter Property="VerticalContentAlignment" Value="Center" />
    </Style>

@360manu
Copy link

360manu commented Apr 10, 2020

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants