I have upgraded my project to windows 8.1 from windows 8.0 and got some warnings of obsolete codes. Some of them I have fixed, and some of them not.
Here is an image of the last warnings that I couldn't fix and couldn't find any information.
All warnings refers to the same method, and it says that it is obsolete, what should I do to get the not obsolete code?
Here are the codes:
warning number 2.
/// <summary> /// Translates <see cref="ApplicationViewState" /> values into strings for visual state /// management within the page. The default implementation uses the names of enum values. /// Subclasses may override this method to control the mapping scheme used. /// </summary> /// <param name="viewState">View state for which a visual state is desired.</param> /// <returns>Visual state name used to drive the /// <see cref="VisualStateManager" /></returns> /// <seealso cref="InvalidateVisualState" /> protected virtual string DetermineVisualState(ApplicationViewState viewState) { return viewState.ToString(); }
Warning number 1.
// Set the initial visual state of the control VisualStateManager.GoToState(control, DetermineVisualState(ApplicationView.Value), false);
Warning number 3.
string visualState = DetermineVisualState(ApplicationView.Value);
All the above codes, calls to the DetermineVisualState method which is deprecated, it offers to query for window layout sizes directly, but what does it mean?
Note: It is the LayoutAwarePage, so I haven't wrote here any code, this is Windows 8.0 implementation.
Any help would be appreciated and thanks in advance !