Click here to Skip to main content
15,915,091 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: How to read images in a single image file (.png format) Pin
Mark Salsbery3-May-09 8:47
Mark Salsbery3-May-09 8:47 
GeneralRe: How to read images in a single image file (.png format) Pin
seshu4code6-May-09 23:49
seshu4code6-May-09 23:49 
QuestionListView (with GridView) - Bound to Observable Collection [modified] Pin
b4ip2-May-09 19:56
b4ip2-May-09 19:56 
QuestionWPF and XNA physic engines ! Pin
Mohammad Dayyan2-May-09 12:06
Mohammad Dayyan2-May-09 12:06 
RantVS2008's inability to update service references [modified] Pin
Ravi Bhavnani2-May-09 9:30
professionalRavi Bhavnani2-May-09 9:30 
GeneralRe: VS2008's inability to update service references Pin
Mark Salsbery4-May-09 9:59
Mark Salsbery4-May-09 9:59 
GeneralRe: VS2008's inability to update service references Pin
Ravi Bhavnani4-May-09 10:01
professionalRavi Bhavnani4-May-09 10:01 
GeneralRe: VS2008's inability to update service references Pin
Ravi Bhavnani4-May-09 18:17
professionalRavi Bhavnani4-May-09 18:17 
QuestionReading items into a TreeView from an ACCESS database Pin
Etienne_1232-May-09 3:35
Etienne_1232-May-09 3:35 
AnswerRe: Reading items into a TreeView from an ACCESS database Pin
Pete O'Hanlon2-May-09 9:57
mvePete O'Hanlon2-May-09 9:57 
QuestionUserControl question Pin
RugbyLeague1-May-09 4:54
RugbyLeague1-May-09 4:54 
AnswerRe: UserControl question Pin
AghaKhan1-May-09 5:32
AghaKhan1-May-09 5:32 
AnswerRe: UserControl question Pin
#realJSOP1-May-09 5:34
professional#realJSOP1-May-09 5:34 
GeneralRe: UserControl question Pin
RugbyLeague1-May-09 5:38
RugbyLeague1-May-09 5:38 
GeneralRe: UserControl question Pin
AghaKhan1-May-09 6:01
AghaKhan1-May-09 6:01 
AnswerRe: UserControl question Pin
Gideon Engelberth1-May-09 6:03
Gideon Engelberth1-May-09 6:03 
GeneralRe: UserControl question Pin
AghaKhan1-May-09 6:17
AghaKhan1-May-09 6:17 
GeneralRe: UserControl question Pin
Gideon Engelberth1-May-09 11:49
Gideon Engelberth1-May-09 11:49 
GeneralRe: UserControl question Pin
AghaKhan1-May-09 18:56
AghaKhan1-May-09 18:56 
GeneralRe: UserControl question Pin
RugbyLeague1-May-09 9:19
RugbyLeague1-May-09 9:19 
GeneralRe: UserControl question Pin
Gideon Engelberth1-May-09 17:09
Gideon Engelberth1-May-09 17:09 
AnswerRe: UserControl question Pin
fjparisIII3-May-09 2:22
fjparisIII3-May-09 2:22 
QuestionMy WCF client deadlock Pin
Richard Dutton1-May-09 4:32
Richard Dutton1-May-09 4:32 
QuestionDependency properties!Performance issue Pin
pioner30-Apr-09 19:48
pioner30-Apr-09 19:48 
I`ve got some problems with understanding how dependecy properties work so for sure smbd can explain it to me little better.
Let`s imagine simple GUI hierarchy Button:UIElement
class UIElement
{
public (DependecyProperty)static Font font;
}
I especially simplified this,but for me the keyword here is STATIC.


class Button:UIElement
{
private Font buttonfont;
public Button()
{
buttonfont=UIElement.font;
}
public Font GetFont()
{
return buttonfont;
}

public SetFont(Font font)
{
buttonfont=font;
}
}

So i`ve read somewhere that dependecy properties needed for performance and resource managment.
And the example was Form with Buttons
So let`s imagine Form with 10 Buttons
1.If no explicit SetFont invoked then 1 Font object needed.
Totally the same thing could be done with WindowsForms declaring global Font object(probably static)
2.If someone invokes,for example SetFont(Color.Random) then numberOfObjects=SetFontInvocations+1(for example)
{if we use ONLY Color.SomeColor to set colors, then no new objects created in any part of code,because Color enumeration exists and all colors automaticaly created)
And again the same situations with WindowsForms
So if it`s possible could you pls show where WPF can improve resource managment in this simple situation.
Thank you all for helping. Smile | :) Smile | :)
AnswerRe: Dependency properties!Performance issue Pin
Gideon Engelberth1-May-09 3:27
Gideon Engelberth1-May-09 3:27 

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.