PROBLEM:
Khi làm việc với XAML đôi khi Visual Studio báo lỗi có dạng như:
InitializeComponent and no extension method InitializeComponent accepting a first argument of type... could be found (are you missing a using directive or an assembly reference?)

FIXED:

- Match namespace: Xaml và code-behind cần có chung namespace.

- Event Handler not support Binding: Một vài sự kiện không thể bindding command trực tiếp. Bạn có thể dùng Behaviors SDK

                      <TextBlock Grid.Row="0"   Text="Hello" VerticalAlignment="Center" FontFamily="Segoe UI" FontWeight="Bold" FontSize="20">
                             <interactivity:Interaction.Behaviors>
                                <core:EventTriggerBehavior EventName="Tapped">
                                    <core:InvokeCommandAction Command="{Binding ChangePasscodeTappedCommand, Mode=OneWay}"/>
                                </core:EventTriggerBehavior>
                            </interactivity:Interaction.Behaviors>
                        </TextBlock>

thumbnail [Debugging] Error InitializeComponent when working on XAML

data:label.name author

premiumpng.com

Design Publisher

Download 0
No comments
Template in .PSD format

MR Laboratory License

Free for personal purpose use . More info


Buy Now This Template

No comments:

Post a Comment

Commets Download Photoshop Actions, Lightroom Presets, PSD Template, Mockups, Stocks, Vectors, Fonts. Download free

Newer Post Older Post Home

Copyright © 2021 MR Laboratory All rights reserved.

Setting