timheuer / callisto

A control toolkit for Windows 8 XAML applications. Contains some UI controls to make it easier to create Windows UI style apps for the Windows Store in accordance with Windows UI guidelines.
http://timheuer.com/blog/archive/2012/05/31/introducing-callisto-a-xaml-toolkit-for-metro-apps.aspx
Other
338 stars 108 forks source link

Settings Flyout _contentGrid is null #55

Closed zubairahmed-ai closed 12 years ago

zubairahmed-ai commented 12 years ago

Hi,

Using SettingsFlyout control the following throws an exception, I tried adding a Grid with that Name, doesn't work

_contentGrid = GetTemplateChild("SettingsFlyoutContentGrid") as Grid;

Is this a issue or am I missing something?

timheuer commented 12 years ago

Please tell me how you are including it in your project and your code. See the test app that comes with the project for an example.

-th

Sent from mobile - please excuse tone and brevity

On Jul 7, 2012, at 12:26 AM, zubairdotnetreply@reply.github.com wrote:

Hi,

Using SettingsFlyout control the following throws an exception, I tried adding a Grid with that Name, doesn't work

_contentGrid = GetTemplateChild("SettingsFlyoutContentGrid") as Grid;

Is this a issue or am I missing something?


Reply to this email directly or view it on GitHub: https://github.com/timheuer/callisto/issues/55

timheuer commented 12 years ago

When used properly this is not a repro. I think that you may be just including the code without using a reference or the nuget package. Please see installation notes in the readme.

zubairahmed-ai commented 12 years ago

You are right, I was including the source code in the project, installing and using via VSIX solves the issue, still wondering why?

But anyway, thanks for help

timheuer commented 12 years ago

Because you didn't have the generic.xaml definition.

-th

Sent from mobile - please excuse tone and brevity

On Jul 8, 2012, at 8:56 AM, zubairdotnetreply@reply.github.com wrote:

You are right, I was including the source code in the project, installing and using via VSIX solves the issue, still wondering why?

But anyway, thanks for help


Reply to this email directly or view it on GitHub: https://github.com/timheuer/callisto/issues/55#issuecomment-6832197

zubairahmed-ai commented 12 years ago

Oh that explains, thanks