Note that there are some explanatory texts on larger screens.

plurals
  1. POWindows Phone - Avoid high resource usage
    primarykey
    data
    text
    <p>I used the Windows Store-Kit to test my Windows Phone 8 App and it failed. It says 'High Resource Usage'. I'm using the MVVM-Pattern, which means I'm binding my Elements in the View with the ViewModel propertys.</p> <p>Example when high usage: I have a MainView which has a ContentControl. The Content of the ContentControl is another View (let's call it ChildView). When I click on a TextBox in the ChildView, the InputScope pops up (where you can type) and the View goes up, so the TextBox can be seen. When the View goes up (note that the TextBox is in a Pivot), it starts to lagg. I don't know why, since I only focus the TextBox and the PivotItem goes up. My question is how can I lower the resource usage? If you need anything, write it and I'll post it here.</p> <p>MainPage.xaml</p> <pre><code> &lt;Grid&gt; &lt;Grid x:Name="LayoutRoot" HorizontalAlignment="Left"&gt; &lt;Grid.RowDefinitions&gt; &lt;RowDefinition Height="Auto" /&gt; &lt;/Grid.RowDefinitions&gt; &lt;ScrollViewer Name="MyScrollViewer" Height="Auto" HorizontalAlignment="Left" VerticalAlignment="Top" Width="Auto" HorizontalScrollBarVisibility="{Binding Horizontal}" VerticalScrollBarVisibility="{Binding Vertical}"&gt; &lt;!--ContentPanel - zusätzliche Inhalte hier platzieren--&gt; &lt;StackPanel ScrollViewer.HorizontalScrollBarVisibility="Auto" Grid.Row="2" Opacity="50"&gt; &lt;ContentControl Content="{Binding MyContent}" Name="MyContentControl" IsTabStop="False" VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch"/&gt; &lt;/StackPanel&gt; &lt;/ScrollViewer&gt; &lt;/Grid&gt; &lt;/Grid&gt; </code></pre> <p>ChildView.xaml <a href="http://textuploader.com/?p=6&amp;id=zMDoD" rel="nofollow">http://textuploader.com/?p=6&amp;id=zMDoD</a></p> <p>Store-Kit result (in german, but I think it's clear) <a href="http://i.imagebanana.com/img/j6z24o9a/Unbenannt.png" rel="nofollow">http://i.imagebanana.com/img/j6z24o9a/Unbenannt.png</a></p> <p>this is what a property in the ViewModel of the view looks like (which are shown in the Store-Kit result)</p> <pre><code> private string _anlohnsteuer; public string ANLohnsteuer { get { return _anlohnsteuer; } set { _anlohnsteuer = value; RaisePropertyChanged(() =&gt; ANLohnsteuer); } } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload