UWP – Win10 – Files and Folders P2 – Drag drop elements.

27 בFebruary 2017

In this post we will jump in the real world scenario while user might drag clipboard files over our application pane and we like to copy those files and use them in our application. Drag-Drop: A few technical details. Your Dropping area (the place you attended to release the clipboard file) Should looks like this: <Grid Height="100" Width="100" Background="Red" AllowDrop="True" DragOver="Border_DragOver" Drop="Grid_Drop"/>   I have 3 different parts here, AllowDrop, DragOver handling, & Drop handling. Those are mandatory. The dragOver implementation is kind of : private void Border_DragOver(object sender, DragEventArgs e) { ...
אין תגובות

UWP – Win10 – Files and Folders P1

22 בJanuary 2017

Introduction For .Net developers who begin working on UWP apps it is must to upgrade the knowledge base. Well that API has changed now, and its happened since WIN10 development vision to unified the entire dev API for all platforms and devices under common types, meaning we no more writing code for devices but for OS. Every application got an isolation built in storage to serve the application lifecycle. In edition UWP application has no permissions to read a file from anywhere outside the application folder (will discussed later on) as hard drive. If you want to read a file in the user's...
אין תגובות

Using Smart CLR Property as object repository

4 בDecember 2016

the next scenario can be Simple, yet during development it is hard to change design so tricks like that can be awesome. Consider the following entity. public class Cat { public string Name; } public class Dog { public string Name; } class Wrapper { public bool isDog; private Dog dog = new Dog() {Name = "Snoopi" }; private Cat cat = new Cat() {Name = "Tom" }; public string Name { get { ...

Xaml default background and transparent background

6 בNovember 2016

Xaml  default background and transparent background This post will guide you to the internal rendering brush mechanism with interaction between elements on the element visual tree, could also be relevant to solve UI bugs on xaml code, (which are not bugs in simple meaner, only misunderstanding of the platform) 1.    While debugging an visual tree of custom control template you might find elements with Background =””. In most of cases it will not harm your application, But can also be effected in user actions. 2.    Observe this code: <Style x:Key="listItem" TargetType="{x:Type ListBoxItem}"> <Setter Property="Template"> ...
אין תגובות

UWP – when Build failed on different computers

25 בOctober 2016

An important Deployment action. You worked at the office on universal apps application, You take the code with you as whole solution to continue at home. While trying opening the solution its ok, also build action its ok even rebuild action.. Only when try to debug the project (F5) you might face of with annoying evil. Something like : Registration of the app failed. Another user has already installed an unpackaged version of this app. The current user cannot replace this with a packaged version. The conflicting package is {some Guid} Well it simple in universal apps there is underline deployment session, Every project has  a manifest...
אין תגובות

UWP Win10 – introduction to page navigation.

28 בSeptember 2016

The Application block of Win10 app constructed as following: Application > Window > Frame > Page While this page  can be any page you like. Commonly use pattern is leave the main page as container and inside it use internal page as Content place holder. Lets build the solution files than continue on navigation implementation. I simply create solution folder named Pages with some pages inside, Now lets build the MainPage xaml: <Grid Background="LightCyan"> <Grid.RowDefinitions> <RowDefinition Height="1*"/> ...
אין תגובות

UWP new Controls – Layout controls

11 בSeptember 2016

In this post I will passing over some major layout technics for developers who moving forward to UWP environment. This migration from former Windows versions required a short introduction and that my posts about. In for this time: Layout controls Pivot-Control: Actually its not new, just replacement to the traditional tab control, with nicer behavior and looks Code: <Pivot Title="My Pivtos"> <PivotItem Header="Pivot Item 1"> <Page> ...
אין תגובות

From WPF to UWP – New controls

29 בAugust 2016

For those who familiars with WPF this post is special for you while merging WPF skills with upcoming UWP skills , I am not gonna talk about layout here only spotting for some new features that I found nice to use. Flyout- this new Control can gardening almost anywhere to provide extra information like tooltips or even takes  traditional Dialog places. Flyout Demo: <Button Width="100" Content="Hello Button" > <Button.Flyout> <Flyout Placement="Full"> ...
אין תגובות

UWP-Win10- Working with Adaptive triggers

4 בAugust 2016

One of the new features while developing for Universal Apps is Adaptive UI, Having thinking of cross devices, we should never build a fixed UI, consider big PC Laptops, Tablets or even smartphone, It is very easy actually, just register to main window size changed and manage the layout state according to current MainWindow size -* First observe the next image: in general this is a wide screen state. Than observe that image: In general it is a narrow state. So, what we have here is a simple technic which required some practices to make the best from it, The UI content is simple: <RelativePanel> ...
אין תגובות

UWP Win10– introduction -(From WPF to UWP)

1 בJuly 2016

UWP is the next stage for UI windows apps after WPF, in purpose I didn’t count  win8 (WinRT) in my sight, in opposite to those who said WPF IS DIE (it was 2-3 years ago) Well WPF still kicking while Win8 platform is RIP. Old platform but new attitude:  From the UWP concept especially for FED developers using Xaml, it will be easy to jump in.  even if not, my next series of posts will guide you into UWP development. Cross-platform as Concept is great, even if we thinking on Microsoft cross-platform, No more coding for a platform or device, just coding, of...
תגובה אחת