Giter Club home page Giter Club logo

xamjam's People

Contributors

czanbaka avatar jasoncodesaway avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

xamjam's Issues

Change with Orientation

Hello,
Width and Height does not change when the orientation of the mobile change to portrait to landscape.

Could you help ?
Thank you,
Christophe

XamJam.Screen.Plugin.XamJam.Screen.UWP - Another way?

Take a peak at my approach, perhaps this could be used in your UWP solution?

https://github.com/mattregul/Xamarin_Screensize/blob/master/screensize/screensize/screensize/screensize.UWP/App.xaml.cs#L60-L85

// You decided which is best for you...
//  Do you want Size of the App's View
//      or
//  Do you want the Display's resolution 
// ######################################

// Size of App's view
DisplayScreenHeight = Windows.UI.ViewManagement.ApplicationView.GetForCurrentView().VisibleBounds.Height;
DisplayScreenWidth = Windows.UI.ViewManagement.ApplicationView.GetForCurrentView().VisibleBounds.Width;

// Size of screen's resolution
//DisplayScreenWidth = Windows.Graphics.Display.DisplayInformation.GetForCurrentView().ScreenHeightInRawPixels;
//DisplayScreenHeight = Windows.Graphics.Display.DisplayInformation.GetForCurrentView().ScreenWidthInRawPixels;

// Pixels per View Pixel
// - https://msdn.microsoft.com/en-us/windows/uwp/layout/design-and-ui-intro#effective-pixels-and-scaling
// - https://msdn.microsoft.com/en-us/windows/uwp/layout/screen-sizes-and-breakpoints-for-responsive-design
DisplayScaleFactor = Windows.Graphics.Display.DisplayInformation.GetForCurrentView().RawPixelsPerViewPixel;

NETStandard version of XamJam?

Is there a NETStandard version of this package available or on the roadmap? We are moving all of our library development to .NETStandard 2.0.

XamJam.Wall UWP and Droid Resize Support

In case the user changes the app's window size (only possible on UWP and Droid as of now): XamJam.Wall should listen for max screen size changes in the event of a resize, this is done in the ctor, current relevant code is:

public WallView(WallViewInputs<TView, TViewModel> wallViewInputs)
{
    this.wallViewInputs = wallViewInputs;
    // TODO: Listen for screen size changes and, with thread synchronization, add support for the new maximum # of views to create
    var size = Plugin.XamJam.Screen.CrossScreen.Current.Size;
    var maxScreenWidth = size.Width;
    var maxScreenHeight = size.Height;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.