PersonPicture Control In UWP
6K views
Nov 7, 2023
Explain about PersonPicture control in UWP
View Video Transcript
0:00
Hi my name is Noh this tutor I'm going to explain how to implement that
0:06
person picture control there is a new control in Windows fall creator update
0:14
so this control will support the SDK version 162-9 I'm using the
0:22
Vistow Studio 2020 to develop this sample application as you see this image
0:27
this is a person picture control previously we are using that image to crop to
0:33
make circle of that image like that so here after no need to do like this
0:38
we can directly use a person picture control to make our image to like this
0:45
let's see how to implement this feature now I'm going to visual studio so here
0:54
I'm just highlighting some of the features only not to going in depth this control now just start that application
1:11
here you can see application started here you can see application started on that
1:27
and one more I make so my idea so my idea is make
1:52
so that it's side by side so that it's easy for understandable
1:56
for understandable so here we go
2:10
here we go hide just close it this also I close it I make a little bit here
2:27
just make like this So we made this Just a simple example
2:41
So no need to run application again again. So now I am going to implement this control
2:49
Person Pitcher control. So that first feature, first being here is an initial
2:56
So suppose if I mention INJ. So it will display here. The next one, if I want to display that instant of initial
3:10
If I want to display that profile pictures, so I make personal picture, then profile picture is there
3:23
Just you make that image. Here you can see that image it will display
3:29
One second I make the margin. So it's visible clearly
3:39
1020.0. Okay, fine
3:55
Okay, fine. Here you can see that profile picture always take the high priority
4:04
So it will display that profile picture. If the profile picture is not available, then the initial picture
4:09
take the next priority on that so suppose if I'm not mentioning the in seal and
4:14
profile picture what will happen so if you not mention anything is just
4:21
display only the default image on the screen so default image suppose if I want to make the I don want to give that in shame profile picture instead of the dynamic I give a display name here
4:41
So it utterly take that first letter of the name So if we give it any space in between then it will take that first and second
4:50
First word first letter second word first letter okay so here you can see this is one of the features
4:57
So the next feature this is the image I want to display on top of that here I
5:07
need to for example if I need to display the rank rank like one or two something
5:14
like that so how to display here the badge is available that image control if I
5:18
could person to say feature profile picture So here I give that batch number for example and one
5:42
Here you get that rank of that number if you want to display the rank you can give
5:49
like this so it will on top of it will display. So the next feature is suppose instead of that rank I want to
5:57
to make some smile symbol or any other picture on top of here so for that also
6:06
it's possible now I'm just going here and one more image profile picture
6:13
the margin 1020 zero yes
6:27
So image is displayed. Now I need to display on top of some smile symbol
6:34
That is come under Padglev. Now here you can see this one supports as MDL font behavior
6:44
Here you can choose which image you want to display For example if I selected the smile image so E170 so here can make a smile image E170
7:07
Here you can see the smile image is coming. So this is another feature
7:13
Hey I want to display on top of one more image on this, like this style, like this size
7:21
So how to do that? So yeah, we'll see. That also. Now profile feature and smooth
7:32
Next margin. it's not visible
7:48
we'll make so it's not coming so I'll make like this
8:03
so now it's easy for you now here if you go go no badge image source here you can select for example select an image here you
8:21
can see some small circles coming but image is not displaying that it's a
8:25
problem with the live editor issue then you have to stop then read the application
8:35
It's building deployed started
8:49
Here you can see that image. So on top of one more image you had display
8:57
I hope you can understand how to use the person picture control
9:03
See later. See you later. Thanks
#Software
#Windows & .NET