Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

WPF Applikation - Right way for icon and size of icon

$
0
0
Hello,
The goal.
I want to have an icon in the Exe file and on top left of the menu bar.
An icon can have several sizes, which is taken or can I select that?
32x32 8 Bit
16x16 8 Bit
32x32 24 Bit
16x16 24 Bit
xaml file
<Window x:Class="TestAppAsysASM.MainWindow"
        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:TestAppAsysASM"
        mc:Ignorable="d"
        Title="Test - 18.07.2018" Height="552.953" Width="800"><!--Icon=".\MyApp.ico">-->
// prj file
<PropertyGroup><ApplicationIcon>AsysASM.ico</ApplicationIcon></PropertyGroup><ItemGroup>
  ...<ItemGroup><None Include="App.config" /></ItemGroup><ItemGroup><None Include="MyApp.ico" /></ItemGroup><Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /></Project>

Best regards Markus


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>