Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only yield non-NULL template if DisplayMemberPath is set, otherwise l… #257

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hypersw
Copy link
Contributor

@hypersw hypersw commented Jun 21, 2016

…eave it NULL for ContentPresenter to try looking up a template in resources by the data type. (gh-255)

…eave it NULL for ContentPresenter to try looking up a template in resources by the data type.
@@ -202,8 +202,9 @@ module Fayde.Controls {
}
private _DisplayMemberTemplate: DataTemplate = null;
private _GetDisplayMemberTemplate(): DataTemplate {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function was intended to be a memoize function.
Can we shift the logic to the consumers of this function?

@BSick7
Copy link
Member

BSick7 commented Jun 21, 2016

Can you add tests to verify this change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants