To access the local raster layer such as .tiff file you need to have "Standard" license. Please look at the documentation link:
License your app—ArcGIS Runtime SDK for .NET (WPF) | ArcGIS for Developers --> Licensing capabilities --> Standard.
Hope that helps.
Thanks Nagma! It works. The only problem is when i keep zooming out, the .tiff data dissapears automatically before I can even see the whole raster data on my screen. Is there a default setting that makes it happen or is it just the .tiff file that only appears in certain zoom levels?
Currently in ArcGIS Runtime SDK for .NET v100.1 (i.e. UWP, WPF, and Xamarin) we display the raster data at the native raster resolution. The alternative is to re-sample the raster as you zoom out. For a future release we are investigating implementing re-sampling dynamically as you zoom in/out, and allowing you as the developer to generate the resampled data via the API and persist that alongside the raster dataset. The persisted approach is usually referred to as pyramids.
You can achieve the same approach today by using ArcGIS Pro or ArcMap to generate pyramids for your raster data in advance and then use that raster within your ArcGIS Runtime apps. For more information see Build Pyramids—Data Management toolbox | ArcGIS Desktop.
Thank you for the information. Really appreciate it. So, If I understand correctly, the raster file needs to be updated using ArcGIS Pro or ArcMap for the raster data to not dissapear when zooming out?