Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

Problem with xaml file after export as a project

Featured Replies

  • Author
  • Localization

HexPa5, posted Fri Dec 27, 2019 2:55 pm (52809)


Hello.

Today I downloaded this tool from https://www.youtube.com/watch?v=YWY9DjcJgl0.
My point is reverse engineering.

First I open tool as a executable file in dotpeek - .NET decompiler.

And I saved as Visual Studio project which instead of executable file I had project files, including cs and sln/csproj files.

So before build/rebuild it in visual studio I changed the codes in visual code of mainWindow.cs file.
It work, no errors, just for another use.

Then when I wanted build it shown me a few errors in mainwindow.xaml file.

The whole mainwindow.xaml code:
Code:
        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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:Obj_Creator"
        xmlns:Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero2"
        Title="Tekken 7 Custom Mesh" MinHeight="600" MaxHeight="600" Height="600" MinWidth="1000"
        MaxWidth="1000" Width="1000" Icon="Tekken_7_Custom_Mesh icon.ico" Background="{x:Null}">
 
   
   
     
     
   

   
   
   
   
   
   
   
     
     
   

   
   
   
   
     
     
   

   
   
   
     
     
   

   
   
   
   
     
     
   

   
   
   
   
   
   
   
   
   
   
   
     
       
         
         
       

                       PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}"
               Placement="Bottom"
               IsOpen="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}">
                                                   FrameworkElement.MaxHeight="{TemplateBinding ComboBox.MaxDropDownHeight}"
                                         FrameworkElement.MinWidth="{Binding ActualWidth, ElementName=templateRoot}">
                                BorderThickness="1" Background="{DynamicResource {x:Static SystemColors.WindowBrushKey}}">
             
               
                 
                                                   Height="{Binding ActualHeight, ElementName=dropDownBorder}"
                               Width="{Binding ActualWidth, ElementName=dropDownBorder}"/>
                 

                                                    SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}"/>
               

             

           
         
       
                              BorderThickness="{TemplateBinding Control.BorderThickness}"
                      Background="{TemplateBinding Control.Background}" Grid.ColumnSpan="2"
                      Style="{StaticResource ComboBoxToggleButton}"
                      IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>
                                  ContentTemplateSelector="{TemplateBinding ItemsControl.ItemTemplateSelector}" Content="Support us"
                          ContentStringFormat="{TemplateBinding ComboBox.SelectionBoxItemStringFormat}"
                          HorizontalAlignment="{TemplateBinding Control.HorizontalContentAlignment}" IsHitTestVisible="false"
                          Margin="{TemplateBinding Control.Padding}"
                          SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}"
                          VerticalAlignment="{TemplateBinding Control.VerticalContentAlignment}"/>
     

     
       
         
         
       

       
         
       

       
         
           
           
         

         
       

       
                            Property="Canvas.Top"/>
                            Property="Canvas.Left"/>
       

     

   

   
   
   
     
       
         
         
       

                       PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}"
               Placement="Bottom"
               IsOpen="{Binding IsDropDownOpen, RelativeSource={RelativeSource TemplatedParent}}">
                                                   FrameworkElement.MaxHeight="{TemplateBinding ComboBox.MaxDropDownHeight}"
                                         FrameworkElement.MinWidth="{Binding ActualWidth, ElementName=templateRoot}">
                                BorderThickness="1" Background="{DynamicResource {x:Static SystemColors.WindowBrushKey}}">
             
               
                 
                                                   Height="{Binding ActualHeight, ElementName=dropDownBorder}"
                               Width="{Binding ActualWidth, ElementName=dropDownBorder}"/>
                 

                                                    SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}"/>
               

             

           
         
       
                              BorderThickness="{TemplateBinding Control.BorderThickness}"
                      Background="{TemplateBinding Control.Background}" Grid.ColumnSpan="2"
                      Style="{StaticResource ComboBoxToggleButton}"
                      IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>
                        Margin="{TemplateBinding Control.BorderThickness}">
                             HorizontalContentAlignment="{TemplateBinding Control.HorizontalContentAlignment}"
                   Margin="{TemplateBinding Control.Padding}" Style="{StaticResource ComboBoxEditableTextBox}"
                   VerticalContentAlignment="{TemplateBinding Control.VerticalContentAlignment}"
                   IsReadOnly="{Binding IsReadOnly, RelativeSource={RelativeSource TemplatedParent}}"/>
       
     

     
       
         
       

       
         
       

       
         
         
       

       
         
       

       
         
           
           
         

         
       

       
                            Property="Canvas.Top"/>
                            Property="Canvas.Left"/>
       

     

   

   
   
   
   
   
   
   
   
   
   
   
   
 

 
   
     
   

              VerticalAlignment="Bottom" Background="White" IsHitTestVisible="true" Visibility="Hidden">
                   Width="79" HorizontalContentAlignment="Center" Height="29" VerticalAlignment="Bottom" FontSize="11"
             Background="{x:Null}"/>
                     Width="99" Height="29" VerticalAlignment="Bottom" HorizontalContentAlignment="Center"
               VerticalContentAlignment="Center" FontSize="11" Background="{x:Null}"/>
                   VerticalAlignment="Bottom" VerticalContentAlignment="Center" HorizontalContentAlignment="Center"
             FontSize="11" FontWeight="Bold" Background="{x:Null}"/>
                   VerticalAlignment="Bottom" Margin="0,0,0,29" VerticalContentAlignment="Center"
             HorizontalContentAlignment="Center" FontSize="11" Background="{x:Null}"/>
                   Height="29" VerticalAlignment="Bottom" VerticalContentAlignment="Center"
             HorizontalContentAlignment="Center" FontSize="11" Background="{x:Null}"/>
                     Height="29" VerticalAlignment="Bottom" HorizontalContentAlignment="Center"
               VerticalContentAlignment="Center" FontSize="11" Background="{x:Null}"/>
                     Height="29" VerticalAlignment="Bottom" HorizontalContentAlignment="Center"
               VerticalContentAlignment="Center" FontSize="11" Background="{x:Null}"/>
                   Margin="183,0,0,87" Width="79" HorizontalContentAlignment="Center" Height="29"
             VerticalAlignment="Bottom" FontSize="11" Background="{x:Null}"/>
                     Width="98" Height="29" VerticalAlignment="Bottom" HorizontalContentAlignment="Center"
               VerticalContentAlignment="Center" FontSize="11" Background="{x:Null}"/>
                   VerticalAlignment="Bottom" Margin="183,0,0,29" VerticalContentAlignment="Center"
             HorizontalContentAlignment="Center" FontSize="11" Background="{x:Null}"/>
                   Width="79" Height="29" VerticalAlignment="Bottom" VerticalContentAlignment="Center"
             HorizontalContentAlignment="Center" FontSize="11" Background="{x:Null}"/>
                     Width="98" Height="29" VerticalAlignment="Bottom" HorizontalContentAlignment="Center"
               VerticalContentAlignment="Center" FontSize="11" Background="{x:Null}"/>
                     Width="98" Height="29" VerticalAlignment="Bottom" HorizontalContentAlignment="Center"
               VerticalContentAlignment="Center" FontSize="11" Background="{x:Null}"/>
                   Width="177" Height="29" VerticalAlignment="Bottom" VerticalContentAlignment="Center"
             HorizontalContentAlignment="Center" FontSize="11" Background="{x:Null}"/>
                   Width="177" Height="29" VerticalAlignment="Bottom" VerticalContentAlignment="Center"
             HorizontalContentAlignment="Center" FontSize="11" Background="{x:Null}"/>
                   HorizontalContentAlignment="Center" Height="29" VerticalAlignment="Bottom" FontSize="11"
             Background="{x:Null}"/>
                     TextWrapping="Wrap" Width="99" Height="29" VerticalAlignment="Bottom"
               HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="11"
               Background="{x:Null}"/>
                   Margin="183,0,0,0" Width="79" HorizontalContentAlignment="Center" Height="29"
             VerticalAlignment="Bottom" FontSize="11" Background="{x:Null}"/>
                     Width="98" Height="29" VerticalAlignment="Bottom" HorizontalContentAlignment="Center"
               VerticalContentAlignment="Center" FontSize="11" Background="{x:Null}"/>
                      VerticalAlignment="Top" Width="27"/>
   

   
                       FontWeight="Bold" Foreground="White" HorizontalAlignment="Right" Width="80" Height="31"
                 VerticalAlignment="Top" Margin="0,0,86,0">
       
       
       
       
     
                       FontWeight="Bold" Foreground="White" HorizontalAlignment="Right" Width="80" Height="31"
                 VerticalAlignment="Top" Margin="0,0,1,0">
       
       
       
     
                      VerticalAlignment="Top" Width="81" Style="{DynamicResource ComboBox_Style}" FontSize="10">
                        FontSize="10" HorizontalAlignment="Right" Width="70" Height="24" VerticalAlignment="Top">
         
           
         

       
                        FontSize="10" HorizontalAlignment="Right" Width="70" Height="24" VerticalAlignment="Top">
         
           
         

       
     
   

                x:Name="button_open_uasset" Content="" Margin="149,0,0,179" FontSize="20" FontWeight="Bold"
            Padding="1" HorizontalAlignment="Left" Width="65" Height="65" VerticalAlignment="Bottom"
            Style="{DynamicResource ButtonStyle}" BorderBrush="{x:Null}">
     
       
     

   
                   Margin="218,0,0,215" Padding="0,7,0,0" TextWrapping="Wrap" HorizontalAlignment="Left" Width="260"
               ScrollViewer.CanContentScroll="true" FontSize="11" FontWeight="Bold">
     
       
     

   
                Height="65" VerticalAlignment="Bottom" FontSize="11" Margin="149,0,0,65" HorizontalAlignment="Left"
            Style="{DynamicResource ButtonStyle}" BorderBrush="{x:Null}">
     
       
     

   
                   HorizontalAlignment="Left" VerticalAlignment="Bottom" TextWrapping="Wrap" TextAlignment="Center"
               FontSize="11" Padding="0,7.5,0,0" FontWeight="Bold">
     
       
     

   
                   HorizontalAlignment="Left" TextWrapping="Wrap" TextAlignment="Center" FontSize="11"
               Padding="0,7.5,0,0" FontWeight="Bold" Height="28" VerticalAlignment="Bottom">
     
       
     

   
                VerticalAlignment="Bottom" FontSize="11" Margin="532,0,0,63" HorizontalAlignment="Left"
            Style="{DynamicResource ButtonStyle}" BorderBrush="{x:Null}">
     
       
     

   
                   TextWrapping="Wrap" TextAlignment="Center" FontSize="11" Height="30" VerticalAlignment="Bottom"
               Padding="0,7.5,0,0" FontWeight="Bold">
     
       
     

   
                Width="66" FontWeight="Bold" FontSize="11" TextOptions.TextHintingMode="Animated"
            HorizontalAlignment="Left" Height="66" VerticalAlignment="Bottom"
            Style="{DynamicResource ButtonStyle}" BorderBrush="{x:Null}">
     
       
     

   
                Width="260" FontSize="22" FontWeight="Bold" Height="30" VerticalAlignment="Bottom"
            ToolTip="Open a uasset file that contains the mesh of a character or an accessory"
            Style="{DynamicResource ButtonStyle2}" BorderBrush="{x:Null}">
     
       
     

   
                Margin="601,0,0,179" Width="250" FontSize="22" FontWeight="Bold" Height="30"
            VerticalAlignment="Bottom"
            ToolTip="Export the mesh from uasset file to an obj file in order to edit it with a 3D software"
            Style="{DynamicResource ButtonStyle2}" BorderBrush="{x:Null}">
     
       
     

   
                Width="250" FontSize="22" FontWeight="Bold" Height="32" VerticalAlignment="Bottom"
            ToolTip="Save your edited custom obj into the uasset file" Style="{DynamicResource ButtonStyle2}"
            BorderBrush="{x:Null}">
     
       
     

   
                Width="251" FontSize="22" FontWeight="Bold" Height="32" VerticalAlignment="Bottom"
            ToolTip="Import the custom obj file you have edited with the 3D software"
            Style="{DynamicResource ButtonStyle2}" BorderBrush="{x:Null}">
     
       
     

   
                   FontWeight="Bold" Foreground="White" HorizontalAlignment="Right" Width="104" Margin="0,0,17,10"
               Text="Created by Dagon_Paul" Height="19" VerticalAlignment="Bottom"/>
 


All Errors:
Severity Code Description Project File Line Suppression State Suppression State
Error XLS0418 Assembly 'PresentationFramework.Aero2' was not found. Verify that you are not missing an assembly reference. Also, verify that your project and all referenced assemblies have been built. Batman Custom Mesh mainwindow.xaml line - 7

Severity Code Description Project File Line Suppression State Suppression State
Error XDG0008 The name "SystemDropShadowChrome" does not exist in the namespace "clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero2". Batman Custom Mesh mainwindow.xaml line - 205


Severity Code Description Project File Line Suppression State Suppression State
Error XLS0414 The type 'Themes:SystemDropShadowChrome' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built. Batman Custom Mesh mainwindow.xaml line - 205

Severity Code Description Project File Line Suppression State Suppression State
Error XDG0008 The name "SystemDropShadowChrome" does not exist in the namespace "clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero2". Batman Custom Mesh mainwindow.xaml line - 240

Severity Code Description Project File Line Suppression State Suppression State
Error XDG0008 The name "SystemDropShadowChrome" does not exist in the namespace "clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero2". Batman Custom Mesh mainwindow.xaml line - 288

Severity Code Description Project File Line Suppression State Suppression State
Error XLS0414 The type 'Themes:SystemDropShadowChrome' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built. Batman Custom Mesh mainwindow.xaml line - 288

Severity Code Description Project File Line Suppression State Suppression State
Error XDG0008 The name "SystemDropShadowChrome" does not exist in the namespace "clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero2". Batman Custom Mesh mainwindow.xaml line - 330

And I never touched this specific file.
I hope you help me. :|
  • Author
  • Localization

atom0s, posted Fri Dec 27, 2019 8:51 pm (52819)


You need to add a reference to the project for 'PresentationFramework.Aero2'. All of those errors are handled by that assembly.
  • Author
  • Localization

HexPa5, posted Sat Dec 28, 2019 1:10 am (52828)


atom0s wrote:
You need to add a reference to the project for 'PresentationFramework.Aero2'. All of those errors are handled by that assembly.

Thank you for hint. I fixed this first message replacing by correct using CodeAnalysis.

But I can't fix 'SystemDropShadowChrome' which occur a few error message.

Code part:

Code:
                                         FrameworkElement.MaxHeight="{TemplateBinding ComboBox.MaxDropDownHeight}"
                                         FrameworkElement.MinWidth="{Binding ActualWidth, ElementName=templateRoot}">


Any solution?
  • Author
  • Localization

atom0s, posted Sat Dec 28, 2019 9:42 am (52836)


SystemDropShadowChrome is part of PresentationFramework.Aero.dll and PresentationFramework.Aero2.dll. You need to add a reference to it in the project, and a reference to it in the XAML. Like this:

Code:
xmlns:Themes="clr-namespace:Microsoft.Windows.Themes; assembly=PresentationFramework.Aero"
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.