Ejemplo n.º 1
0
        private void camera_Initialized(object sender, CameraOperationCompletedEventArgs e)
        {
            Dispatcher.BeginInvoke(() =>
            {
                CapabilityInformation info =
                    (App.Current.Resources["DeviceInformationViewModel"] as
                     DeviceInformationViewModel).InformationProvider.Capabilities;

                ObservableCollection <string> resolutions =
                    new ObservableCollection <string>();
                foreach (Size resolution in Camera.AvailableResolutions)
                {
                    resolutions.Add(String.Format("{0}x{1}", resolution.Width,
                                                  resolution.Height));
                }

                info.SupportedResolutions = resolutions;
            });
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance with the appropriate data sources.
 /// </summary>
 public RealInformation()
 {
     deviceInformation       = new RealDeviceInformation();
     networkInformation      = new RealNetworkInformation();
     capabilitiesInformation = new RealCapabilityInformation();
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance with the appropriate data sources.
 /// </summary>
 public RealInformation()
 {
     deviceInformation = new RealDeviceInformation();
     networkInformation = new RealNetworkInformation();
     capabilitiesInformation = new RealCapabilityInformation();
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance with the appropriate data sources.
 /// </summary>
 public FakeInformation()
 {
     deviceInformation = new FakeDeviceInformation();
     networkInformation = new FakeNetworkInformation();
     capabilitiesInformation = new FakeCapabilityInformation();
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance with the appropriate data sources.
 /// </summary>
 public FakeInformation()
 {
     deviceInformation       = new FakeDeviceInformation();
     networkInformation      = new FakeNetworkInformation();
     capabilitiesInformation = new FakeCapabilityInformation();
 }