तुम सिर्फ सरल जवाब के लिए देख रहे हैं, मुझे लगता है कि यह वह जगह है जहां MyApp आपका एप्लिकेशन नाम है और जहां यह आपके एप्लिकेशन के लिए रूट नेमस्पेस नाम है। आपको पैक यूआरआई सिंटैक्स का उपयोग करना होगा, लेकिन यह आपके एम्बेडेड संसाधनों से आइकन खींचने के लिए जटिल नहीं होना चाहिए।
<Window x:Class="MyApp.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"
mc:Ignorable="d"
Height="100"
Width="200"
Icon="pack://application:,,,/MyApp;component/Resources/small_icon.ico">
स्रोत
2015-08-18 19:43:31
यहाँ समान प्रश्न देखें: [कड़ी यहाँ विवरण दर्ज] [1] [1]: http://stackoverflow.com/questions/1127647/convert-system-drawing- आइकन-टू-सिस्टम-मीडिया-इमेजर्स – PatTheFrog