Inheritance: IRandomAccessStreamReference
Exemplo n.º 1
1
 public MainPage()
 {
     this.InitializeComponent();
     myMap.Loaded += myMap_Loaded;
     myMap.MapTapped += MyMap_MapTapped;
     mapIconStreamReference = RandomAccessStreamReference.CreateFromUri(new Uri("ms-appx:///Assets/MapPin.png"));
 }
Exemplo n.º 2
0
		public MapsView()
		{
			this.InitializeComponent();
			Loaded += MapsView_Loaded;
			Map.Loaded += Map_Loaded;
			iconStream = RandomAccessStreamReference.CreateFromUri(new Uri("ms-appx:///Assets/SmallLogoBlue.scale-100.png"));
		}
        //Constructor
        public FeestjesOverzichtVM()
        {
            this.PartyIcon = RandomAccessStreamReference.CreateFromUri(new Uri("ms-appx:///Assets/feestpin.png"));
            Messenger.Default.Register<NavigateTo>(typeof(bool), ExecuteNavigatedTo);

            SearchItemCommand = new RelayCommand(Search);

            RaiseAll();
        }
Exemplo n.º 4
0
        public MainPage()
        {
            InitializeComponent();
            NavigationCacheMode = NavigationCacheMode.Disabled;
            mapIconStreamReference = RandomAccessStreamReference.CreateFromUri(new Uri("ms-appx:///Assets/MapPin.png"));
            meIconStreamReference = RandomAccessStreamReference.CreateFromUri(new Uri("ms-appx:///Assets/Me.png"));
            mapIcon1 = new MapIcon
            {
                NormalizedAnchorPoint = new Point(0.5, 0.5),
                Title = "",
                Image = mapIconStreamReference,
                ZIndex = 0
            };
            myIcon1 = new MapIcon
            {
                Location = myMap.Center,
                NormalizedAnchorPoint = new Point(0.5, 0.5),
                Title = "",
                Image = meIconStreamReference,
                ZIndex = 0
            };


        }
 public async static Task<Guid?> GetEncoderId(RandomAccessStreamReference streamref)
 {
     var ext = await FileHelper.CheckFileType(streamref);
     return GetDecoderId(ext);
 }
Exemplo n.º 6
0
            private BitmapImage ImageFromStream(RandomAccessStreamReference reference)
            {
                IRandomAccessStreamWithContentType stream;
                try
                {
                    stream = reference.OpenReadAsync().AsTask().Result;
                }
                catch (Exception e)
                {
                    var message = $"{e.Message} @ {DisplayName}";
                    Log.Error(message);
                    Log.Exception(e);
                    return new BitmapImage(new Uri(Constant.ErrorIcon));
                }

                var image = new BitmapImage();
                image.BeginInit();
                image.StreamSource = stream.AsStream();
                image.EndInit();
                return image;
            }
 public Scenario2()
 {
     this.InitializeComponent();
     mapIconStreamReference = RandomAccessStreamReference.CreateFromUri(new Uri("ms-appx:///Assets/MapPin.png"));
 }
        RandomAccessStreamReference mapIconStreamReference;//Eigen icoontje

        //Methods
        public Bestemmingen_Nieuw()
        {
            this.InitializeComponent();

            mapIconStreamReference = RandomAccessStreamReference.CreateFromUri(new Uri("ms-appx:///Assets/userpin.png"));
        }