Click here to Skip to main content
15,798,066 members
Home / Discussions / WPF
   

WPF

 
QuestionGridView CellTemplate Pin
#realJSOP13-Feb-21 11:42
mve#realJSOP13-Feb-21 11:42 
AnswerRe: GridView CellTemplate Pin
Gerry Schmitz13-Feb-21 13:50
mveGerry Schmitz13-Feb-21 13:50 
GeneralRe: GridView CellTemplate Pin
#realJSOP13-Feb-21 14:13
mve#realJSOP13-Feb-21 14:13 
AnswerRe: GridView CellTemplate Pin
#realJSOP14-Feb-21 5:49
mve#realJSOP14-Feb-21 5:49 
GeneralRe: GridView CellTemplate Pin
Gerry Schmitz14-Feb-21 6:53
mveGerry Schmitz14-Feb-21 6:53 
GeneralRe: GridView CellTemplate Pin
#realJSOP14-Feb-21 9:41
mve#realJSOP14-Feb-21 9:41 
GeneralRe: GridView CellTemplate Pin
Gerry Schmitz14-Feb-21 11:48
mveGerry Schmitz14-Feb-21 11:48 
QuestionIcon Strangeness Pin
#realJSOP3-Feb-21 0:36
mve#realJSOP3-Feb-21 0:36 
I have an icon (resource, do not copy) in my project.

I added an Image element to my xaml.

XML
<Image Source="pack://application,,,/Pilot128.ico" Height="24" />


The icon shows up in the designer, but not when I actually run the app.

However, when I do this, it works as expected:

XML
<Window.Resources>
    <BitmapImage x:Key="appIcon" UriSource="Pilot128.ico" />
</Window.Resources>
<Image Source="{StaticResource appIcon}" Height="24" />


Why doesn't the first way work?
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

AnswerRe: Icon Strangeness Pin
Richard Deeming3-Feb-21 1:12
mveRichard Deeming3-Feb-21 1:12 
GeneralRe: Icon Strangeness Pin
#realJSOP3-Feb-21 2:25
mve#realJSOP3-Feb-21 2:25 
AnswerRe: Icon Strangeness Pin
Gerry Schmitz3-Feb-21 8:25
mveGerry Schmitz3-Feb-21 8:25 
QuestionDispatcherTimer Pin
michaelbarb14-Jan-21 7:29
michaelbarb14-Jan-21 7:29 
AnswerRe: DispatcherTimer Pin
Mycroft Holmes14-Jan-21 12:06
professionalMycroft Holmes14-Jan-21 12:06 
GeneralRe: DispatcherTimer Pin
michaelbarb14-Jan-21 12:52
michaelbarb14-Jan-21 12:52 
GeneralRe: DispatcherTimer Pin
Mycroft Holmes14-Jan-21 13:15
professionalMycroft Holmes14-Jan-21 13:15 
GeneralRe: DispatcherTimer Pin
michaelbarb14-Jan-21 14:23
michaelbarb14-Jan-21 14:23 
AnswerRe: DispatcherTimer Pin
Gerry Schmitz15-Jan-21 3:31
mveGerry Schmitz15-Jan-21 3:31 
QuestionBetter way to access ViewModels Pin
Mc_Topaz5-Jan-21 5:11
Mc_Topaz5-Jan-21 5:11 
AnswerRe: Better way to access ViewModels Pin
Gerry Schmitz5-Jan-21 22:01
mveGerry Schmitz5-Jan-21 22:01 
AnswerRe: Better way to access ViewModels Pin
#realJSOP9-Jan-21 2:03
mve#realJSOP9-Jan-21 2:03 
GeneralRe: Better way to access ViewModels Pin
michaelbarb10-Jan-21 9:20
michaelbarb10-Jan-21 9:20 
GeneralRe: Better way to access ViewModels Pin
#realJSOP10-Jan-21 12:15
mve#realJSOP10-Jan-21 12:15 
AnswerRe: Better way to access ViewModels Pin
#realJSOP21-Feb-21 1:42
mve#realJSOP21-Feb-21 1:42 
QuestionIDataErrorInfo Pin
#realJSOP28-Dec-20 5:15
mve#realJSOP28-Dec-20 5:15 
AnswerRe: IDataErrorInfo Pin
Gerry Schmitz28-Dec-20 7:24
mveGerry Schmitz28-Dec-20 7:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.